> ## Documentation Index
> Fetch the complete documentation index at: https://docs.niadra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SAML metadata

> The entity id, the assertion consumer service and the NameID format, for the SAML provider.



## OpenAPI

````yaml openapi/en/control.json GET /v1/auth/sso/saml/{tenant_id}/metadata
openapi: 3.1.0
info:
  title: Niadra control API
  version: '1'
  description: >-
    Tenants, projects, sources, keys, people, configuration and usage. It never
    receives customer content.
servers:
  - url: https://control.api.niadra.com
security: []
paths:
  /v1/auth/sso/saml/{tenant_id}/metadata:
    get:
      summary: SAML metadata
      description: >-
        The service provider's SAML metadata: entity id, assertion consumer
        service and name id format.


        **Authentication.** No authentication.
      operationId: saml_metadata_v1_auth_sso_saml__tenant_id__metadata_get
      parameters:
        - in: path
          name: tenant_id
          required: true
          schema:
            format: uuid
            title: Tenant Id
            type: string
      responses:
        '200':
          description: >-
            The SAML metadata of the service provider
            (application/samlmetadata+xml).
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object

````