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

# Discover the SSO of an e-mail

> Whether the e-mail domain signs in through a tenant SSO, without saying whether the person exists.



## OpenAPI

````yaml openapi/en/control.json POST /v1/auth/sso/discover
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/discover:
    post:
      summary: Discover the SSO of an e-mail
      description: >-
        Whether the e-mail's domain signs in through SSO. It answers by domain,
        so it never says whether a

        person exists.


        **Authentication.** No authentication.
      operationId: discover_v1_auth_sso_discover_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SsoDiscoverRequest'
            example:
              email: nina@acme.example
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SsoDiscoverOut'
              example:
                sso: true
                protocol: oidc
                enforced: false
          description: Whether the domain signs in through SSO.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security: []
components:
  schemas:
    SsoDiscoverRequest:
      additionalProperties: false
      properties:
        email:
          maxLength: 320
          minLength: 3
          title: Email
          type: string
      required:
        - email
      title: SsoDiscoverRequest
      type: object
    SsoDiscoverOut:
      additionalProperties: false
      properties:
        enforced:
          description: Only the tenant-wide admins of the domain may still use a password.
          title: Enforced
          type: boolean
        protocol:
          anyOf:
            - $ref: '#/components/schemas/SsoProtocol'
            - type: 'null'
        sso:
          description: >-
            The e-mail's domain signs in through a tenant's SSO. Says nothing
            about the person.
          title: Sso
          type: boolean
      required:
        - sso
        - protocol
        - enforced
      title: SsoDiscoverOut
      type: object
    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
    SsoProtocol:
      enum:
        - oidc
        - saml
      title: SsoProtocol
      type: string

````