> ## 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.

# Receive the SAML response

> The assertion consumer service: checks the signed assertion and sends the browser back to the Console.



## OpenAPI

````yaml openapi/en/control.json POST /v1/auth/sso/saml/{tenant_id}/acs
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}/acs:
    post:
      summary: Receive the SAML response
      description: >-
        The assertion consumer service (HTTP-POST binding): `SAMLResponse` and
        `RelayState` as a form. The

        assertion must be signed by the configured certificate and answer the
        request Niadra sent.


        **Authentication.** No authentication.
      operationId: saml_acs_v1_auth_sso_saml__tenant_id__acs_post
      parameters:
        - in: path
          name: tenant_id
          required: true
          schema:
            format: uuid
            title: Tenant Id
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                RelayState:
                  description: Sent back as Niadra put it in the request.
                  type: string
                SAMLResponse:
                  description: The base64 SAML Response.
                  type: string
              required:
                - SAMLResponse
                - RelayState
              type: object
        required: true
      responses:
        '200':
          content:
            text/html:
              schema:
                type: string
          description: >-
            For a test sign-in, a short page that says it is done. A sign-in
            answers 303 to the Console instead, with `#code=` or `#error=` in
            the fragment.
        '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

````