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

# Verify an SSO domain

> Look up the domain's TXT record now. The domain is verified when the record holds the claim's value. A DNS error changes nothing and answers `dns_error`; try again later.



## OpenAPI

````yaml /openapi.json post /sso/domains/{domain}/verify
openapi: 3.1.1
info:
  title: Sazabi Public API
  version: 1.0.0
  description: >
    Public REST API for Sazabi. Authenticate using a secret API key in the
    Authorization header.


    ## Pagination


    This API uses two pagination strategies depending on the endpoint type:


    ### Cursor-Based Pagination (List Endpoints)


    List endpoints (threads, messages, keys) use cursor-based pagination for
    efficient, consistent results:


    - **Parameters**: `limit` (items per page, default 50, max 100), `cursor`
    (opaque pagination token)

    - **Response**: Includes `nextCursor` field - pass this as `cursor` in the
    next request

    - **End of results**: When `nextCursor` is `null`, there are no more results

    - **Example**: `GET
    /v1/threads?limit=20&cursor=01234567-89ab-cdef-0123-456789abcdef`


    ### Page-Based Pagination (Search Endpoints)


    Search endpoints use page-based pagination due to the underlying search
    engine:


    - **Parameters**: `limit` (items per page, default 20, max 100), `page`
    (1-indexed page number)

    - **Response**: Includes `pagination` object with `page`, `limit`,
    `totalResults`, `totalPages`

    - **Example**: `GET /v1/search/threads?q=error&limit=10&page=2`
servers:
  - url: https://api.sazabi.com/v1
    description: Production
security: []
paths:
  /sso/domains/{domain}/verify:
    post:
      tags:
        - SSO
      summary: Verify an SSO domain
      description: >-
        Look up the domain's TXT record now. The domain is verified when the
        record holds the claim's value. A DNS error changes nothing and answers
        `dns_error`; try again later.
      operationId: sso.domains.verify
      parameters:
        - name: domain
          in: path
          required: true
          schema:
            type: string
            description: The claimed domain, such as example.com.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                  minLength: 1
                  description: >-
                    Organization whose SSO domains the operation targets. User
                    tokens must supply it unless the credential's fixed scope
                    resolves it; secret keys may omit it (the key's organization
                    applies).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  domain:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      domain:
                        type: string
                      status:
                        enum:
                          - pending
                          - verified
                          - lapsed
                        type: string
                      verificationRecord:
                        type: object
                        properties:
                          type:
                            const: TXT
                          name:
                            type: string
                          value:
                            type: string
                        required:
                          - type
                          - name
                          - value
                      verifiedAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                      lastCheckedAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                      enforceSso:
                        type: boolean
                      createdAt:
                        type: string
                        format: date-time
                    required:
                      - id
                      - domain
                      - status
                      - verificationRecord
                      - verifiedAt
                      - lastCheckedAt
                      - enforceSso
                      - createdAt
                  outcome:
                    enum:
                      - found
                      - not_found
                      - dns_error
                    type: string
                required:
                  - domain
                  - outcome

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.