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

# Turn SCIM off

> Turn SCIM off and revoke every token at once. Users, memberships and SCIM records are kept. Needs an owner or a key that can manage SSO. Answers `scim_only` while the connection is SCIM only.



## OpenAPI

````yaml /openapi.json post /sso/scim/disable
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/scim/disable:
    post:
      tags:
        - SSO
      summary: Turn SCIM off
      description: >-
        Turn SCIM off and revoke every token at once. Users, memberships and
        SCIM records are kept. Needs an owner or a key that can manage SSO.
        Answers `scim_only` while the connection is SCIM only.
      operationId: sso.scim.disable
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                  minLength: 1
                  description: >-
                    Organization whose SSO connection's SCIM 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:
                  scim:
                    type: object
                    properties:
                      connectionId:
                        type: string
                      baseUrl:
                        type: string
                        format: uri
                      enabled:
                        type: boolean
                      enabledAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                      pausedAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                      scimOnly:
                        type: boolean
                      lastChangeAt:
                        anyOf:
                          - type: string
                            format: date-time
                          - type: 'null'
                      deactivationThreshold:
                        anyOf:
                          - type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                            exclusiveMinimum: 0
                          - type: 'null'
                      tokens:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            prefix:
                              type: string
                            createdAt:
                              type: string
                              format: date-time
                            expiresAt:
                              anyOf:
                                - type: string
                                  format: date-time
                                - type: 'null'
                            lastUsedAt:
                              anyOf:
                                - type: string
                                  format: date-time
                                - type: 'null'
                            lastUsedIp:
                              anyOf:
                                - type: string
                                - type: 'null'
                            createdByUserId:
                              anyOf:
                                - type: string
                                - type: 'null'
                            createdBySecretKeyId:
                              anyOf:
                                - type: string
                                - type: 'null'
                          required:
                            - id
                            - prefix
                            - createdAt
                            - expiresAt
                            - lastUsedAt
                            - lastUsedIp
                            - createdByUserId
                            - createdBySecretKeyId
                    required:
                      - connectionId
                      - baseUrl
                      - enabled
                      - enabledAt
                      - pausedAt
                      - scimOnly
                      - lastChangeAt
                      - deactivationThreshold
                      - tokens
                  disabled:
                    type: boolean
                  revokedTokenCount:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                required:
                  - scim
                  - disabled
                  - revokedTokenCount

````

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