openapi: 3.0.3
info:
  title: Descope API
  description: Descope API
  contact:
    name: Descope
    url: https://descope.com
    email: support@descope.com
  version: 0.0.1
servers:
  - url: https://api.descope.com
    description: Descope Production
  - url: '{customUrl}'
    description: Custom server URL
    variables:
      customUrl:
        default: https://api.descope.com
        description: Your Descope API base URL
paths:
  /oauth2/v1/apps/agentic/{project_id}/{mcp_server_id}/authorize:
    get:
      tags: []
      description: Third Party application authorization GET endpoint by MCP server ID
      operationId: ThirdPartyApplicationAuthorizeGetByMcpServerID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: mcp_server_id
          in: path
          required: true
          schema:
            type: string
        - name: response_type
          in: query
          description: >-
            RFC 9101 §6.3: when a JAR `request` parameter is present,
            response_type and
             redirect_uri may be omitted from the outer query and carried inside the JWT.
             The controller validates the resolved values after JAR processing.
          schema:
            type: string
        - name: scope
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: redirect_uri
          in: query
          schema:
            type: string
        - name: code_challenge_method
          in: query
          description: PKCE
          schema:
            type: string
        - name: code_challenge
          in: query
          schema:
            type: string
        - name: nonce
          in: query
          schema:
            type: string
        - name: loginHint
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: string
        - name: flow
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: resource
          in: query
          description: RFC 8707 - OAuth 2.0 Resource Indicators
          schema:
            type: array
            items:
              type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: style
          in: query
          schema:
            type: string
        - name: dpop_jkt
          in: query
          schema:
            type: string
        - name: request
          in: query
          schema:
            type: string
        - name: request_uri
          in: query
          schema:
            type: string
        - name: authorization_details
          in: query
          schema:
            type: string
        - name: dynamic_val
          in: query
          schema:
            type: string
        - name: bg
          in: query
          schema:
            type: string
        - name: theme
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application authorization GET endpoint by MCP server ID
        keywords: api, third party apps
    post:
      tags: []
      description: Third Party application authorization POST endpoint by MCP server ID
      operationId: ThirdPartyApplicationAuthorizePOSTByMcpServerID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: mcp_server_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationAuthZEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application authorization POST endpoint by MCP server ID
        keywords: api, third party apps
  /oauth2/v1/apps/agentic/{project_id}/{mcp_server_id}/token:
    post:
      tags: []
      description: Third Party application token endpoint by MCP server ID
      operationId: ThirdPartyApplicationTokenEndpointByMcpServerID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: mcp_server_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationTokenEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCTokenEndpointResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application token endpoint by MCP server ID
        keywords: api, third party apps
  /oauth2/v1/apps/authorize:
    get:
      tags: []
      description: >-
        Start the authorization code flow for an [Inbound
        App](/identity-federation/inbound-apps). Redirect the user-agent to this
        endpoint with `client_id`, `redirect_uri`, `response_type=code`,
        `scope`, `state`, and PKCE parameters.


        See [Authorization server
        endpoints](/identity-federation/inbound-apps/authorization-server) for
        the full flow.
      operationId: ThirdPartyApplicationAuthorizeGet
      parameters:
        - name: response_type
          in: query
          description: >-
            RFC 9101 §6.3: when a JAR `request` parameter is present,
            response_type and
             redirect_uri may be omitted from the outer query and carried inside the JWT.
             The controller validates the resolved values after JAR processing.
          schema:
            type: string
        - name: scope
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: redirect_uri
          in: query
          schema:
            type: string
        - name: code_challenge_method
          in: query
          description: PKCE
          schema:
            type: string
        - name: code_challenge
          in: query
          schema:
            type: string
        - name: nonce
          in: query
          schema:
            type: string
        - name: loginHint
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: string
        - name: flow
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: resource
          in: query
          description: RFC 8707 - OAuth 2.0 Resource Indicators
          schema:
            type: array
            items:
              type: string
        - name: project_id
          in: query
          schema:
            type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: mcp_server_id
          in: query
          schema:
            type: string
        - name: style
          in: query
          schema:
            type: string
        - name: dpop_jkt
          in: query
          schema:
            type: string
        - name: request
          in: query
          schema:
            type: string
        - name: request_uri
          in: query
          schema:
            type: string
        - name: authorization_details
          in: query
          schema:
            type: string
        - name: dynamic_val
          in: query
          schema:
            type: string
        - name: bg
          in: query
          schema:
            type: string
        - name: theme
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      title: Get Authorization
      summary: OAuth 2.0 authorize endpoint (GET)
      x-meta:
        title: OAuth 2.0 authorize endpoint (GET) | Third Party Apps
        description: >-
          Start the authorization code flow for an [Inbound
          App](/identity-federation/inbound-apps). Redirect the user-agent to
          this endpoint with `client_id`, `redirect_uri`, `response_type=code`,
          `scope`, `state`, and PKCE parameters.
        keywords: api, third party apps
    post:
      tags: []
      description: >-
        Start authorization with a JSON request body (non-browser clients). Same
        semantics as the GET endpoint.


        See [Authorization server
        endpoints](/identity-federation/inbound-apps/authorization-server).
      operationId: ThirdPartyApplicationAuthorize
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationAuthZEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      title: Post Authorization
      summary: OAuth 2.0 authorize endpoint (POST)
      x-meta:
        title: OAuth 2.0 authorize endpoint (POST) | Third Party Apps
        description: >-
          Start authorization with a JSON request body (non-browser clients).
          Same semantics as the GET endpoint.
        keywords: api, third party apps
  /oauth2/v1/apps/bc-authorize:
    post:
      tags: []
      description: Third Party application CIBA backchannel authentication endpoint
      operationId: ThirdPartyApplicationCIBAEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CIBAAuthRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CIBAAuthResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application CIBA backchannel authentication endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/device:
    post:
      tags: []
      description: Third Party application device endpoint
      operationId: ThirdPartyApplicationDeviceEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCDeviceEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCDeviceEndpointResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application device endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/finish-authorize:
    post:
      tags: []
      description: Third Party application authorization finish endpoint
      operationId: ThirdPartyApplicationFinish
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationFinishEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      title: Finish Authorization
      summary: Finish Authorization Endpoint
      x-meta:
        title: Finish Authorization Endpoint | Third Party Apps
        description: Third Party application authorization finish endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/introspect:
    post:
      tags: []
      summary: Third Party App Introspect
      description: Third Party application token introspection endpoint (RFC 7662)
      operationId: ThirdPartyApplicationIntrospectionEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/ThirdPartyApplicationIntrospectionEndpointRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCIntrospectionEndpointResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: Third Party App Introspect | Third Party Apps
        description: Third Party application token introspection endpoint (RFC 7662)
        keywords: api, third party apps
  /oauth2/v1/apps/par:
    post:
      tags: []
      description: >-
        Push authorization parameters to Descope from your server before
        redirecting the user ([RFC
        9126](https://datatracker.ietf.org/doc/html/rfc9126)). Descope returns a
        single-use `request_uri` to send to the authorize endpoint.


        See [Pushed Authorization
        Requests](/identity-federation/inbound-apps/pushed-authorization-requests).
      operationId: ThirdPartyApplicationPAREndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationPARRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyApplicationPARResponse'
      x-publishYaml: thirdPartyApps
      security: []
      title: Inbound App PAR
      summary: Inbound App PAR
      x-meta:
        title: Inbound App PAR | Third Party Apps
        description: >-
          Push authorization parameters to Descope from your server before
          redirecting the user ([RFC
          9126](https://datatracker.ietf.org/doc/html/rfc9126)). Descope returns
          a single-use `request_uri` to send to the authorize endpoint.
        keywords: api, third party apps
  /oauth2/v1/apps/revoke:
    post:
      tags: []
      description: OIDC revoke endpoint
      operationId: ThirdPartyApplicationRevocationEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/ThirdPartyApplicationRevocationEndpointRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      title: OIDC revoke endpoint
      summary: OIDC revoke endpoint
      x-meta:
        title: OIDC revoke endpoint | Third Party Apps
        description: OIDC revoke endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/token:
    post:
      tags: []
      description: >-
        Exchange authorization codes, refresh tokens, client credentials, JWT
        bearer assertions, and RFC 8693 token-exchange requests for [Inbound
        App](/identity-federation/inbound-apps) access tokens.


        Supported `grant_type` values and examples are documented in
        [Authorization server
        endpoints](/identity-federation/inbound-apps/authorization-server) and
        [Using Inbound
        Apps](/identity-federation/inbound-apps/using-inbound-apps).
      operationId: ThirdPartyApplicationTokenEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationTokenEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCTokenEndpointResponse'
      x-publishYaml: thirdPartyApps
      security: []
      title: Token endpoint
      summary: OAuth 2.0 token endpoint (Inbound Apps)
      x-meta:
        title: OAuth 2.0 token endpoint (Inbound Apps) | Third Party Apps
        description: >-
          Exchange authorization codes, refresh tokens, client credentials, JWT
          bearer assertions, and RFC 8693 token-exchange requests for [Inbound
          App](/identity-federation/inbound-apps) access tokens.
        keywords: api, third party apps
  /oauth2/v1/apps/userinfo:
    get:
      tags: []
      description: Third Party application Get UserInfo endpoint
      operationId: ThirdPartyApplicationUserInfoEndpointGet
      parameters:
        - name: project_id
          in: query
          description: Can be empty as data arrived on the Authorization header token
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ThirdPartyApplicationUserInfoEndpointResponse
      x-publishYaml: thirdPartyApps
      security: []
      title: Get UserInfo
      summary: Third Party application Get UserInfo endpoint
      x-meta:
        title: Third Party application Get UserInfo endpoint | Third Party Apps
        description: Third Party application Get UserInfo endpoint
        keywords: api, third party apps
    post:
      tags: []
      description: Third Party application Post UserInfo endpoint
      operationId: ThirdPartyApplicationUserInfoEndpointPost
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/ThirdPartyApplicationUserInfoEndpointRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ThirdPartyApplicationUserInfoEndpointResponse
      x-publishYaml: thirdPartyApps
      security: []
      title: Post UserInfo
      summary: Third Party application Post UserInfo endpoint
      x-meta:
        title: Third Party application Post UserInfo endpoint | Third Party Apps
        description: Third Party application Post UserInfo endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/authorize:
    get:
      tags: []
      description: Third Party application authorization GET endpoint
      operationId: ThirdPartyApplicationAuthorizeGetByProjectID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: response_type
          in: query
          description: >-
            RFC 9101 §6.3: when a JAR `request` parameter is present,
            response_type and
             redirect_uri may be omitted from the outer query and carried inside the JWT.
             The controller validates the resolved values after JAR processing.
          schema:
            type: string
        - name: scope
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: redirect_uri
          in: query
          schema:
            type: string
        - name: code_challenge_method
          in: query
          description: PKCE
          schema:
            type: string
        - name: code_challenge
          in: query
          schema:
            type: string
        - name: nonce
          in: query
          schema:
            type: string
        - name: loginHint
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: string
        - name: flow
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: resource
          in: query
          description: RFC 8707 - OAuth 2.0 Resource Indicators
          schema:
            type: array
            items:
              type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: mcp_server_id
          in: query
          schema:
            type: string
        - name: style
          in: query
          schema:
            type: string
        - name: dpop_jkt
          in: query
          schema:
            type: string
        - name: request
          in: query
          schema:
            type: string
        - name: request_uri
          in: query
          schema:
            type: string
        - name: authorization_details
          in: query
          schema:
            type: string
        - name: dynamic_val
          in: query
          schema:
            type: string
        - name: bg
          in: query
          schema:
            type: string
        - name: theme
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application authorization GET endpoint
        keywords: api, third party apps
    post:
      tags: []
      description: Third Party application authorization POST endpoint
      operationId: ThirdPartyApplicationAuthorizePostByProjectID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationAuthZEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application authorization POST endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/bc-authorize:
    post:
      tags: []
      description: Third Party application CIBA backchannel authentication endpoint
      operationId: ThirdPartyApplicationCIBAEndpoint
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CIBAAuthRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CIBAAuthResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application CIBA backchannel authentication endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/device:
    post:
      tags: []
      description: Third Party application device endpoint
      operationId: ThirdPartyApplicationDeviceEndpoint
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCDeviceEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCDeviceEndpointResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application device endpoint
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/introspect:
    post:
      tags: []
      summary: Third Party App Introspect
      description: >-
        Third Party application token introspection endpoint (RFC 7662) by
        project ID
      operationId: ThirdPartyApplicationIntrospectionEndpointByProjectID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/ThirdPartyApplicationIntrospectionEndpointRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCIntrospectionEndpointResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: Third Party App Introspect | Third Party Apps
        description: >-
          Third Party application token introspection endpoint (RFC 7662) by
          project ID
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/par:
    post:
      tags: []
      description: >-
        Pushed Authorization Request endpoint with explicit project ID (RFC
        9126).
      operationId: ThirdPartyApplicationPAREndpointByProjectID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationPARRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyApplicationPARResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: >-
          Pushed Authorization Request endpoint with explicit project ID (RFC
          9126).
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/revoke:
    post:
      tags: []
      description: Third Party application revoke endpoint by project ID
      operationId: ThirdPartyApplicationRevocationEndpointByProjectID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/ThirdPartyApplicationRevocationEndpointRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application revoke endpoint by project ID
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/token:
    post:
      tags: []
      description: Third Party application token endpoint by project ID
      operationId: ThirdPartyApplicationTokenEndpointByProjectID
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationTokenEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCTokenEndpointResponse'
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application token endpoint by project ID
        keywords: api, third party apps
  /oauth2/v1/apps/{project_id}/userinfo:
    get:
      tags: []
      description: Third Party application Get UserInfo endpoint by project ID
      operationId: ThirdPartyApplicationUserInfoEndpointGetByProjectID
      parameters:
        - name: project_id
          in: path
          description: Can be empty as data arrived on the Authorization header token
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ThirdPartyApplicationUserInfoEndpointResponse
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application Get UserInfo endpoint by project ID
        keywords: api, third party apps
    post:
      tags: []
      description: Third Party application POST UserInfo endpoint by project ID
      operationId: ThirdPartyApplicationUserInfoEndpointPostByProjectID
      parameters:
        - name: project_id
          in: path
          description: Can be empty as data arrived on the Authorization header token
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/ThirdPartyApplicationUserInfoEndpointRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ThirdPartyApplicationUserInfoEndpointResponse
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Third Party application POST UserInfo endpoint by project ID
        keywords: api, third party apps
  /v1/mgmt/inboundapp/app/{projectId}/register:
    post:
      tags: []
      description: Register Third Party Application according to RFC 7591
      operationId: RegisterThirdPartyApplication
      parameters:
        - name: projectId
          in: path
          description: Auto fill by proto from the requested URL
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/managementv1.RegisterThirdPartyApplicationRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/managementv1.RegisterThirdPartyApplicationResponse
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Register Third Party Application according to RFC 7591
        keywords: api, third party apps
  /v1/mgmt/mcp/client/{projectId}/{mcpServerId}/register:
    post:
      tags: []
      description: Register MCP Server client according to RFC 7591
      operationId: RegisterMcpServerClient
      parameters:
        - name: projectId
          in: path
          description: Auto fill by proto from the requested URL
          required: true
          schema:
            type: string
        - name: mcpServerId
          in: path
          description: Auto fill by proto from the requested URL (only in agentic hub)
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/managementv1.RegisterThirdPartyApplicationRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/managementv1.RegisterThirdPartyApplicationResponse
      x-publishYaml: thirdPartyApps
      security: []
      x-meta:
        title: undefined | Third Party Apps
        description: Register MCP Server client according to RFC 7591
        keywords: api, third party apps
  /v1/oauth/tenant/select:
    post:
      tags: []
      summary: Select Tenant for OAuth Tokens
      description: >-
        Select the active tenant for a user that authenticated through a
        federated (OAuth/OIDC) application. Send the refresh token returned from
        the OAuth token endpoint as the bearer token, along with the application
        client_id and the tenant to select. Returns a new set of OIDC-compliant
        tokens (access, refresh and ID tokens) with the selected tenant as the
        dct claim, minted with the application's JWT template and session
        settings and preserving the originally granted scopes. The user must be
        a member of the selected tenant, and subsequent calls should use the
        newly returned refresh token
      operationId: OIDCSelectTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCSelectTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCTokenEndpointResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 4
      x-publishYaml: federatedApps
      x-meta:
        title: Select Tenant for OAuth Tokens | Federated Apps
        description: >-
          Select the active tenant for a user that authenticated through a
          federated (OAuth/OIDC) application. Send the refresh token returned
          from the OAuth token endpoint as the bearer token, along with the
          application client_id and the tenant to select. Returns a new set of
          OIDC-compliant tokens (access, refresh and ID tokens) with the
          selected tenant as the dct claim, minted with the application's JWT
          template and session settings and preserving the originally granted
          scopes. The user must be a member of the selected tenant, and
          subsequent calls should use the newly returned refresh token
        keywords: api, federated apps
  /oauth2/v1/authorize:
    get:
      tags: []
      summary: OIDC Authorize
      description: OIDC GET authorization endpoint start
      operationId: OIDCAuthZEndpointGetStart
      parameters:
        - name: response_type
          in: query
          description: >-
            response_type, scope and state are required for OIDC but marked
            optional so a PAR client may omit
             them from the outer authorize request and carry them via request_uri (RFC 9126 §4). The resolved
             values are enforced in OIDCService.OIDCAuthZEndpointStart (after applyPARToOIDCAuthZRequest):
             response_type and state must be present, scope must contain "openid". The PAR push
             (handleOIDCPAR) requires the same fields up front for fail-fast.
          schema:
            type: string
        - name: scope
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: redirect_uri
          in: query
          schema:
            type: string
        - name: code_challenge_method
          in: query
          description: PKCE
          schema:
            type: string
        - name: code_challenge
          in: query
          schema:
            type: string
        - name: dynamic_val
          in: query
          schema:
            type: string
        - name: nonce
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: loginHint
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: string
        - name: flow
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: style
          in: query
          schema:
            type: string
        - name: dpop_jkt
          in: query
          schema:
            type: string
        - name: request_uri
          in: query
          schema:
            type: string
        - name: project_id
          in: query
          schema:
            type: string
        - name: bg
          in: query
          schema:
            type: string
        - name: theme
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize | Federated Apps
        description: OIDC GET authorization endpoint start
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC Authorize
      description: OIDC POST authorization endpoint start
      operationId: OIDCAuthZEndpointPostStart
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCAuthZEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize | Federated Apps
        description: OIDC POST authorization endpoint start
        keywords: api, federated apps
  /oauth2/v1/authorize/entramfa:
    post:
      tags: []
      summary: OIDC Authorize Entra MFA
      description: OIDC Entra MFA authorization endpoint
      operationId: OIDCAuthZEndpointEntraMFA
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCAuthZEntraMFAEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize Entra MFA | Federated Apps
        description: OIDC Entra MFA authorization endpoint
        keywords: api, federated apps
  /oauth2/v1/device:
    post:
      tags: []
      summary: OIDC Device
      description: OIDC device endpoint
      operationId: OIDCDeviceEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCDeviceEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCDeviceEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Device | Federated Apps
        description: OIDC device endpoint
        keywords: api, federated apps
  /oauth2/v1/finish-authorize:
    get:
      tags: []
      summary: OIDC Finish Authorize
      description: OIDC POST authorization endpoint finish
      operationId: OIDCAuthZEndpointFinishPost
      parameters:
        - name: state_id
          in: query
          schema:
            type: string
          required: true
        - name: sso_app_id
          in: query
          schema:
            type: string
        - name: error_redirect_uri
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Finish Authorize | Federated Apps
        description: OIDC POST authorization endpoint finish
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC Finish Authorize
      description: OIDC GET authorization endpoint finish
      operationId: OIDCAuthZEndpointFinishGet
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCAuthZEndpointFinishRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Finish Authorize | Federated Apps
        description: OIDC GET authorization endpoint finish
        keywords: api, federated apps
  /oauth2/v1/introspect:
    post:
      tags: []
      summary: OIDC Introspect
      description: OIDC token introspection endpoint (RFC 7662)
      operationId: OIDCIntrospectionEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCIntrospectionEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCIntrospectionEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Introspect | Federated Apps
        description: OIDC token introspection endpoint (RFC 7662)
        keywords: api, federated apps
  /oauth2/v1/logout:
    get:
      tags: []
      summary: OIDC End Session
      description: OIDC end session GET endpoint
      operationId: OIDCEndSessionEndpointGet
      parameters:
        - name: id_token_hint
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          description: >-
            Legacy apps send the projectID (a descope_id); dedicated clients
            send a caller-imported custom
             client_id, so this is capped by length (matching the authorize/token endpoints) rather than the
             descope_id format, and resolved/validated at the Controller level.
          schema:
            type: string
        - name: post_logout_redirect_uri
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: project_id
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC End Session | Federated Apps
        description: OIDC end session GET endpoint
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC End Session
      description: OIDC end session POST endpoint
      operationId: OIDCEndSessionEndpointPost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCEndSessionEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC End Session | Federated Apps
        description: OIDC end session POST endpoint
        keywords: api, federated apps
  /oauth2/v1/par:
    post:
      tags: []
      summary: OIDC PAR
      description: >-
        Pushed Authorization Request endpoint for federated OIDC apps (RFC
        9126).
      operationId: OIDCPAREndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationPARRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyApplicationPARResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC PAR | Federated Apps
        description: >-
          Pushed Authorization Request endpoint for federated OIDC apps (RFC
          9126).
        keywords: api, federated apps
  /oauth2/v1/revoke:
    post:
      tags: []
      summary: OIDC Revoke
      description: OIDC revoke endpoint
      operationId: OIDCRevocationEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCRevocationEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Revoke | Federated Apps
        description: OIDC revoke endpoint
        keywords: api, federated apps
  /oauth2/v1/token:
    post:
      tags: []
      summary: OIDC Token
      description: OIDC token endpoint
      operationId: OIDCTokenEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCTokenEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCTokenEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Token | Federated Apps
        description: OIDC token endpoint
        keywords: api, federated apps
  /oauth2/v1/userinfo:
    get:
      tags: []
      summary: OIDC UserInfo
      description: OIDC Get UserInfo endpoint
      operationId: OIDCUserInfoEndpointGet
      parameters:
        - name: ssoAppId
          in: query
          description: Can be empty as data arrived on the Authorization header token
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCUserInfoEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC UserInfo | Federated Apps
        description: OIDC Get UserInfo endpoint
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC UserInfo
      description: OIDC POST UserInfo endpoint
      operationId: OIDCUserInfoEndpointPost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCUserInfoEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCUserInfoEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC UserInfo | Federated Apps
        description: OIDC POST UserInfo endpoint
        keywords: api, federated apps
  /oauth2/v1/{project_id}/authorize:
    get:
      tags: []
      summary: OIDC Authorize
      description: >-
        OIDC GET authorization endpoint start (by projectId, for an imported
        client_id)
      operationId: OIDCProjectIDAuthZEndpointGetStart
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: response_type
          in: query
          description: >-
            response_type, scope and state are required for OIDC but marked
            optional so a PAR client may omit
             them from the outer authorize request and carry them via request_uri (RFC 9126 §4). The resolved
             values are enforced in OIDCService.OIDCAuthZEndpointStart (after applyPARToOIDCAuthZRequest):
             response_type and state must be present, scope must contain "openid". The PAR push
             (handleOIDCPAR) requires the same fields up front for fail-fast.
          schema:
            type: string
        - name: scope
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: redirect_uri
          in: query
          schema:
            type: string
        - name: code_challenge_method
          in: query
          description: PKCE
          schema:
            type: string
        - name: code_challenge
          in: query
          schema:
            type: string
        - name: dynamic_val
          in: query
          schema:
            type: string
        - name: nonce
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: loginHint
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: string
        - name: flow
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: style
          in: query
          schema:
            type: string
        - name: dpop_jkt
          in: query
          schema:
            type: string
        - name: request_uri
          in: query
          schema:
            type: string
        - name: bg
          in: query
          schema:
            type: string
        - name: theme
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize | Federated Apps
        description: >-
          OIDC GET authorization endpoint start (by projectId, for an imported
          client_id)
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC Authorize
      description: >-
        OIDC POST authorization endpoint start (by projectId, for an imported
        client_id)
      operationId: OIDCProjectIDAuthZEndpointPostStart
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCAuthZEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize | Federated Apps
        description: >-
          OIDC POST authorization endpoint start (by projectId, for an imported
          client_id)
        keywords: api, federated apps
  /oauth2/v1/{project_id}/device:
    post:
      tags: []
      summary: OIDC Device
      description: OIDC device endpoint (by projectId, for an imported client_id)
      operationId: OIDCProjectIDDeviceEndpoint
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCDeviceEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCDeviceEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Device | Federated Apps
        description: OIDC device endpoint (by projectId, for an imported client_id)
        keywords: api, federated apps
  /oauth2/v1/{project_id}/logout:
    get:
      tags: []
      summary: OIDC End Session
      description: OIDC end session GET endpoint (by projectId, for an imported client_id)
      operationId: OIDCProjectIDEndSessionEndpointGet
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: id_token_hint
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          description: >-
            Legacy apps send the projectID (a descope_id); dedicated clients
            send a caller-imported custom
             client_id, so this is capped by length (matching the authorize/token endpoints) rather than the
             descope_id format, and resolved/validated at the Controller level.
          schema:
            type: string
        - name: post_logout_redirect_uri
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC End Session | Federated Apps
        description: >-
          OIDC end session GET endpoint (by projectId, for an imported
          client_id)
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC End Session
      description: OIDC end session POST endpoint (by projectId, for an imported client_id)
      operationId: OIDCProjectIDEndSessionEndpointPost
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCEndSessionEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC End Session | Federated Apps
        description: >-
          OIDC end session POST endpoint (by projectId, for an imported
          client_id)
        keywords: api, federated apps
  /oauth2/v1/{project_id}/token:
    post:
      tags: []
      summary: OIDC Token
      description: OIDC token endpoint (by projectId, for an imported client_id)
      operationId: OIDCProjectIDTokenEndpoint
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCTokenEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCTokenEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Token | Federated Apps
        description: OIDC token endpoint (by projectId, for an imported client_id)
        keywords: api, federated apps
  /v1/auth/saml/idp/initiate:
    get:
      tags: []
      summary: SAML IDP Initiate Redirect
      description: SAML IDP Initiate HTTP redirect binding login flow
      operationId: SAMLIDPInitiateHTTPRedirectBinding
      parameters:
        - name: app
          in: query
          schema:
            type: string
          required: true
        - name: RelayState
          in: query
          schema:
            type: string
        - name: LoginHint
          in: query
          schema:
            type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: login_hint
          in: query
          schema:
            type: string
        - name: code
          in: query
          description: >-
            Exchange code of a tenant IdP-initiated SSO login whose redirect URL
            is this endpoint. Forwarded to the
             login page so the flow can complete that login instead of asking the user to sign in again
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: SAML IDP Initiate Redirect | Federated Apps
        description: SAML IDP Initiate HTTP redirect binding login flow
        keywords: api, federated apps
    post:
      tags: []
      summary: SAML IDP Initiate POST
      description: SAML IDP Initiate HTTP POST binding login flow
      operationId: SAMLIDPInitiateHTTPPostBinding
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SAMLIDPInitiateRequestPOST'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: SAML IDP Initiate POST | Federated Apps
        description: SAML IDP Initiate HTTP POST binding login flow
        keywords: api, federated apps
  /v1/auth/saml/idp/sso:
    get:
      tags: []
      summary: SAML IDP Redirect Binding
      description: SAML IDP http redirect binding login flow
      operationId: SAMLIDPHTTPRedirectBinding
      parameters:
        - name: app
          in: query
          schema:
            type: string
        - name: SAMLRequest
          in: query
          schema:
            type: string
        - name: SamlRequest
          in: query
          schema:
            type: string
        - name: RelayState
          in: query
          schema:
            type: string
        - name: LoginHint
          in: query
          schema:
            type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: login_hint
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: SAML IDP Redirect Binding | Federated Apps
        description: SAML IDP http redirect binding login flow
        keywords: api, federated apps
    post:
      tags: []
      summary: SAML IDP POST Binding
      description: SAML IDP HTTP POST binding login flow
      operationId: SAMLIDPHTTPPostBinding
      parameters:
        - name: app
          in: query
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SAMLIDPSSORequestPOSTData'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: SAML IDP POST Binding | Federated Apps
        description: SAML IDP HTTP POST binding login flow
        keywords: api, federated apps
  /v1/auth/saml/idp/sso-finish:
    post:
      tags: []
      summary: SAML IDP Finish
      description: SAML IDP finish endpoint
      operationId: SAMLIDPFinishEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SAMLIDPFinishEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SAMLIDPFinishEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: SAML IDP Finish | Federated Apps
        description: SAML IDP finish endpoint
        keywords: api, federated apps
  /v1/auth/wsfed/idp/initiate:
    get:
      tags: []
      summary: WS-Fed IDP Initiate
      description: WS-Fed IDP-initiated sign-in (GET)
      operationId: WSFedIDPInitiateGet
      parameters:
        - name: app
          in: query
          schema:
            type: string
          required: true
        - name: tenant
          in: query
          schema:
            type: string
        - name: login_hint
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: WS-Fed IDP Initiate | Federated Apps
        description: WS-Fed IDP-initiated sign-in (GET)
        keywords: api, federated apps
    post:
      tags: []
      summary: WS-Fed IDP Initiate
      description: WS-Fed IDP-initiated sign-in (POST)
      operationId: WSFedIDPInitiatePost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WSFedIDPInitiateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: WS-Fed IDP Initiate | Federated Apps
        description: WS-Fed IDP-initiated sign-in (POST)
        keywords: api, federated apps
  /v1/auth/wsfed/idp/sso:
    get:
      tags: []
      summary: WS-Fed IDP Passive
      description: WS-Fed IDP passive sign-in endpoint (GET)
      operationId: WSFedIDPPassiveGet
      parameters:
        - name: app
          in: query
          schema:
            type: string
        - name: wa
          in: query
          schema:
            type: string
        - name: wtrealm
          in: query
          schema:
            type: string
        - name: wreply
          in: query
          schema:
            type: string
        - name: wctx
          in: query
          schema:
            type: string
        - name: whr
          in: query
          schema:
            type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: login_hint
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: WS-Fed IDP Passive | Federated Apps
        description: WS-Fed IDP passive sign-in endpoint (GET)
        keywords: api, federated apps
    post:
      tags: []
      summary: WS-Fed IDP Passive
      description: WS-Fed IDP passive sign-in endpoint (POST)
      operationId: WSFedIDPPassivePost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WSFedIDPPassiveRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: WS-Fed IDP Passive | Federated Apps
        description: WS-Fed IDP passive sign-in endpoint (POST)
        keywords: api, federated apps
  /v1/auth/wsfed/idp/sso-finish:
    post:
      tags: []
      summary: WS-Fed IDP Finish
      description: WS-Fed IDP finish endpoint after authentication
      operationId: WSFedIDPFinishEndpoint
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WSFedIDPFinishEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WSFedIDPFinishEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: WS-Fed IDP Finish | Federated Apps
        description: WS-Fed IDP finish endpoint after authentication
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/authorize:
    get:
      tags: []
      summary: OIDC Authorize
      description: OIDC GET authorization endpoint start (sso app)
      operationId: OIDCSSOAppAuthZEndpointGetStart
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
        - name: response_type
          in: query
          description: >-
            response_type, scope and state are required for OIDC but marked
            optional so a PAR client may omit
             them from the outer authorize request and carry them via request_uri (RFC 9126 §4). The resolved
             values are enforced in OIDCService.OIDCAuthZEndpointStart (after applyPARToOIDCAuthZRequest):
             response_type and state must be present, scope must contain "openid". The PAR push
             (handleOIDCPAR) requires the same fields up front for fail-fast.
          schema:
            type: string
        - name: scope
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: redirect_uri
          in: query
          schema:
            type: string
        - name: code_challenge_method
          in: query
          description: PKCE
          schema:
            type: string
        - name: code_challenge
          in: query
          schema:
            type: string
        - name: dynamic_val
          in: query
          schema:
            type: string
        - name: nonce
          in: query
          schema:
            type: string
        - name: loginHint
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: string
        - name: flow
          in: query
          schema:
            type: string
        - name: flow_token
          in: query
          schema:
            type: string
        - name: tenant
          in: query
          schema:
            type: string
        - name: style
          in: query
          schema:
            type: string
        - name: dpop_jkt
          in: query
          schema:
            type: string
        - name: request_uri
          in: query
          schema:
            type: string
        - name: project_id
          in: query
          schema:
            type: string
        - name: bg
          in: query
          schema:
            type: string
        - name: theme
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize | Federated Apps
        description: OIDC GET authorization endpoint start (sso app)
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC Authorize
      description: OIDC POST authorization endpoint start (sso app)
      operationId: OIDCSSOAppAuthZEndpointPostStart
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCAuthZEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize | Federated Apps
        description: OIDC POST authorization endpoint start (sso app)
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/authorize/entramfa:
    post:
      tags: []
      summary: OIDC Authorize Entra MFA
      description: OIDC Entra MFA authorization endpoint (SSO App)
      operationId: OIDCSSOAppAuthZEndpointEntraMFA
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCAuthZEntraMFAEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Authorize Entra MFA | Federated Apps
        description: OIDC Entra MFA authorization endpoint (SSO App)
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/device:
    post:
      tags: []
      summary: OIDC Device
      description: OIDC device endpoint (sso app)
      operationId: OIDCDeviceEndpoint
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCDeviceEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCDeviceEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Device | Federated Apps
        description: OIDC device endpoint (sso app)
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/introspect:
    post:
      tags: []
      summary: OIDC Introspect
      description: OIDC token introspection endpoint (RFC 7662, sso app)
      operationId: OIDCSSOAppIntrospectionEndpoint
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCIntrospectionEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCIntrospectionEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Introspect | Federated Apps
        description: OIDC token introspection endpoint (RFC 7662, sso app)
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/logout:
    get:
      tags: []
      summary: OIDC End Session
      description: OIDC end session GET endpoint (sso app)
      operationId: OIDCSSOAppEndSessionEndpointGet
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
        - name: id_token_hint
          in: query
          schema:
            type: string
        - name: client_id
          in: query
          description: >-
            Legacy apps send the projectID (a descope_id); dedicated clients
            send a caller-imported custom
             client_id, so this is capped by length (matching the authorize/token endpoints) rather than the
             descope_id format, and resolved/validated at the Controller level.
          schema:
            type: string
        - name: post_logout_redirect_uri
          in: query
          schema:
            type: string
        - name: state
          in: query
          schema:
            type: string
        - name: project_id
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC End Session | Federated Apps
        description: OIDC end session GET endpoint (sso app)
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC End Session
      description: OIDC end session POST endpoint (sso app)
      operationId: OIDSSOAppCEndSessionEndpointPost
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCEndSessionEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC End Session | Federated Apps
        description: OIDC end session POST endpoint (sso app)
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/par:
    post:
      tags: []
      summary: OIDC PAR (SSO app)
      description: >-
        Pushed Authorization Request endpoint for a federated OIDC SSO
        application (RFC 9126).
      operationId: OIDCSSOAppPAREndpoint
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ThirdPartyApplicationPARRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThirdPartyApplicationPARResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC PAR (SSO app) | Federated Apps
        description: >-
          Pushed Authorization Request endpoint for a federated OIDC SSO
          application (RFC 9126).
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/revoke:
    post:
      tags: []
      summary: OIDC Revoke
      description: OIDC revoke endpoint (sso app)
      operationId: OIDCSSOAppRevocationEndpoint
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCRevocationEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Revoke | Federated Apps
        description: OIDC revoke endpoint (sso app)
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/token:
    post:
      tags: []
      summary: OIDC Token
      description: OIDC token endpoint (sso app)
      operationId: OIDCSSOAppTokenEndpoint
      parameters:
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCTokenEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCTokenEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC Token | Federated Apps
        description: OIDC token endpoint (sso app)
        keywords: api, federated apps
  /{ssoAppId}/oauth2/v1/userinfo:
    get:
      tags: []
      summary: OIDC UserInfo
      description: OIDC Get UserInfo endpoint (sso app)
      operationId: OIDCSSOAppUserInfoEndpointGet
      parameters:
        - name: ssoAppId
          in: path
          description: Can be empty as data arrived on the Authorization header token
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCUserInfoEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC UserInfo | Federated Apps
        description: OIDC Get UserInfo endpoint (sso app)
        keywords: api, federated apps
    post:
      tags: []
      summary: OIDC UserInfo
      description: OIDC POST UserInfo endpoint (sso app)
      operationId: OIDCSSOAppUserInfoEndpointPost
      parameters:
        - name: ssoAppId
          in: path
          description: Can be empty as data arrived on the Authorization header token
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OIDCUserInfoEndpointRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OIDCUserInfoEndpointResponse'
      x-publishYaml: federatedApps
      security: []
      x-meta:
        title: OIDC UserInfo | Federated Apps
        description: OIDC POST UserInfo endpoint (sso app)
        keywords: api, federated apps
  /v1/auth/accesskey/exchange:
    post:
      tags: []
      summary: Exchange Key
      description: >-
        ### Exchange API key for access token


        This API Endpoint will take an API key for the project and provide an
        access token to be used for accessing the application.

        The session token JWT token will be valid for the configured [Session
        Token Timeout](/project-settings#session-token-timeout), and its
        expiration time will be provided in the `expiration` field of the
        response object.
      operationId: ExchangeAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExchangeAccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExchangeAccessKeyResponse'
      security:
        - Descope Project ID:Access Key: []
      x-order: 3
      x-publishYaml: AccessKeys
      x-sdk: true
      x-meta:
        title: Exchange Key | Access Keys
        description: Exchange API key for access token
        keywords: api, access keys
  /v1/auth/enchantedlink/signup/email:
    post:
      tags:
        - ''
      summary: Sign-Up
      description: >-
        ### Sign-up new end user by sending an enchanted link via email

        Initiate a sign-up process by sending an enchanted link to a new end
        user.

        Descope will generate and deliver 3 clickable links to the email address
        specified,

        each is numbered with random 2 digit number. When you initiate the
        enchanted link, the `linkId` will be returned. This `linkId` needs to be
        displayed to the user to indicate which link for the user to click

        once they receive the email. Only when the correct link is clicked will
        the user be successfully verified and logged in.

        Each clickable link is made up of two parts -

        the URI you provide in the `URI` field and the enchanted link token
        generated by Descope.

        For example, if `URI=https://app.mycompany.com/enchantedlink/verify`,

        the clickable enchanted link will be
        `https://app.mycompany.com/enchantedlink/verify?t=enchanted-link-token.`

        Enchanted links expire in the time frame configured in the

        [Descope
        console](https://app.descope.com/settings/authentication/enchantedlink),

        so sending multiple enchanted links (for example, when an end user tries
        to sign-up a second or third time)

        does not invalidate links that have already been sent.


        The return body will include `linkId` and `pendigRef`.

        The `linkId` (a 2 digit number) should be presented to the user,

        so they will know which link to click in the delivered email.

        The endpoint will return a failure code if the email address is already
        registered.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        1. Verify the enchanted link token using the [Verify
        Token](/api/enchanted-link/verify-token) endpoint.

        2. Poll for the successful completion of the token verification using
        the [Poll Session](/api/enchanted-link/poll-session) endpoint, providing
        the `pendingRef` returned by the this endpoint.


        ### See Also

        - See [Enchanted link Authentication](/api/enchantedlink/) for details
        about implementing enchanted links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - Use the [Sign-In](/api/enchanted-link/sign-in) endpoint to sign-in an
        existing end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/enchanted-link/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignUpEnchantedLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnchantedLinkSignUpEmailRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnchantedLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | Enchanted Link
        description: Sign-up new end user by sending an enchanted link via email
        keywords: api, enchanted link
  /v1/auth/enchantedlink/signup/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-Up
      description: Create a new user based on the given identifier or phone
      operationId: SignUpEnchantedLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnchantedLinkSignUpPhoneRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneEnchantedLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | Enchanted Link SMS
        description: Create a new user based on the given identifier or phone SMS
        keywords: api, enchanted link, sms
  /v1/auth/enchantedlink/signin/email:
    post:
      tags:
        - ''
      summary: Sign-In
      description: >-
        ### Sign-in existing user by sending an enchanted link via email

        Initiate a sign-in process by sending an enchanted link to a new end
        user.

        Descope will generate and deliver 3 clickable links to the email address
        specified,

        each is numbered with random 2 digit number. When you initiate the
        enchanted link, the `linkId` will be returned. This `linkId` needs to be
        displayed to the user to indicate which link for the user to click

        once they receive the email. Only when the correct link is clicked will
        the user be successfully verified and logged in.

        Each clickable link is made up of two parts -

        the URI you provide in the `URI` field and the enchanted link token
        generated by Descope.

        For example, if `URI=https://app.mycompany.com/enchantedlink/verify`,

        the clickable enchanted link will be
        `https://app.mycompany.com/enchantedlink/verify?t=enchanted-link-token.`

        Enchanted links expire in the time frame configured in the

        [Descope
        console](https://app.descope.com/settings/authentication/enchantedlink),

        so sending multiple enchanted links (for example, when an end user tries
        to sign-up a second or third time)

        does not invalidate links that have already been sent.


        The return body will include `linkId` and `pendigRef`.

        The `linkId` (a 2 digit number) should be presented to the user,

        so they will know which link to click in the delivered email.

        The endpoint will return a failure code if the email address is already
        registered.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        1. Verify the enchanted link token using the [Verify
        Token](/api/enchanted-link/verify-token) endpoint.

        2. Poll for the successful completion of the token verification using
        the [Poll Session](/api/enchanted-link/poll-session) endpoint, providing
        the `pendingRef` returned by the this endpoint.


        ### See Also

        - See [Enchanted link Authentication](/api/enchantedlink/) for details
        about implementing enchanted links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/enchanted-link/sign-up) endpoint to sign-up a
        new end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/enchanted-link/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignInEnchantedLinkEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnchantedLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnchantedLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | Enchanted Link Email
        description: Sign-in existing user by sending an enchanted link via email Email
        keywords: api, enchanted link, email
  /v1/auth/enchantedlink/signin/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-In
      description: Login a user based on an enchanted link that will be sent by SMS
      operationId: SignInEnchantedLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnchantedLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneEnchantedLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | Enchanted Link SMS
        description: Login a user based on an enchanted link that will be sent by SMS SMS
        keywords: api, enchanted link, sms
  /v1/auth/enchantedlink/signup-in/email:
    post:
      tags:
        - ''
      summary: Sign-In with Auto Sign-Up
      description: >-
        ### Sign-in end user (with automatic sign-up) by sending an enchanted
        link via email

        Initiate a process that implements both sign-in and sign-up using a
        single endpoint.

        If the email address is already registered (the end user has already
        registered) the user will be signed in.

        If the email address is not registered (the end user is not yet
        registered) the user will be signed up.


        Descope will generate and deliver 3 clickable links to the email address
        specified,

        each is numbered with random 2 digit number. When you initiate the
        enchanted link, the `linkId` will be returned. This `linkId` needs to be
        displayed to the user to indicate which link for the user to click

        once they receive the email. Only when the correct link is clicked will
        the user be successfully verified and logged in.

        Each clickable link is made up of two parts -

        the URI you provide in the `URI` field and the enchanted link token
        generated by Descope.

        For example, if `URI=https://app.mycompany.com/enchantedlink/verify`,

        the clickable enchanted link will be
        `https://app.mycompany.com/enchantedlink/verify?t=enchanted-link-token.`

        Enchanted links expire in the time frame configured in the

        [Descope
        console](https://app.descope.com/settings/authentication/enchantedlink),

        so sending multiple enchanted links (for example, when an end user tries
        to sign-up a second or third time)

        does not invalidate links that have already been sent.


        The return body will include `linkId` and `pendigRef`.

        The `linkId` (a 2 digit number) should be presented to the user,

        so they will know which link to click in the delivered email.

        The endpoint will return a failure code if the email address is already
        registered.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        1. Verify the enchanted link token using the [Verify
        Token](/api/enchanted-link/verify-token) endpoint.

        2. Poll for the successful completion of the token verification using
        the [Poll Session](/api/enchanted-link/poll-session) endpoint, providing
        the `pendingRef` returned by the this endpoint.


        ### See Also

        - See [Enchanted link Authentication](/api/enchantedlink/) for details
        about implementing enchanted links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/enchanted-link/sign-up) endpoint to sign-up a
        new end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/enchanted-link/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignUpOrInEnchantedLinkEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnchantedLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnchantedLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-In with Auto Sign-Up | Enchanted Link Email
        description: >-
          Sign-in end user (with automatic sign-up) by sending an enchanted link
          via email Email
        keywords: api, enchanted link, email
  /v1/auth/enchantedlink/signup-in/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-In (with User Creation)
      description: >-
        Login in using phone. If the user does not exist, a new user will be
        created with the given phone
      operationId: SignUpOrInEnchantedLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnchantedLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneEnchantedLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-In (with User Creation) | Enchanted Link SMS
        description: >-
          Login in using phone. If the user does not exist, a new user will be
          created with the given phone SMS
        keywords: api, enchanted link, sms
  /v1/auth/enchantedlink/verify:
    post:
      tags:
        - ''
      summary: Verify Token
      description: >-
        ### Verify Enchanted Link token from user


        Verify that the enchanted link token in the URL clicked by the end user
        matches and has

        not expired. This endpoint completes the enchanted link flow for:

        * sign up
            * [Sign-Up via email](/api/enchanted-link/sign-up)
        * sign-in
            * [Sign-In via email](/api/enchanted-link/sign-in)
        * sign-in with auto sign-up
            * [Sign-In with Auto Sign-up via email](/api/enchanted-link/sign-in-auto-sign-up)
        * Update data
            * [update email](/api/enchanted-link/update-email)

        ### Next Steps


        Poll for the successful completion of the token verification using the
        [Poll Session](/api/enchanted-link/poll-session) endpoint, providing the
        `pendingRef` returned by the this endpoint.


        The response object will be empty when this endpoint completes
        successfully. The session information will be returned by the the [Poll
        Session](/api/enchanted-link/poll-session) endpoint.


        ### See Also

        - See [Enchanted link Authentication](/api/enchantedlink/) for details
        about implementing enchanted links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: VerifyEnchantedLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyEnchantedLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyEnchantedLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 4
      x-sdk: true
      x-meta:
        title: Verify Token | Enchanted Link
        description: Verify Enchanted Link token from user
        keywords: api, enchanted link
  /v1/auth/enchantedlink/pending-session:
    post:
      tags:
        - ''
      summary: Poll Session
      description: >-
        ### Poll user session for successful completion of token verification

        This endpoint is used to wait for the enchanted link verification by the
        end user.

        Use this endpoint in a poling way, until it returns a successful JWT, or
        timeout error.

        The response object includes the session JWT `sessionJwt` and refresh
        JWT `refreshJwt`

        when this endpoint completes successfully.


        ### See Also

        - See [Enchanted link Authentication](/api/enchantedlink/) for details
        about implementing enchanted links.
      operationId: GetEnchantedLinkSession
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetEnchantedLinkSessionRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: EnchantedLink
      x-order: 5
      x-sdk: true
      x-meta:
        title: Poll Session | Enchanted Link
        description: Poll user session for successful completion of token verification
        keywords: api, enchanted link
  /v1/auth/enchantedlink/update/email:
    post:
      tags:
        - ''
      summary: Update Email
      description: >-
        ### Update email of end user by sending enchanted link via email

        Update the email address of an existing end user by sending an enchanted
        link to the new email address.

        Descope will generate and deliver 3 clickable links to the email address
        specified,

        each is numbered with random 2 digit number.

        Only the right link (based on the number returned will be successfully
        verified when clicked)


        Each clickable link is made up of two parts -

        the URI you provide in the `URI` field and the enchanted link token
        generated by Descope.

        For example, if `URI=https://app.mycompany.com/enchantedlink/verify`,

        the clickable enchanted link will be
        `https://app.mycompany.com/enchantedlink/verify?t=enchanted-link-token.`

        Enchanted links expire in the time frame configured in the

        [Descope
        console](https://app.descope.com/settings/authentication/enchantedlink),

        so sending multiple enchanted links (for example, when an end user tries
        to sign-up a second or third time)

        does not invalidate links that have already been sent.


        The bearer token requires both the ProjectId and refresh JWT in the
        format `<Project ID>:<JWT>`, and can therefore only be run for end users
        who are currently signed-in.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        Once the token is successfully verified - the email address will be
        updated.


        Descope allows you to associating multiple login IDs for a user during
        API update calls. For details on how this feature works, please review
        the details
        [here](/manage/users#associating-multiple-login-ids-for-a-user).


        ### Next Steps

        1. Verify the enchanted link token using the [Verify
        Token](/api/enchanted-link/verify-token) endpoint.

        2. Poll for the successful completion of the token verification using
        the [Poll Session](/api/enchanted-link/poll-session) endpoint, providing
        the `pendingRef` returned by the this endpoint.


        ### See Also

        - See [Enchanted link Authentication](/api/enchantedlink/) for details
        about implementing enchanted links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: UpdateUserEmailEnchantedLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserEmailEnchantedLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnchantedLinkResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: EnchantedLink
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Email | Enchanted Link Email
        description: Update email of end user by sending enchanted link via email Email
        keywords: api, enchanted link, email
  /v1/auth/enchantedlink/update/phone/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Use to update phone and validate via enchanted link using SMS
      description: Use to update phone and validate via enchanted link using SMS
      operationId: UpdateUserPhoneEnchantedLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPhoneEnchantedLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneEnchantedLinkResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: EnchantedLink
      x-order: 5
      x-sdk: true
      x-meta:
        title: >-
          Use to update phone and validate via enchanted link using SMS |
          Enchanted Link SMS
        description: Use to update phone and validate via enchanted link using SMS SMS
        keywords: api, enchanted link, sms
  /v1/auth/refresh:
    post:
      tags: []
      summary: Refresh Session
      description: >-
        ### Refresh the session token, using a valid fresh token


        This API endpoint will provide a new valid session token for an existing
        signed-in user, by validating the provided refresh token.

        The refresh token is provided as part of the HTTP Authorization Bearer.
      operationId: RefreshSession
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshSessionRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 2
      x-publishYaml: session
      x-sdk: true
      x-meta:
        title: Refresh Session | Session
        description: Refresh the session token, using a valid fresh token
        keywords: api, session
  /v1/auth/try-refresh:
    post:
      tags: []
      summary: Try Refresh Session
      description: >-
        Refresh the current session if it is valid, will not fail if the refresh
        token is missing or invalid
      operationId: TryRefreshSession
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefreshSessionRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OptionalJWTResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 2
      x-publishYaml: session
      x-meta:
        title: Try Refresh Session | Session
        description: >-
          Refresh the current session if it is valid, will not fail if the
          refresh token is missing or invalid
        keywords: api, session
  /v1/auth/me:
    get:
      tags: []
      summary: My Details
      description: >-
        ### Get current signed-in user details


        This API Endpoint will return the current user's details. This endpoint
        requires the user to be signed in and have a valid `refreshJwt`. The
        `refreshJwt` is then used as part of the Authorization Bearer to perform
        this task.
      operationId: Me
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseUser'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 3
      x-publishYaml: session
      x-sdk: true
      x-meta:
        title: My Details | Session
        description: Get current signed-in user details
        keywords: api, session
  /v1/auth/me/history:
    get:
      tags: []
      summary: Get Session History
      description: >-
        ### Get user's session history


        This API Endpoint will return the current user's session history
        including geo-location and IP address. This endpoint requires the user
        to be signed in and have a valid `refreshJwt`. The `refreshJwt` is then
        used as part of the Authorization Bearer to perform this task.
      operationId: MeAuthHistory
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MeAuthHistoryResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 3
      x-publishYaml: session
      x-sdk: true
      x-meta:
        title: Get Session History | Session
        description: Get user's session history
        keywords: api, session
  /v1/auth/tenant/select:
    post:
      tags: []
      summary: Select an active tenant
      description: >-
        ### Set the active tenant for the user's current session


        This endpoint allows you to get a new session token and refresh token
        with the `dct` claim on the JWT which shows the active selected tenant
        for the user.


        See [Tenant Selection
        Article](/knowledgebase/descopeflows/tenantselectcomponent/) for more
        details of the usage.
      operationId: SelectTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SelectTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 3
      x-publishYaml: session
      x-sdk: true
      x-meta:
        title: Select an active tenant | Session
        description: Set the active tenant for the user's current session
        keywords: api, session
  /v1/auth/idp/sso/logout:
    get:
      tags: []
      summary: Logout
      description: >-
        IDP SSO Logout from the session and delete the session and refresh
        cookies. For a SAML app with Single Logout on, it also takes a SAML
        LogoutRequest (and the LogoutResponses of a front-channel logout) over
        the HTTP-Redirect (GET) or HTTP-POST (POST) binding, and answers with a
        signed LogoutResponse.
      operationId: IDPSSOLogoutGet
      parameters:
        - name: app
          in: query
          schema:
            type: string
        - name: SAMLRequest
          in: query
          description: >-
            SAML Single Logout (descope/etc#19980): a LogoutRequest from the SP,
            or a LogoutResponse from an SP Descope
             sent a LogoutRequest to, over the HTTP-Redirect or HTTP-POST binding
          schema:
            type: string
        - name: SAMLResponse
          in: query
          schema:
            type: string
        - name: RelayState
          in: query
          schema:
            type: string
        - name: SigAlg
          in: query
          schema:
            type: string
        - name: Signature
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IDPSSOLogoutResponse'
      x-order: 4
      x-publishYaml: session
      security: []
      x-meta:
        title: Logout | Session
        description: >-
          IDP SSO Logout from the session and delete the session and refresh
          cookies. For a SAML app with Single Logout on, it also takes a SAML
          LogoutRequest (and the LogoutResponses of a front-channel logout) over
          the HTTP-Redirect (GET) or HTTP-POST (POST) binding, and answers with
          a signed LogoutResponse.
        keywords: api, session
    post:
      tags: []
      summary: Logout
      description: >-
        IDP SSO Logout from the session and delete the session and refresh
        cookies. For a SAML app with Single Logout on, it also takes a SAML
        LogoutRequest (and the LogoutResponses of a front-channel logout) over
        the HTTP-Redirect (GET) or HTTP-POST (POST) binding, and answers with a
        signed LogoutResponse.
      operationId: IDPSSOLogoutPost
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IDPSSOLogoutRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IDPSSOLogoutResponse'
      x-order: 4
      x-publishYaml: session
      security: []
      x-meta:
        title: Logout | Session
        description: >-
          IDP SSO Logout from the session and delete the session and refresh
          cookies. For a SAML app with Single Logout on, it also takes a SAML
          LogoutRequest (and the LogoutResponses of a front-channel logout) over
          the HTTP-Redirect (GET) or HTTP-POST (POST) binding, and answers with
          a signed LogoutResponse.
        keywords: api, session
  /v1/auth/logout:
    post:
      tags: []
      summary: Sign-Out
      description: >-
        ### Log the user out from the provided session

        This API endpoint will sign the user out of the provided session using
        the `refreshToken`.

        Successfully executing this endpoint will invalidate the provided
        refresh tokens.

        Response will also include all user tokens and fields empty, so the
        executing client will remove cookies as well.
      operationId: Logout
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogoutRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 4
      x-publishYaml: session
      x-sdk: true
      x-meta:
        title: Sign-Out | Session
        description: Log the user out from the provided session
        keywords: api, session
  /v1/auth/logoutall:
    post:
      tags: []
      summary: Sign-Out All Active Sessions
      description: >-
        ### Log the user out from all signed-in sessions


        This API endpoint will sign the user out of all the devices they are
        currently signed-in with.

        Successfully executing this endpoint will invalidate all user's refresh
        tokens. Response will include all user tokens and fields empty, so
        client will remove cookies as well.
      operationId: LogoutAllDevices
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LogoutRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-order: 4
      x-publishYaml: session
      x-sdk: true
      x-meta:
        title: Sign-Out All Active Sessions | Session
        description: Log the user out from all signed-in sessions
        keywords: api, session
  /v1/auth/validate:
    post:
      tags: []
      operationId: ValidateSession
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateSessionRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateSessionResponse'
      security:
        - Descope Project ID:Session JWT: []
      x-publishYaml: session
      summary: Validate Session
      description: >-
        ### Validate and parse a user's session JWT.


        This endpoint is used to validate a users session using the Project ID
        and the user's session JWT. Upon successful validate of the user, you
        will receive the parsed JWT.


        When posting to this endpoint from an application, you get the JWT from
        local or cookie storage, and prepend it with project ID and use that as
        the bearer.
      x-meta:
        title: Validate Session | Session
        description: Validate and parse a user's session JWT.
        keywords: api, session
  /v1/auth/magiclink/signup/email:
    post:
      tags:
        - Email
      summary: Sign-Up
      description: >-
        ### Sign-up new end user by sending a magic link via email

        Initiate a sign-up process by sending a magic link to a new end user.
        Descope will generate and deliver a clickable magic link to the email
        address specified. The clickable magic link is made up of two parts - 
        the URI you provide in the `URI` field and the magic link token
        generated by Descope. For example, if
        `URI=https://app.mycompany.com/magiclink/verify`, the clickable magic
        link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate magic links that
        have already been sent.


        The endpoint will return a failure code if the email address is already
        registered.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link
        Authentication](/auth-methods/magic-link/with-sdks/client#introduction)
        for details about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - Use the [Sign-In](/api/magic-link/email/sign-in) endpoint to sign-in
        an existing end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/magic-link/email/sign-in-auto-sign-up) endpoint to create
        a single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignUpMagicLinkEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkSignUpEmailRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailMagicLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: MagicLink
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | Magic Link Email
        description: Sign-up new end user by sending a magic link via email Email
        keywords: api, magic link, email
  /v1/auth/magiclink/signup/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-Up
      description: >-
        ### Sign-up new end user by sending a magic link via SMS


        Initiate a sign-up process by sending a magic link to a new end user.
        Descope will generate and deliver a clickable magic link to the phone
        number specified. The clickable magic link is made up of two parts - 
        the URI you provide in the `URI` field and the magic link token
        generated by Descope. For example, if
        `URI=https://app.mycompany.com/magiclink/verify`, the clickable magic
        link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate magic links that
        have already been sent.


        The endpoint will return a failure code if the email address is already
        registered.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link Authentication](/auth-methods/magic-link) for details
        about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - Use the [Sign-In](/api/magic-link/sms/sign-up) endpoint to sign-in an
        existing end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/magic-link/sms/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignUpMagicLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkSignUpPhoneRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneMagicLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: MagicLink
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | Magic Link SMS
        description: Sign-up new end user by sending a magic link via SMS SMS
        keywords: api, magic link, sms
  /v1/auth/magiclink/verify:
    post:
      tags:
        - Verification
      summary: Verify Token
      description: >-
        ### Verify the magic link token from the end user


        Verify that the magic link token in the URL clicked by the end user
        matches and has not expired. This endpoint completes the magic link flow
        for:

        * sign up
            * [Sign-Up via email](/api/magic-link/email/sign-up)
            * [Sign-Up via SMS](/api/magic-link/sms/sign-up)
        * sign-in
            * [Sign-In via email](/api/magic-link/email/sign-in)
            * [Sign-In via SMS](/api/magic-link/sms/sign-in)
        * sign-in with auto sign-up
            * [Sign-In with Auto Sign-up via email](/api/magic-link/email/sign-in-auto-sign-up)
            * [Sign-In with Auto Sign-up via SMS](/api/magic-link/sms/sign-in-auto-sign-up)
        * update data
            * [update email](/api/magic-link/email/sign-up)
            * [update phone number](/api/magic-link/email/sign-up)

        ### Next Steps


        The response object will contain the user's details including the
        session and refresh JWTs.


        ### See Also

        - See [Magic link
        Authentication](/auth-methods/magic-link/with-sdks/client#introduction)
        for details about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: VerifyMagicLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyMagicLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: MagicLink
      x-order: 1
      x-sdk: true
      x-meta:
        title: Verify Token | Magic Link
        description: Verify the magic link token from the end user
        keywords: api, magic link
  /v1/auth/magiclink/signin/email:
    post:
      tags:
        - Email
      summary: Sign-In
      description: >-
        ### Sign-in existing end user by sending a magic link via email

        Initiate a sign-in process by sending a magic link to an existing end
        user. Descope will generate and deliver a clickable magic link to the
        email address specified. The clickable magic link is made up of two
        parts - the URI you provide in the `URI` field and the magic link token
        generated by Descope. For example, if
        `URI=https://app.mycompany.com/magiclink/verify`, the clickable magic
        link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate prior magic links
        that have already been sent.


        The endpoint will return a failure code if the email address is not
        registered.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link
        Authentication](/auth-methods/magic-link/with-sdks/client#introduction)
        for details about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/magic-link/email/sign-up) endpoint to sign-up a
        new end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/magic-link/email/sign-in-auto-sign-up) endpoint to create
        a single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignInMagicLinkEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailMagicLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: MagicLink
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | Magic Link Email
        description: Sign-in existing end user by sending a magic link via email Email
        keywords: api, magic link, email
  /v1/auth/magiclink/signin/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-In
      description: >-
        ### Sign-in existing end user by sending a magic link via SMS


        Initiate a sign-in process by sending a magic link to an existing end
        user. Descope will generate and deliver a clickable magic link as an SMS
        to the phone number specified. The clickable magic link is made up of
        two parts - the URI you provide in the `URI` field and the magic link
        token generated by Descope. For example, if
        `URI=https://app.mycompany.com/magiclink/verify`, the clickable magic
        link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate prior magic links
        that have already been sent.


        The endpoint will return a failure code if the email address is not
        registered.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link Authentication](/auth-methods/magic-link) for details
        about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/magic-link/sms/sign-up) endpoint to sign-up a
        new end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/magic-link/sms/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignInMagicLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneMagicLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: MagicLink
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | Magic Link SMS
        description: Sign-in existing end user by sending a magic link via SMS SMS
        keywords: api, magic link, sms
  /v1/auth/magiclink/signup-in/email:
    post:
      tags:
        - Email
      summary: Sign-In with Auto Sign-up
      description: >-
        ### Sign-in end user (with automatic sign-up) by sending a magic link
        via email


        Initiate a process that implements both sign-in and sign-up using a
        single endpoint. Descope will generate and deliver a clickable magic
        link to the email address specified. If the email address is already
        registered (the end user has already registered) the user will be signed
        in. If the email address is not registered (the end user is not yet
        registered) the user will be signed up.


        The clickable magic link is made up of two parts - the URI you provide
        in the `URI` field and the magic link token generated by Descope. For
        example, if `URI=https://app.mycompany.com/magiclink/verify`, the
        clickable magic link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate prior magic links
        that have already been sent.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link
        Authentication](/auth-methods/magic-link/with-sdks/client#introduction)
        for details about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/magic-link/email/sign-up) endpoint if you want
        a sign-up flow that will fail if the end user is already registered.

        - Use the [Sign-In](/api/magic-link/email/sign-in) endpoint if you want
        a sign-in flow that will fail if the end user isn't yet registered.
      operationId: SignUpOrInMagicLinkEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailMagicLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: MagicLink
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-In with Auto Sign-up | Magic Link Email
        description: >-
          Sign-in end user (with automatic sign-up) by sending a magic link via
          email Email
        keywords: api, magic link, email
  /v1/auth/magiclink/signup-in/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-In with Auto Sign-up
      description: >-
        ### Sign-in end user (with automatic sign-up) by sending a magic link
        via SMS


        Initiate a process that implements both sign-in and sign-up using a
        single endpoint. Descope will generate and deliver a clickable magic
        link as an SMS to the phone number specified. If the phone number is
        already registered (the end user has already registered) the user will
        be signed in. If the email address is not registered (the end user is
        not yet registered) the user will be signed up.


        The clickable magic link is made up of two parts - the URI you provide
        in the `URI` field and the magic link token generated by Descope. For
        example, if `URI=https://app.mycompany.com/magiclink/verify`, the
        clickable magic link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate prior magic links
        that have already been sent.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        ### Next Steps

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link Authentication](/auth-methods/magic-link) for details
        about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/magic-link/sms/sign-up) endpoint if you want a
        sign-up flow that will fail if the end user is already registered.

        - Use the [Sign-In](/api/magic-link/sms/sign-in) endpoint if you want a
        sign-in flow that will fail if the end user isn't yet registered.
      operationId: SignUpOrInMagicLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneMagicLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: MagicLink
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-In with Auto Sign-up | Magic Link SMS
        description: >-
          Sign-in end user (with automatic sign-up) by sending a magic link via
          SMS SMS
        keywords: api, magic link, sms
  /v1/auth/magiclink/update/email:
    post:
      tags:
        - Email
      summary: Update Email
      description: >-
        ### Update email of end user by sending magic link via email

        Update the email address of an existing end user by sending a magic link
        to the new email address. Descope will generate and deliver a clickable
        magic link to the new email address specified. After successfully
        verifying the magic link token the new email address will be used to
        deliver new magic links via email.


        The clickable magic link is made up of two parts - the URI you provide
        in the `URI` field and the magic link token generated by Descope. For
        example, if `URI=https://app.mycompany.com/magiclink/verify`, the
        clickable magic link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate prior magic links
        that have already been sent.


        The bearer token requires both the ProjectId and refresh JWT in the
        format `<Project ID>:<JWT>`, and can therefore only be run for end users
        who are currently signed-in.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        Descope allows you to associating multiple login IDs for a user during
        API update calls. For details on how this feature works, please review
        the details
        [here](/manage/users#associating-multiple-login-ids-for-a-user).


        ### Next Steps

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link Authentication](/auth-methods/magic-link) for details
        about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: UpdateUserEmailMagicLink
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserEmailMagicLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailMagicLinkResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: MagicLink
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Email | Magic Link Email
        description: Update email of end user by sending magic link via email Email
        keywords: api, magic link, email
  /v1/auth/magiclink/update/phone/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Update Phone Number
      description: >-
        ### Update phone number of end user by sending magic link via SMS


        Update the phone number of an existing end user by sending a magic link
        to the new phone number. Descope will generate and deliver a clickable
        magic link as an SMS to the new phone number specified. After
        successfully verifying the magic link token the new phone number will be
        used to deliver new magic links via SMS.


        The clickable magic link is made up of two parts - the URI you provide
        in the `URI` field and the magic link token generated by Descope. For
        example, if `URI=https://app.mycompany.com/magiclink/verify`, the
        clickable magic link will be
        `https://app.mycompany.com/magiclink/verify?t=magic-link-token.` Magic
        links expire in the time frame configured in the [Descope
        console](https://app.descope.com/settings/authentication/magiclink), so
        sending multiple magic links (for example, when an end user tries to
        sign-up a second or third time) does not invalidate prior magic links
        that have already been sent.


        The bearer token requires both the ProjectId and refresh JWT in the
        format `<Project ID>:<JWT>`, and can therefore only be run for end users
        who are currently signed-in.


        Note that `URI` is an optional parameter. If omitted - the project
        setting will apply.

        If provided - it should to be part of the allowed `Approved Domains`
        configured in the project settings.


        Descope allows you to associating multiple login IDs for a user during
        API update calls. For details on how this feature works, please review
        the details
        [here](/manage/users#associating-multiple-login-ids-for-a-user).


        ### Next Step

        Verify the magic link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Magic link Authentication](/auth-methods/magic-link) for details
        about implementing magic links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: UpdateUserPhoneMagicLinkSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPhoneMagicLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneMagicLinkResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: MagicLink
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Phone Number | Magic Link SMS
        description: Update phone number of end user by sending magic link via SMS SMS
        keywords: api, magic link, sms
  /v1/auth/notp/{provider}/signup:
    post:
      tags:
        - ''
      summary: Sign-Up
      description: Create a new user using NOTP
      operationId: SignUpNOTP
      parameters:
        - name: provider
          in: path
          description: Whatsapp, IMessage, etc
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NOTPSignUpRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NOTPLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: NOTP
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | NOTP
        description: Create a new user using NOTP
        keywords: api, notp
  /v1/auth/notp/{provider}/signin:
    post:
      tags:
        - ''
      summary: Sign-In
      description: Login a user using NOTP
      operationId: SignInNOTP
      parameters:
        - name: provider
          in: path
          description: Whatsapp, IMessage, etc
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NOTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NOTPLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: NOTP
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | NOTP
        description: Login a user using NOTP
        keywords: api, notp
  /v1/auth/notp/{provider}/signup-in:
    post:
      tags:
        - ''
      description: >-
        Login in using NTOP. If the user does not exist, a new user will be
        created with the given identifier
      operationId: SignUpOrInNOTP
      parameters:
        - name: provider
          in: path
          description: Whatsapp, IMessage, etc
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NOTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NOTPLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: NOTP
      x-sdk: true
      x-order: 3
      summary: Sign-In with Auto Sign-Up
      x-meta:
        title: Sign-In with Auto Sign-Up | NOTP
        description: >-
          Login in using NTOP. If the user does not exist, a new user will be
          created with the given identifier
        keywords: api, notp
  /v1/auth/notp/{provider}/update:
    post:
      tags: []
      summary: Update User NOTP
      description: Update user phone using NOTP
      operationId: UpdateUserNOTP
      parameters:
        - name: provider
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserNOTPRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NOTPLinkResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: NOTP
      x-order: 3
      x-sdk: true
      x-meta:
        title: Update User NOTP | NOTP
        description: Update user phone using NOTP
        keywords: api, notp
  /v1/auth/notp/pending-session:
    post:
      tags:
        - ''
      summary: Get NoTP Pending Session
      description: >-
        Get a session that was generated by NOTP Sign in / Sign up request, and
        verified with Verify request
      operationId: GetNOTPSession
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetNOTPSessionRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: NOTP
      x-sdk: true
      x-order: 4
      x-meta:
        title: Get NoTP Pending Session | NOTP
        description: >-
          Get a session that was generated by NOTP Sign in / Sign up request,
          and verified with Verify request
        keywords: api, notp
  /v1/auth/oauth/authorize:
    post:
      tags: []
      summary: Sign-Up / Sign-In
      description: >-
        ### Authorize end user to sign-up or sign-in using social login
        credentials


        Initiate a social login (OAuth) sign-up or sign-in process for an end
        user. Descope will coordinate the authorization process with the OAUth
        provider specified in the `provider` field. Specify the URL you want to
        redirect the end user to after a successful sign-in in the `redirectURL`
        parameter.


        When the OAuth authorization completes successfully, the endpoint
        returns a URL `url` that has a unique code `<unique-code\>` appended as
        a URL parameter to the `redirectURL` you provided. For example, if
        `redirectURL = https://oauth.mycompany.com/shopping.htm` then `url =
        https://oauth.mycompany.com/shopping.htm?code=<unique-code\>`. The
        unique code will be exchanged for a valid user object in the next step.


        After the end user successfully authenticates with the OAuth provider
        the end user session is redirected to `url`.


        ### Next Steps

        Call the [Exchange Code](/api/oauth/exchange-code) endpoint from the
        flow that responds to the URL specified in the `redirectURL` field, to
        exchange the unique code for a user session object.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on the stepup, mfa, and customClaims parameters.
      operationId: AuthorizeOAuth
      parameters:
        - name: provider
          in: query
          schema:
            type: string
          required: true
        - name: redirectUrl
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: array
            items:
              type: string
        - name: test
          in: query
          description: >-
            SSO setup-suite test mode, see SAMLRequest.test. Internal
            console/management option - rejected for other callers,
             should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
        - name: rawResponse
          in: query
          schema:
            type: boolean
        - name: loginHint
          in: query
          schema:
            type: string
        - name: initiatedEmail
          in: query
          schema:
            type: string
        - name: doNotCreateUser
          in: query
          description: >-
            Authenticate against the IdP without creating, updating, or signing
            in a Descope user.
             The exchange returns the IdP attributes/claims but no session JWTs.
             Internal flow-action option — should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginOptions'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthRedirectResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-Up / Sign-In | OAuth
        description: >-
          Authorize end user to sign-up or sign-in using social login
          credentials
        keywords: api, oauth
  /v1/auth/oauth/authorize/signin:
    post:
      tags: []
      summary: Create Redirect URI for Sign-In Request
      description: >-
        ### Create an OAuth Redirect URI for user Sign-In Request


        This endpoint allows you to create an OAuth Redirect URI for user
        Sign-Up Request.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: CreateOAuthRedirectURISignin
      parameters:
        - name: provider
          in: query
          schema:
            type: string
          required: true
        - name: redirectUrl
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: array
            items:
              type: string
        - name: test
          in: query
          description: >-
            SSO setup-suite test mode, see SAMLRequest.test. Internal
            console/management option - rejected for other callers,
             should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
        - name: rawResponse
          in: query
          schema:
            type: boolean
        - name: loginHint
          in: query
          schema:
            type: string
        - name: initiatedEmail
          in: query
          schema:
            type: string
        - name: doNotCreateUser
          in: query
          description: >-
            Authenticate against the IdP without creating, updating, or signing
            in a Descope user.
             The exchange returns the IdP attributes/claims but no session JWTs.
             Internal flow-action option — should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginOptions'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthRedirectResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 4
      x-sdk: true
      x-meta:
        title: Create Redirect URI for Sign-In Request | OAuth
        description: Create an OAuth Redirect URI for user Sign-In Request
        keywords: api, oauth
  /v1/auth/oauth/authorize/signup:
    post:
      tags: []
      summary: Create Redirect URI for Sign-Up Request
      description: >-
        ### Create an OAuth Redirect URI for user Sign-In Request


        This endpoint allows you to create an OAuth Redirect URI for user
        Sign-In Request.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: CreateOAuthRedirectURISignup
      parameters:
        - name: provider
          in: query
          schema:
            type: string
          required: true
        - name: redirectUrl
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: array
            items:
              type: string
        - name: test
          in: query
          description: >-
            SSO setup-suite test mode, see SAMLRequest.test. Internal
            console/management option - rejected for other callers,
             should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
        - name: rawResponse
          in: query
          schema:
            type: boolean
        - name: loginHint
          in: query
          schema:
            type: string
        - name: initiatedEmail
          in: query
          schema:
            type: string
        - name: doNotCreateUser
          in: query
          description: >-
            Authenticate against the IdP without creating, updating, or signing
            in a Descope user.
             The exchange returns the IdP attributes/claims but no session JWTs.
             Internal flow-action option — should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginOptions'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthRedirectResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 5
      x-sdk: true
      x-meta:
        title: Create Redirect URI for Sign-Up Request | OAuth
        description: Create an OAuth Redirect URI for user Sign-In Request
        keywords: api, oauth
  /v1/auth/oauth/authorize/update:
    post:
      tags: []
      summary: Create Redirect URI for Update User Request
      description: >-
        ### Link a social login (OAuth) identity to a signed-in user


        Links an OAuth identity to a user who is already signed in, such as when
        they connect a Google account from your app's settings. This is not a
        sign-in endpoint. The bearer token is `<Project ID>:<Refresh JWT>`, and
        the identity is linked to that user.


        By default, the provider's email must already be one of the user's login
        IDs, or the request fails. Set `allowAllMerge` to `true` to skip this
        check.


        ### When to use allowAllMerge


        Use it only when the user starts the linking themselves, for example to
        link a personal Google account to a work email. It doesn't check email
        verification and relies on the refresh JWT alone, so don't use it to
        merge identities at sign-in. See [Risks in Merging SSO and Non-SSO
        Identities](/sso/merging-sso-identities-risk).


        It is separate from the SSO `mergeUsers` and
        `allowMergeUsersWithMultipleTenants` settings, which merge SSO users at
        sign-in.


        ### Next Steps

        Call [Exchange Code](/api/oauth/exchange-code) from the page at
        `redirectUrl` to complete the linking.


        ### See Also

        - See [Social Login (OAuth) with
        Flows](/auth-methods/oauth#social-login-oauth-with-flows) for the
        **Update User / OAuth** flow action. Its **Merge without a common
        identifier (like email)** option is the flow equivalent of
        `allowAllMerge`.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: CreateOAuthRedirectURIUpdateUser
      parameters:
        - name: provider
          in: query
          schema:
            type: string
          required: true
        - name: redirectUrl
          in: query
          schema:
            type: string
        - name: allowAllMerge
          in: query
          schema:
            type: boolean
            default: false
          description: >-
            When `false` (default), the identity is linked only if the
            provider's email is already one of the user's login IDs. When
            `true`, it is linked even without a common identifier.
        - name: prompt
          in: query
          schema:
            type: array
            items:
              type: string
        - name: loginHint
          in: query
          schema:
            type: string
        - name: initiatedEmail
          in: query
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginOptions'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthRedirectResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: OAuth
      x-order: 6
      x-sdk: true
      x-meta:
        title: Create Redirect URI for Update User Request | OAuth
        description: Link a social login (OAuth) identity to a signed-in user
        keywords: api, oauth
  /v1/auth/oauth/native/start:
    post:
      tags: []
      summary: Starts a full OAuth flow using native APIs
      description: Starts a full OAuth flow using native APIs
      operationId: OAuthNativeStart
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthNativeStartRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthNativeStartResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 6
      x-meta:
        title: Starts a full OAuth flow using native APIs | OAuth
        description: Starts a full OAuth flow using native APIs
        keywords: api, oauth
  /v1/auth/oauth/exchange:
    post:
      tags: []
      summary: Exchange Code
      description: >-
        ### Exchange OAuth code for Descope user session


        This endpoint will exchange the OAuth code for the Descope session
        information needed for managing the end user session. Call this endpoint
        from your code flow that responds to the `url` that was returned by the
        [Sign-In](/api/oauth/sign-up-sign-in) endpoint.


        The unique code `<unique-code\>` is appended as a URL parameter:
        `code=<unique-code\>`, for example, `url =
        https://oauth.mycompany.com/shopping.htm?code=<unique-code\>`.


        ### Next Steps


        1. Extract the unique code `<unique-code\>` from the URL parameter.

        2. Call this endpoint, passing the `<unique-code\>` as the request
        parameter


        The response object includes the session JWT (sessionJwt) and refresh
        JWT (refreshJwt) when this endpoint completes successfully.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: ExchangeCodeoauth
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExchangeTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 7
      x-sdk: true
      x-meta:
        title: Exchange Code | OAuth
        description: Exchange OAuth code for Descope user session
        keywords: api, oauth
  /v1/auth/oauth/native/finish:
    post:
      tags: []
      summary: Finishes a full OAuth flow using native APIs
      description: Finishes a full OAuth flow using native APIs
      operationId: OAuthNativeFinish
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthNativeFinishRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 7
      x-meta:
        title: Finishes a full OAuth flow using native APIs | OAuth
        description: Finishes a full OAuth flow using native APIs
        keywords: api, oauth
  /v1/auth/onetap/idtoken/exchange:
    post:
      tags: []
      summary: Exchanges one tap id token for a JWT
      description: Exchanges one tap id token for a JWT
      operationId: ExchangeOneTapIDToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExchangeOneTapIDTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 8
      x-meta:
        title: Exchanges one tap id token for a JWT | OAuth
        description: Exchanges one tap id token for a JWT
        keywords: api, oauth
  /v1/auth/onetap/idtoken/verify:
    post:
      tags: []
      summary: Verifies one tap id token for a code
      description: Verifies one tap id token for a code
      operationId: VerifyOneTapIDToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExchangeOneTapIDTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyOneTapIDTokenResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 8
      x-meta:
        title: Verifies one tap id token for a code | OAuth
        description: Verifies one tap id token for a code
        keywords: api, oauth
  /v1/auth/onetap/clientid/{provider}:
    get:
      tags: []
      summary: Get Google One Tap Client ID Configuration
      description: Get the client ID configuration for Google One Tap integration
      operationId: GetOneTapClientID
      parameters:
        - name: provider
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOneTapClientIDResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OAuth
      x-order: 9
      x-meta:
        title: Get Google One Tap Client ID Configuration | OAuth
        description: Get the client ID configuration for Google One Tap integration
        keywords: api, oauth
  /v1/outbound/oauth/connect:
    post:
      tags: []
      summary: Start connecting an outbound OAuth application
      description: >-
        Start connecting an outbound OAuth application on behalf of the
        authenticated user
      operationId: OAuthAppConnect
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthAppConnectRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthAppConnectResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: OAuth
      x-meta:
        title: Start connecting an outbound OAuth application | OAuth
        description: >-
          Start connecting an outbound OAuth application on behalf of the
          authenticated user
        keywords: api, oauth
  /v1/auth/otp/signup/email:
    post:
      tags:
        - Email
      summary: Sign-Up
      description: >-
        ### Sign-up new end user by sending an OTP code via email

        Initiate a sign-up process by sending a One-Time Password (OTP) to a new
        end user. Descope will generate and deliver the OTP code to the email
        address specified. Sending multiple OTP codes (for example, when an end
        user tries to sign-up a second or third time) will invalidate any OTP
        code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully. The endpoint will return a failure code if the email
        address is already registered.


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/email/verify-otp) endpoint to complete the user sign-up
        process. After successfully verifying OTP code the end user will be
        signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - Use the [Sign-In](/api/otp/email/sign-in) endpoint to sign-in an
        existing end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/otp/email/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: UserSignupOtpEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignUpEmailRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | OTP Email
        description: Sign-up new end user by sending an OTP code via email Email
        keywords: api, otp, email
  /v1/auth/otp/signup/im:
    post:
      tags:
        - Instant Message (IM)
      summary: User Sign-Up (IM)
      description: Create a new user using an instant message
      operationId: SignUpOTPInstantMessage
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignUpPhoneRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 1
      x-sdk: true
      x-meta:
        title: User Sign-Up (IM) | OTP
        description: Create a new user using an instant message
        keywords: api, otp
  /v1/auth/otp/signup/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-Up
      description: >-
        ### Sign-up new end user by sending an OTP code via SMS

        Initiate a sign-up process by sending a One-Time Password (OTP) to a new
        end user. Descope will generate and deliver the OTP code via SMS to the
        phone number specified. Sending multiple OTP codes (for example, when an
        end user tries to sign-up a second or third time) will invalidate any
        OTP code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully. The endpoint will return a failure code if the phone
        number is already registered.


        ### Next Steps

        Verify the OTP code using the [Verify OTP Code](/api/otp/sms/verify-otp)
        endpoint to complete the user sign-up process. After successfully
        verifying the OTP code the end user will be signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - Use the [Sign-In](/api/otp/sms/sign-in) endpoint to sign-in an
        existing end user.

        - Use the [Sign-In with Auto Sign-up](/api/otp/sms/sign-in-auto-sign-up)
        endpoint to create a single sign-up and sign-in flow, which will create
        a new end user if they are not already registered.
      operationId: SignUpOtpSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignUpPhoneRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | OTP SMS
        description: Sign-up new end user by sending an OTP code via SMS SMS
        keywords: api, otp, sms
  /v1/auth/otp/signup/voice:
    post:
      tags:
        - Voice Message (Phone)
      summary: Sign-Up
      description: >-
        ### Sign-up new end user by sending an OTP code via Voice

        Initiate a sign-up process by sending a One-Time Password (OTP) to a new
        end user. Descope will generate and deliver the OTP code via Voice to
        the phone number specified. Sending multiple OTP codes (for example,
        when an end user tries to sign-up a second or third time) will
        invalidate any OTP code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully. The endpoint will return a failure code if the phone
        number is already registered.


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/phone/verify-otp) endpoint to complete the user sign-up
        process. After successfully verifying the OTP code the end user will be
        signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - Use the [Sign-In](/api/otp/phone/sign-in) endpoint to sign-in an
        existing end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/otp/phone/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignUpOtpVoice
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignUpPhoneRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | OTP
        description: Sign-up new end user by sending an OTP code via Voice
        keywords: api, otp
  /v1/auth/otp/signin/email:
    post:
      tags:
        - Email
      summary: Sign-In
      description: >-
        ### Sign-in existing end user by sending an OTP code via email

        Initiate a sign-in process by sending a One-Time Password (OTP) to an
        existing end user. Descope will generate and deliver the OTP code to the
        email address specified. Sending multiple OTP codes (for example, when
        an end user tries to sign-in a second or third time) will invalidate any
        OTP code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully. The endpoint will return a failure code if the email
        address is not yet registered.


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/email/verify-otp) endpoint to complete the user sign-in
        process. After successfully verifying the code the end user will be
        signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/otp/email/sign-up) endpoint to sign-up a new
        end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/otp/email/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: UserSigninOtpEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | OTP Email
        description: Sign-in existing end user by sending an OTP code via email Email
        keywords: api, otp, email
  /v1/auth/otp/signin/im:
    post:
      tags:
        - Instant Message (IM)
      summary: User Sign-In (IM)
      description: >-
        Login a user based using an instant message (IM) to the given phone
        number
      operationId: SignInOTPInstantMessage
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 2
      x-sdk: true
      x-meta:
        title: User Sign-In (IM) | OTP
        description: >-
          Login a user based using an instant message (IM) to the given phone
          number
        keywords: api, otp
  /v1/auth/otp/signin/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-In
      description: >-
        ### Sign-in existing end user by sending an OTP code via SMS

        Initiate a sign-in process by sending a One-Time Password (OTP) to an
        existing end user. Descope will generate and deliver the OTP code to the
        phone number specified. Sending multiple OTP codes (for example, when an
        end user tries to sign-in a second or third time) will invalidate any
        OTP code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully. The endpoint will return a failure code if the phone
        number is not yet registered.


        ### Next Steps

        Verify the OTP code using the [Verify OTP Code](/api/otp/sms/verify-otp)
        endpoint to complete the user sign-in process. After successfully
        verifying the code the end user will be signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/otp/sms/sign-up) endpoint to sign-up a new end
        user.

        - Use the [Sign-In with Auto Sign-up](/api/otp/sms/sign-in-auto-sign-up)
        endpoint to create a single sign-up and sign-in flow, which will create
        a new end user if they are not already registered.
      operationId: SignInOTPSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | OTP SMS
        description: Sign-in existing end user by sending an OTP code via SMS SMS
        keywords: api, otp, sms
  /v1/auth/otp/signin/voice:
    post:
      tags:
        - Voice Message (Phone)
      summary: Sign-In
      description: >-
        ### Sign-in existing end user by sending an OTP code via Voice

        Initiate a sign-in process by sending a One-Time Password (OTP) to an
        existing end user. Descope will generate and deliver the OTP code to the
        phone number specified. Sending multiple OTP codes (for example, when an
        end user tries to sign-in a second or third time) will invalidate any
        OTP code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully. The endpoint will return a failure code if the phone
        number is not yet registered.


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/phone/verify-otp) endpoint to complete the user sign-in
        process. After successfully verifying the code the end user will be
        signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/otp/phone/sign-up) endpoint to sign-up a new
        end user.

        - Use the [Sign-In with Auto
        Sign-up](/api/otp/phone/sign-in-auto-sign-up) endpoint to create a
        single sign-up and sign-in flow, which will create a new end user if
        they are not already registered.
      operationId: SignInOTPVoice
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In | OTP
        description: Sign-in existing end user by sending an OTP code via Voice
        keywords: api, otp
  /v1/auth/otp/signup-in/email:
    post:
      tags:
        - Email
      summary: Sign-In with Auto Sign-up
      description: >-
        ### Sign-in end user (with automatic sign-up) by sending an OTP code via
        email

        Initiate a process that implements both sign-in and sign-up using a
        single endpoint. Descope will generate and deliver the One-Time Password
        (OTP) to the end user via email. If the email address is already
        registered (the end user exists) the user will be signed in. If the
        email address is not registered (the end user is not yet registered) the
        user will be signed up. Sending multiple OTP codes (for example, when an
        end user tries to sign-up/sign-in a second or third time) will
        invalidate any OTP code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully.


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/email/verify-otp) endpoint to complete the user sign-in
        process.

        After successfully verifying the code the end user will be signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/otp/email/sign-up) endpoint if you want a
        sign-up flow that will fail if the end user is already registered.

        - Use the [Sign-In](/api/otp/email/sign-in) endpoint if you want a
        sign-in flow that will fail if the end user isn't yet registered.
      operationId: UserSignUpInOtpEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-In with Auto Sign-up | OTP Email
        description: >-
          Sign-in end user (with automatic sign-up) by sending an OTP code via
          email Email
        keywords: api, otp, email
  /v1/auth/otp/signup-in/im:
    post:
      tags:
        - Instant Message (IM)
      summary: User Sign-In with Auto Sign-Up (IM)
      description: >-
        Login a user based using an instant message to the given phone number.
        If the user does not exist, a new user will be created with the given
        phone number
      operationId: SignUpOrInOTPInstantMessage
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 3
      x-sdk: true
      x-meta:
        title: User Sign-In with Auto Sign-Up (IM) | OTP
        description: >-
          Login a user based using an instant message to the given phone number.
          If the user does not exist, a new user will be created with the given
          phone number
        keywords: api, otp
  /v1/auth/otp/signup-in/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Sign-In with Auto Sign-up
      description: >-
        ### Sign-in end user (with automatic sign-up) by sending an OTP code via
        SMS

        Initiate a process that implements both sign-in and sign-up using a
        single endpoint. Descope will generate and deliver the One-Time Password
        (OTP) to the end user via SMS. If the phone number is already registered
        (the end user exists) the user will be signed in. If the phone number is
        not registered (the end user is not yet registered) the user will be
        signed up. Sending multiple OTP codes (for example, when an end user
        tries to sign-up/sign-in a second or third time) will invalidate any OTP
        code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully.


        ### Next Steps

        Verify the OTP code using the [Verify OTP Code](/api/otp/sms/verify-otp)
        endpoint to complete the user sign-in process.

        After successfully verifying the code the end user will be signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/otp/sms/sign-up) endpoint if you want a sign-up
        flow that will fail if the end user is already registered.

        - Use the [Sign-In](/api/otp/sms/sign-in-auto-sign-up) endpoint if you
        want a sign-in flow that will fail if the end user isn't yet registered.
      operationId: SignUpOrInOTPSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-In with Auto Sign-up | OTP SMS
        description: >-
          Sign-in end user (with automatic sign-up) by sending an OTP code via
          SMS SMS
        keywords: api, otp, sms
  /v1/auth/otp/signup-in/voice:
    post:
      tags:
        - Voice Message (Phone)
      summary: Sign-In with Auto Sign-up
      description: >-
        ### Sign-in end user (with automatic sign-up) by sending an OTP code via
        Voice

        Initiate a process that implements both sign-in and sign-up using a
        single endpoint. Descope will generate and deliver the One-Time Password
        (OTP) to the end user via Voice. If the phone number is already
        registered (the end user exists) the user will be signed in. If the
        phone number is not registered (the end user is not yet registered) the
        user will be signed up. Sending multiple OTP codes (for example, when an
        end user tries to sign-up/sign-in a second or third time) will
        invalidate any OTP code that has already been sent.


        This endpoint will return an empty response object when it completes
        successfully.


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/phone/verify-otp) endpoint to complete the user sign-in
        process.

        After successfully verifying the code the end user will be signed-in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.

        - Use the [Sign-Up](/api/otp/phone/sign-up) endpoint if you want a
        sign-up flow that will fail if the end user is already registered.

        - Use the [Sign-In](/api/otp/phone/sign-in-auto-sign-up) endpoint if you
        want a sign-in flow that will fail if the end user isn't yet registered.
      operationId: SignUpOrInOTPVoice
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 3
      x-sdk: true
      x-meta:
        title: Sign-In with Auto Sign-up | OTP
        description: >-
          Sign-in end user (with automatic sign-up) by sending an OTP code via
          Voice
        keywords: api, otp
  /v1/auth/otp/verify/email:
    post:
      tags:
        - Email
      summary: Verify OTP Code
      description: >-
        ### Verify the validity of an OTP code sent via email


        Verify that the OTP code entered by the end user matches the OTP code
        that was sent. The Verify OTP code endpoint completes the OTP via email
        flow for:

        - [Sign-Up](/api/otp/email/sign-up)

        - [Sign-In](/api/otp/email/sign-in)

        - [Sign-In with Auto Sign-up](/api/otp/email/sign-in-auto-sign-up)

        - [Update Email](/api/otp/email/update-email)


        The response object includes the session JWT `sessionJwt` and refresh
        JWT `refreshJwt` when the endpoint completes successfully, and the end
        user will be signed in. For an update email flow, the new email address
        will replace the original email address.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.
      operationId: VerifyOtpEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPVerifyCodeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 4
      x-sdk: true
      x-meta:
        title: Verify OTP Code | OTP Email
        description: Verify the validity of an OTP code sent via email Email
        keywords: api, otp, email
  /v1/auth/otp/verify/im:
    post:
      tags:
        - Instant Message (IM)
      summary: Verify Code (IM)
      description: Verify a Sign in / Sign up based on an instant message
      operationId: VerifyCodeIM
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPVerifyCodeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 4
      x-sdk: true
      x-meta:
        title: Verify Code (IM) | OTP
        description: Verify a Sign in / Sign up based on an instant message
        keywords: api, otp
  /v1/auth/otp/verify/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Verify OTP Code
      description: >-
        ### Verify the validity of an OTP code via SMS


        Verify that the OTP code entered by the end user matches the OTP code
        that was sent. The Verify OTP code endpoint completes the OTP via SMS
        flow for:

        - [Sign-Up](/api/otp/sms/sign-up)

        - [Sign-In](/api/otp/sms/sign-in)

        - [Sign-In with Auto Sign-up](/api/otp/sms/sign-in-auto-sign-up)

        - [Update Email](/api/otp/sms/update-phone)


        The response object includes the session JWT `sessionJwt` and refresh
        JWT `refreshJwt` when it completes successfully, and the end user will
        be signed in. For an update phone number flow, the new phone number will
        replace the original phone number.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.
      operationId: VerifyCodeSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPVerifyCodeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 4
      x-sdk: true
      x-meta:
        title: Verify OTP Code | OTP SMS
        description: Verify the validity of an OTP code via SMS SMS
        keywords: api, otp, sms
  /v1/auth/otp/verify/voice:
    post:
      tags:
        - Voice Message (Phone)
      summary: Verify OTP Code
      description: >-
        ### Verify the validity of an OTP code via Voice


        Verify that the OTP code entered by the end user matches the OTP code
        that was sent. The Verify OTP code endpoint completes the OTP via Voice
        flow for:

        - [Sign-Up](/api/otp/phone/sign-up)

        - [Sign-In](/api/otp/phone/sign-in)

        - [Sign-In with Auto Sign-up](/api/otp/phone/sign-in-auto-sign-up)

        - [Update Phone](/api/otp/phone/update-phone)


        The response object includes the session JWT `sessionJwt` and refresh
        JWT `refreshJwt` when it completes successfully, and the end user will
        be signed in. For an update phone number flow, the new phone number will
        replace the original phone number.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.
      operationId: VerifyCodeVoice
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPVerifyCodeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: OTP
      x-order: 4
      x-sdk: true
      x-meta:
        title: Verify OTP Code | OTP
        description: Verify the validity of an OTP code via Voice
        keywords: api, otp
  /v1/auth/otp/update/email:
    post:
      tags:
        - Email
      summary: Update Email
      description: >-
        ### Update Email Address of Existing User

        Update the email of an existing end user by sending an OTP code to the
        new email address. After successfully verifying the code the new email
        address will be used to deliver new OTP messages via email. The bearer
        token requires both the ProjectId and refresh JWT in the format
        `<Project ID>:<JWT>`, and can therefore only be run for end users who
        are currently signed-in.


        This endpoint will return an empty response object when it completes
        successfully.


        Descope allows you to associating multiple login IDs for a user during
        API update calls. For details on how this feature works, please review
        the details
        [here](/manage/users#associating-multiple-login-ids-for-a-user).


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/email/verify-otp) endpoint to complete the update
        process.

        After successfully verifying the code the new email address will replace
        the original email address.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - See the [Verify OTP Code](/api/otp/email/verify-otp) endpoint, which
        will return the Refresh Jwt needed.
      operationId: UpdateUserEmailOtp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserEmailOTPRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailOperationResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: OTP
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Email | OTP Email
        description: Update Email Address of Existing User Email
        keywords: api, otp, email
  /v1/auth/otp/update/phone/im:
    post:
      tags:
        - Instant Message (IM)
      summary: Update Phone (IM)
      description: Update phone, and verify via OTP based on an instant message
      operationId: UpdateUserPhoneOTPIM
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPhoneOTPRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: OTP
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Phone (IM) | OTP
        description: Update phone, and verify via OTP based on an instant message
        keywords: api, otp
  /v1/auth/otp/update/phone/sms:
    post:
      tags:
        - Text Message (SMS)
      summary: Update Phone
      description: >-
        ### Update phone number of Existing User

        Update the phone number of an existing end user by sending an OTP code
        to the new phone number. After successfully verifying the code the new
        phone number will be used to deliver new OTP messages via SMS. The
        bearer token requires both the ProjectId and refresh JWT in the format
        `<Project ID>:<JWT>`, and can therefore only be run for end users who
        are currently signed-in.


        This endpoint will return an empty response object when it completes
        successfully.


        Descope allows you to associating multiple login IDs for a user during
        API update calls. For details on how this feature works, please review
        the details
        [here](/manage/users#associating-multiple-login-ids-for-a-user).


        ### Next Steps

        Verify the OTP code using the [Verify OTP Code](/api/otp/sms/verify-otp)
        endpoint to complete the update process.

        After successfully verifying the code the newphone number will replace
        the original phone number.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - Successful execution will return an empty body

        - To try this endpoint - need to provide `Project ID:Refresh JWT` as
        bearer. You can acquire the Session JWT by signing in the user and
        collecting it from the response.
      operationId: UpdateUserPhoneOTPSMS
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPhoneOTPRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: OTP
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Phone | OTP SMS
        description: Update phone number of Existing User SMS
        keywords: api, otp, sms
  /v1/auth/otp/update/phone/voice:
    post:
      tags:
        - Voice Message (Phone)
      summary: Update Phone
      description: >-
        ### Update phone number of Existing User

        Update the phone number of an existing end user by sending an OTP code
        to the new phone number. After successfully verifying the code the new
        phone number will be used to deliver new OTP messages via Voice. The
        bearer token requires both the ProjectId and refresh JWT in the format
        `<Project ID>:<JWT>`, and can therefore only be run for end users who
        are currently signed-in.


        This endpoint will return an empty response object when it completes
        successfully.


        Descope allows you to associating multiple login IDs for a user during
        API update calls. For details on how this feature works, please review
        the details
        [here](/manage/users#associating-multiple-login-ids-for-a-user).


        ### Next Steps

        Verify the OTP code using the [Verify OTP
        Code](/api/otp/phone/verify-otp) endpoint to complete the update
        process.

        After successfully verifying the code the newphone number will replace
        the original phone number.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email address and phone number.

        - Successful execution will return an empty body

        - To try this endpoint - need to provide `Project ID:Refresh JWT` as
        bearer. You can acquire the Session JWT by signing in the user and
        collecting it from the response.
      operationId: UpdateUserPhoneOTPVoice
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPhoneOTPRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneOperationResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: OTP
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Phone | OTP
        description: Update phone number of Existing User
        keywords: api, otp
  /v1/auth/password/signup:
    post:
      tags: []
      summary: Sign-Up User
      description: >-
        ### Sign-Up a new user utilizing password authentication. This endpoint
        will return the user's JWT.


        ### Next Steps

        Verify the user's email to allow for password reset by updating the
        email via [OTP](/api/otp/email/update-email), [Enchanted
        Link](/api/enchanted-link/update-email), or [Magic
        Link](/api/magic-link/email/update-email)


        Add tenants to the user via [Update User Add
        Tenant](/api/management/users/update-user-add-tenant)


        Add roles to the user via [Update User Add
        Role](/api/management/users/update-user-add-roles)


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - Use the [Sign-In](/api/passwords/sign-in) endpoint to sign-in an
        existing end user.
      operationId: SignUpPassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordSignUpRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: Password
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up User | Password
        description: >-
          Sign-Up a new user utilizing password authentication. This endpoint
          will return the user's JWT.
        keywords: api, password
  /v1/auth/password/signin:
    post:
      tags: []
      summary: Sign-In User
      description: >-
        ### Sign-In an existing user utilizing password authentication. This
        endpoint will return the user's JWT.


        ### Next Steps

        Verify the user's email to allow for password reset by updating the
        email via [OTP](/api/otp/email/update-email), [Enchanted
        Link](/api/enchanted-link/update-email), or [Magic
        Link](/api/magic-link/email/update-email)


        Add tenants to the user via [Update User Add
        Tenant](/api/management/users/update-user-add-tenant)


        Add roles to the user via [Update User Add
        Role](/api/management/users/update-user-add-roles)


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - Use the [Sign-Up](/api/passwords/sign-up) endpoint to sign-up a new
        end user.
      operationId: SignInPassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: Password
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In User | Password
        description: >-
          Sign-In an existing user utilizing password authentication. This
          endpoint will return the user's JWT.
        keywords: api, password
  /v1/auth/password/reset:
    post:
      tags:
        - Email
      summary: Reset Password
      description: >-
        ### Sent a password reset email to an existing user utilizing the
        password API.


        ### Next Steps

        You will then need to verify the user after the password reset is sent
        via email, this would need to be done via [Verify Magic
        Link](/api/magic-link/verification/verify-token).


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - You can also utilize [Update Password](/api/passwords/update-password)
        or [Replace Password](/api/passwords/replace-password) as alternatives
        to change a user's password.
      operationId: SendPasswordReset
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordResetSendRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PasswordResetSendResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: Password
      x-order: 3
      x-sdk: true
      x-meta:
        title: Reset Password | Password
        description: >-
          Sent a password reset email to an existing user utilizing the password
          API.
        keywords: api, password
  /v1/auth/password/replace:
    post:
      tags: []
      summary: Replace Password
      description: >-
        ### Replace the user's password of an existing user utilizing the
        password API.


        ### Next Steps

        Sign the user in with their new password via
        [Sign-In](/api/passwords/sign-in)


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - You can also utilize [Update Password](/api/passwords/update-password)
        or [Reset Password](/api/passwords/email/password-reset) as alternatives
        to change a user's password.
      operationId: ReplaceUserPassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordReplaceRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: Password
      x-order: 4
      x-sdk: true
      x-meta:
        title: Replace Password | Password
        description: >-
          Replace the user's password of an existing user utilizing the password
          API.
        keywords: api, password
  /v1/auth/password/update:
    post:
      tags: []
      summary: Update Password
      description: >-
        ### Update the user's password of an existing user utilizing the
        password API.


        ### Next Steps

        Sign the user in with their new password via
        [Sign-In](/api/passwords/sign-in)


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - You can also utilize [Replace
        Password](/api/passwords/replace-password) or [Reset
        Password](/api/passwords/email/password-reset) as alternatives to change
        a user's password.
      operationId: UpdateUserPassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordUpdateRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: Password
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Password | Password
        description: >-
          Update the user's password of an existing user utilizing the password
          API.
        keywords: api, password
  /v1/auth/password/policy:
    get:
      tags: []
      summary: Get Password Policy
      description: >-
        ### Get the configured password policy for the project.


        ### See Also

        - See [Password Policy
        Customization](/auth-methods/passwords#password-policy) for further
        details on password policy configuration.
      operationId: GetPasswordPolicy
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PasswordPolicyResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: Password
      x-order: 6
      x-sdk: true
      x-meta:
        title: Get Password Policy | Password
        description: Get the configured password policy for the project.
        keywords: api, password
  /v1/auth/recovery-codes:
    post:
      tags: []
      summary: Generate recovery codes for a user
      description: Generate recovery codes for a user
      operationId: GenerateUserRecoveryCodes
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateUserRecoveryCodesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateUserRecoveryCodesResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: RecoveryCodes
      x-order: 7
      x-sdk: true
      x-meta:
        title: Generate recovery codes for a user | Recovery Codes
        description: Generate recovery codes for a user
        keywords: api, recovery codes
  /v1/auth/recovery-codes/signin:
    post:
      tags: []
      summary: Sign in a user using a recovery code
      description: Sign in a user using a recovery code
      operationId: SignInRecoveryCode
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignInRecoveryCodeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
          Descope Project ID:Refresh JWT: []
      x-publishYaml: RecoveryCodes
      x-order: 8
      x-meta:
        title: Sign in a user using a recovery code | Recovery Codes
        description: Sign in a user using a recovery code
        keywords: api, recovery codes
  /v1/auth/saml/authorize:
    post:
      tags: []
      summary: Creating SAML redirect URI
      description: Creating SAML redirect URI
      operationId: CreateSAMLRedirect
      parameters:
        - name: tenant
          in: query
          schema:
            type: string
        - name: redirectUrl
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: array
            items:
              type: string
        - name: test
          in: query
          description: >-
            SSO setup-suite test mode: authenticate against the IdP without
            persisting a user and skip the
             JIT-disabled and SSO-application association checks; the exchange returns the IdP response and no session.
             Internal console/management option - rejected for other callers, should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
        - name: forceAuthn
          in: query
          schema:
            type: boolean
        - name: loginHint
          in: query
          schema:
            type: string
        - name: initiatedEmail
          in: query
          schema:
            type: string
        - name: unsavedSaml.enabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.redirectURL
          in: query
          schema:
            type: string
        - name: unsavedSaml.idpURL
          in: query
          schema:
            type: string
        - name: unsavedSaml.idpMetadataURL
          in: query
          schema:
            type: string
        - name: unsavedSaml.idpCert
          in: query
          schema:
            type: string
        - name: unsavedSaml.entityID
          in: query
          schema:
            type: string
        - name: unsavedSaml.spCert
          in: query
          schema:
            type: string
        - name: unsavedSaml.signRequest
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.samlMappings.name
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.email
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.username
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.phoneNumber
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.group
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.givenName
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.middleName
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.familyName
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.picture
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.verifiedEmail
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.verifiedPhone
          in: query
          schema:
            type: string
        - name: unsavedSaml.useMetaInfoToggle
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.allowSamlAuthOnly
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.id
          in: query
          schema:
            type: string
        - name: unsavedSaml.version
          in: query
          schema:
            type: string
        - name: unsavedSaml.descopeEntityId
          in: query
          schema:
            type: string
        - name: unsavedSaml.tenantID
          in: query
          schema:
            type: string
        - name: unsavedSaml.acsUrl
          in: query
          schema:
            type: string
        - name: unsavedSaml.mergeUsers
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.signRequestKey
          in: query
          description: skip 19, was used and removed
          schema:
            type: string
        - name: unsavedSaml.spEncryptionKey
          in: query
          schema:
            type: string
        - name: unsavedSaml.signRequestCert
          in: query
          schema:
            type: string
        - name: unsavedSaml.subjectNameIdFormat
          in: query
          schema:
            type: string
        - name: unsavedSaml.additional
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.providerID
          in: query
          schema:
            type: string
        - name: unsavedSaml.configProviderId
          in: query
          description: >-
            The following are purely on project level, and meant for generiting
            link
          schema:
            type: string
        - name: unsavedSaml.configTemplateId
          in: query
          schema:
            type: string
        - name: unsavedSaml.configExpirationTime
          in: query
          schema:
            type: integer
            format: int32
        - name: unsavedSaml.configExpirationTimeUnit
          in: query
          schema:
            type: string
        - name: unsavedSaml.scimProviderID
          in: query
          schema:
            type: string
        - name: unsavedSaml.lastSuccessTestTime
          in: query
          schema:
            type: integer
            format: int32
        - name: unsavedSaml.mandatoryUserAttributes
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.defaultSSORoles
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.configFGAMappableFeatures.types
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.configAssumedRoles
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.configAssumedPermissions
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.s4StyleId
          in: query
          schema:
            type: string
        - name: unsavedSaml.s4Features.scimDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.ssoDomainsDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.groupMappingDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.samlDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.oidcDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.jitGuideDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.roleMappingDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.fgaMappingDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.ssoDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.xaaEnabled
          in: query
          description: >-
            SHOWS the Cross-App Access (XAA / ID-JAG) part of the suite.
            Positive on purpose, unlike
             every other field here: XAA is off unless a project opts in, and a proto3 bool cannot tell
             an explicit false from an absent field, so "disabled by default" is not expressible with a
             *Disabled field.
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.auditDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.lockedTenantId
          in: query
          schema:
            type: string
        - name: unsavedSaml.s4DisableUserMappingCreate
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.useTenantLevelS4Configs
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.forceDomainVerification
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.configFGATenantIDResourcePrefix
          in: query
          schema:
            type: string
        - name: unsavedSaml.configFGATenantIDResourceSuffix
          in: query
          schema:
            type: string
        - name: unsavedSaml.allowDuplicateSSODomainsInOtherTenants
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.idpCerts
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.allowOverrideRoles
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.groupPriorityEnabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.blockIfEmailDomainMismatch
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.markEmailAsUnverified
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4ShowHelpContact
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4SupportEmail
          in: query
          schema:
            type: string
        - name: unsavedSaml.allowMergeUsersWithMultipleTenants
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.oidcLoginIdMappingDefaultOverride
          in: query
          schema:
            type: string
        - name: unsavedSaml.disableSignRequest
          in: query
          description: >-
            When true, the AuthnRequest Descope sends to this IdP is left
            unsigned. Some IdPs (NetIQ Access
             Manager for one) reject a signed request when their trusted-provider entry holds no signing
             certificate for us, so signing has to be opt-out per SSO configuration. Default false keeps
             requests signed, which is the behavior every existing configuration has today.
             This is deliberately a separate field from the legacy signRequest (8): that one is never read by
             the request-building path and is written as true unconditionally, so repurposing it would change
             behavior for every configuration that never set it.
          schema:
            type: boolean
        - name: unsavedSaml.authenticationOnly
          in: query
          description: >-
            Verify identity only: a login through this SSO configuration must
            not create, update or sign in
             a user. Lives on the settings row rather than the tenant's SSO wrapper so it reaches the default
             configuration, which owns no wrapper entry, and so a sub-tenant inherits it with the rest of the
             parent's configuration.
          schema:
            type: boolean
        - name: unsavedSaml.s4LoginFlowId
          in: query
          schema:
            type: string
        - name: unsavedSaml.s4LoginFlowStyleId
          in: query
          schema:
            type: string
        - name: unsavedOauth.enabled
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.redirectURL
          in: query
          schema:
            type: string
        - name: unsavedOauth.id
          in: query
          schema:
            type: string
        - name: unsavedOauth.version
          in: query
          schema:
            type: string
        - name: unsavedOauth.ssoMergeUsers
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.additional
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.mandatoryUserAttributes
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedOauth.lockedTenantId
          in: query
          schema:
            type: string
        - name: unsavedOauth.allowOverrideRoles
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.groupPriorityEnabled
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.blockIfEmailDomainMismatch
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.markEmailAsUnverified
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.allowMergeUsersWithMultipleTenants
          in: query
          schema:
            type: boolean
        - name: doNotCreateUser
          in: query
          description: >-
            Authenticate against the IdP without creating, updating, or signing
            in a Descope user.
             The exchange returns the IdP attributes/claims but no session JWTs.
             Internal flow-action option — should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
        - name: unsavedSSODomains
          in: query
          description: >-
            Draft SSO domains for test flows: the setup suite verifies domains
            before they are
             persisted on the tenant, so the email-domain-mismatch check would otherwise run
             against an empty persisted list and always fail. Allowed only when test is true.
          schema:
            type: array
            items:
              type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginOptions'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SAMLRedirectResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: SAML
      x-order: 5
      x-sdk: true
      x-meta:
        title: Creating SAML redirect URI | SAML
        description: Creating SAML redirect URI
        keywords: api, saml
  /v1/auth/saml/exchange:
    post:
      tags: []
      summary: Finalize SAML authentication
      description: Finalize SAML authentication
      operationId: ExchangeToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExchangeTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: SAML
      x-order: 5
      x-sdk: true
      x-meta:
        title: Finalize SAML authentication | SAML
        description: Finalize SAML authentication
        keywords: api, saml
  /v1/auth/saml/idp/metadata:
    get:
      tags: []
      summary: IDP Metadata URL for external SAML services
      description: IDP Metadata URL for external SAML services
      operationId: SAMLIDPMetadata
      parameters:
        - name: app
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SAMLIDPMetadataResponse'
      x-publishYaml: SAML
      x-order: 5
      security: []
      x-meta:
        title: IDP Metadata URL for external SAML services | SAML
        description: IDP Metadata URL for external SAML services
        keywords: api, saml
  /v1/auth/security-questions/setup:
    post:
      tags: []
      summary: Sets up security questions for a user
      description: Sets up security questions for a user
      operationId: SetupUserSecurityQuestions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetupUserSecurityQuestionsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupUserSecurityQuestionsResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: SecurityQuestions
      x-order: 7
      x-meta:
        title: Sets up security questions for a user | Security Questions
        description: Sets up security questions for a user
        keywords: api, security questions
  /v1/auth/security-questions/verify:
    get:
      tags: []
      summary: Get the security questions for a user to verify
      description: Get the security questions for a user to verify
      operationId: GetUserSecurityVerifyQuestions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetUserSecurityVerifyQuestionsResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: SecurityQuestions
      x-order: 8
      x-meta:
        title: Get the security questions for a user to verify | Security Questions
        description: Get the security questions for a user to verify
        keywords: api, security questions
    post:
      tags: []
      summary: Verifies the security questions for a user
      description: Verifies the security questions for a user
      operationId: VerifyUserSecurityQuestions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyUserSecurityQuestionsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: SecurityQuestions
      x-order: 8
      x-meta:
        title: Verifies the security questions for a user | Security Questions
        description: Verifies the security questions for a user
        keywords: api, security questions
  /v1/auth/sso/authorize:
    post:
      tags: []
      summary: Start SSO
      description: >-
        ### Authorize end user to sign-in using SAML SSO


        Initiate a SAML SSO (Single Sign-On, "sign-in" in Descope terminology)
        process for an end user. Descope will coordinate the sign-in process
        with the service provider. Specify the URL you want to redirect the end
        user to after a successful sign-in in the `redirectURL` parameter.


        When the SSO sign-in completes successfully, the endpoint returns a URL
        `url` that has a unique code `<unique-code\>`, also called a token)
        appended as a URL parameter to the `redirectURL` you provided. For
        example, if `redirectURL = https://sso.mycompany.com/mywork.htm` then
        `url = https://sso.mycompany.com/mywork.htm?code=<unique-code\>`. The
        unique code will be exchanged for a valid user object in the next step.


        After the end user has been successfully authenticated with the identity
        provider (IdP) the end user session is redirected to `url`.


        ### Next Steps

        Call the [Exchange Code](/api/sso/exchange-code) endpoint from the flow
        that responds to the URL specified in the `redirectURL` field, to
        exchange the unique code for a user session object.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on the stepup, mfa, and customClaims parameters.
      operationId: AuthorizeSAML
      parameters:
        - name: tenant
          in: query
          schema:
            type: string
        - name: redirectUrl
          in: query
          schema:
            type: string
        - name: prompt
          in: query
          schema:
            type: array
            items:
              type: string
        - name: test
          in: query
          description: >-
            SSO setup-suite test mode: authenticate against the IdP without
            persisting a user and skip the
             JIT-disabled and SSO-application association checks; the exchange returns the IdP response and no session.
             Internal console/management option - rejected for other callers, should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
        - name: forceAuthn
          in: query
          schema:
            type: boolean
        - name: loginHint
          in: query
          schema:
            type: string
        - name: initiatedEmail
          in: query
          schema:
            type: string
        - name: unsavedSaml.enabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.redirectURL
          in: query
          schema:
            type: string
        - name: unsavedSaml.idpURL
          in: query
          schema:
            type: string
        - name: unsavedSaml.idpMetadataURL
          in: query
          schema:
            type: string
        - name: unsavedSaml.idpCert
          in: query
          schema:
            type: string
        - name: unsavedSaml.entityID
          in: query
          schema:
            type: string
        - name: unsavedSaml.spCert
          in: query
          schema:
            type: string
        - name: unsavedSaml.signRequest
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.samlMappings.name
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.email
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.username
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.phoneNumber
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.group
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.givenName
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.middleName
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.familyName
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.picture
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.verifiedEmail
          in: query
          schema:
            type: string
        - name: unsavedSaml.samlMappings.verifiedPhone
          in: query
          schema:
            type: string
        - name: unsavedSaml.useMetaInfoToggle
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.allowSamlAuthOnly
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.id
          in: query
          schema:
            type: string
        - name: unsavedSaml.version
          in: query
          schema:
            type: string
        - name: unsavedSaml.descopeEntityId
          in: query
          schema:
            type: string
        - name: unsavedSaml.tenantID
          in: query
          schema:
            type: string
        - name: unsavedSaml.acsUrl
          in: query
          schema:
            type: string
        - name: unsavedSaml.mergeUsers
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.signRequestKey
          in: query
          description: skip 19, was used and removed
          schema:
            type: string
        - name: unsavedSaml.spEncryptionKey
          in: query
          schema:
            type: string
        - name: unsavedSaml.signRequestCert
          in: query
          schema:
            type: string
        - name: unsavedSaml.subjectNameIdFormat
          in: query
          schema:
            type: string
        - name: unsavedSaml.additional
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.providerID
          in: query
          schema:
            type: string
        - name: unsavedSaml.configProviderId
          in: query
          description: >-
            The following are purely on project level, and meant for generiting
            link
          schema:
            type: string
        - name: unsavedSaml.configTemplateId
          in: query
          schema:
            type: string
        - name: unsavedSaml.configExpirationTime
          in: query
          schema:
            type: integer
            format: int32
        - name: unsavedSaml.configExpirationTimeUnit
          in: query
          schema:
            type: string
        - name: unsavedSaml.scimProviderID
          in: query
          schema:
            type: string
        - name: unsavedSaml.lastSuccessTestTime
          in: query
          schema:
            type: integer
            format: int32
        - name: unsavedSaml.mandatoryUserAttributes
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.defaultSSORoles
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.configFGAMappableFeatures.types
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.configAssumedRoles
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.configAssumedPermissions
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.s4StyleId
          in: query
          schema:
            type: string
        - name: unsavedSaml.s4Features.scimDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.ssoDomainsDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.groupMappingDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.samlDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.oidcDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.jitGuideDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.roleMappingDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.fgaMappingDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.ssoDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.xaaEnabled
          in: query
          description: >-
            SHOWS the Cross-App Access (XAA / ID-JAG) part of the suite.
            Positive on purpose, unlike
             every other field here: XAA is off unless a project opts in, and a proto3 bool cannot tell
             an explicit false from an absent field, so "disabled by default" is not expressible with a
             *Disabled field.
          schema:
            type: boolean
        - name: unsavedSaml.s4Features.auditDisabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.lockedTenantId
          in: query
          schema:
            type: string
        - name: unsavedSaml.s4DisableUserMappingCreate
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.useTenantLevelS4Configs
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.forceDomainVerification
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.configFGATenantIDResourcePrefix
          in: query
          schema:
            type: string
        - name: unsavedSaml.configFGATenantIDResourceSuffix
          in: query
          schema:
            type: string
        - name: unsavedSaml.allowDuplicateSSODomainsInOtherTenants
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.idpCerts
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedSaml.allowOverrideRoles
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.groupPriorityEnabled
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.blockIfEmailDomainMismatch
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.markEmailAsUnverified
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4ShowHelpContact
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.s4SupportEmail
          in: query
          schema:
            type: string
        - name: unsavedSaml.allowMergeUsersWithMultipleTenants
          in: query
          schema:
            type: boolean
        - name: unsavedSaml.oidcLoginIdMappingDefaultOverride
          in: query
          schema:
            type: string
        - name: unsavedSaml.disableSignRequest
          in: query
          description: >-
            When true, the AuthnRequest Descope sends to this IdP is left
            unsigned. Some IdPs (NetIQ Access
             Manager for one) reject a signed request when their trusted-provider entry holds no signing
             certificate for us, so signing has to be opt-out per SSO configuration. Default false keeps
             requests signed, which is the behavior every existing configuration has today.
             This is deliberately a separate field from the legacy signRequest (8): that one is never read by
             the request-building path and is written as true unconditionally, so repurposing it would change
             behavior for every configuration that never set it.
          schema:
            type: boolean
        - name: unsavedSaml.authenticationOnly
          in: query
          description: >-
            Verify identity only: a login through this SSO configuration must
            not create, update or sign in
             a user. Lives on the settings row rather than the tenant's SSO wrapper so it reaches the default
             configuration, which owns no wrapper entry, and so a sub-tenant inherits it with the rest of the
             parent's configuration.
          schema:
            type: boolean
        - name: unsavedSaml.s4LoginFlowId
          in: query
          schema:
            type: string
        - name: unsavedSaml.s4LoginFlowStyleId
          in: query
          schema:
            type: string
        - name: unsavedOauth.enabled
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.redirectURL
          in: query
          schema:
            type: string
        - name: unsavedOauth.id
          in: query
          schema:
            type: string
        - name: unsavedOauth.version
          in: query
          schema:
            type: string
        - name: unsavedOauth.ssoMergeUsers
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.additional
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.mandatoryUserAttributes
          in: query
          schema:
            type: array
            items:
              type: string
        - name: unsavedOauth.lockedTenantId
          in: query
          schema:
            type: string
        - name: unsavedOauth.allowOverrideRoles
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.groupPriorityEnabled
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.blockIfEmailDomainMismatch
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.markEmailAsUnverified
          in: query
          schema:
            type: boolean
        - name: unsavedOauth.allowMergeUsersWithMultipleTenants
          in: query
          schema:
            type: boolean
        - name: doNotCreateUser
          in: query
          description: >-
            Authenticate against the IdP without creating, updating, or signing
            in a Descope user.
             The exchange returns the IdP attributes/claims but no session JWTs.
             Internal flow-action option — should not be documented in open api file or exposed in SDKs.
          schema:
            type: boolean
        - name: unsavedSSODomains
          in: query
          description: >-
            Draft SSO domains for test flows: the setup suite verifies domains
            before they are
             persisted on the tenant, so the email-domain-mismatch check would otherwise run
             against an empty persisted list and always fail. Allowed only when test is true.
          schema:
            type: array
            items:
              type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginOptions'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SAMLRedirectResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: SSO
      x-order: 1
      x-sdk: true
      x-meta:
        title: Start SSO | SSO
        description: Authorize end user to sign-in using SAML SSO
        keywords: api, sso
  /v1/auth/sso/exchange:
    post:
      tags: []
      summary: Exchange SSO Code
      description: >-
        ### Exchange SSO SAML code for Descope user session


        This endpoint will exchange the unique SAML code (also called a token)
        for the Descope session information needed for managing the end user
        session. Call this endpoint from your code flow that responds to the
        `url` that was returned by the [Sign-In](/api/oauth/sign-up-sign-in)
        endpoint.


        The unique code `<unique-code\>` is appended as a URL parameter:
        `code=<unique-code\>`, for example, `url =
        https://sso.mycompany.com/mywork.htm?code=<unique-code\>`.


        ### Next Steps


        1. Extract the unique code `<unique-code\>` from the URL parameter.

        2. Call this endpoint, passing the `<unique-code\>` as the request
        parameter


        The response object includes the session JWT (sessionJwt) and refresh
        JWT (refreshJwt) when this endpoint completes successfully.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: ExchangeCodesso
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExchangeTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: SSO
      x-order: 2
      x-sdk: true
      x-meta:
        title: Exchange SSO Code | SSO
        description: Exchange SSO SAML code for Descope user session
        keywords: api, sso
  /v1/auth/totp/signup:
    post:
      tags: []
      summary: Sign-Up
      description: >-
        ### Sign-up new end user via TOTP


        Initiate a TOTP sign-up process for a new end user. Descope will
        generate a TOTP key (also called a secret or seed) that will be entered
        into the end user's authenticator app so that TOTP codes can be
        successfully verified. The new end user will be registered after the
        full TOTP sign-up flow has successfully completed.


        If the end user is already registered use the
        [add/update](/api/totp/add-update-key) endpoint to add TOTP funtionality
        to an existing end user, to prevent the same person being registered
        twice.


        ### Next Steps

        1. Display the TOTP key so it can be entered into their authenticator
        app. The TOTP key is returned in the response object in three ways, to
        ensure it can easily be entered into the end user's authenticator app.

        2. Prompt the end user user for a TOTP code generated by their
        authenticator app.

        3. Verify the TOTP code using the [Sign-In /
        Verify](/api/totp/sign-in-verify) endpoint to complete the sign-in
        process. After successfully verifying the TOTP code the new end user
        will be registered using the details you provided in the body of this
        endpoint.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - Use the [add/update](/api/totp/add-update-key) endpoint to add TOTP
        funtionality to an existing end user.
      operationId: SignUpTOTP
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TOTPSignUpRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TOTPResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: TOTP
      x-order: 1
      x-sdk: true
      x-meta:
        title: Sign-Up | TOTP
        description: Sign-up new end user via TOTP
        keywords: api, totp
  /v1/auth/totp/verify:
    post:
      tags: []
      summary: Sign-In / Verify
      description: >-
        ### Verify the TOTP of an end user


        Verify the TOTP code of an end user. This endpoint is the final API call
        for the following TOTP flows:

        * Sign-In - If the end user is already registered, this end-point is the
        only call you need to sign-in that user.

        * Sign-Up - If you are implementing a sign-up flow, this endpoint will
        verify the TOTP code and complete the sign-up process

        * Add/ Update - If you are implementing an Add / Update flow, this
        endpoint completes the process of adding/updating the TOTP key for that
        user.


        The response object includes the session JWT `sessionJwt` and refresh
        JWT `refreshJwt` when the endpoint completes successfully, and the end
        user will be signed in.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.

        - See [User Login Options](/api/overview#user-login-options) for further
        details on loginOptions.
      operationId: VerifyCodeTOTP
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TOTPVerifyCodeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: TOTP
      x-order: 2
      x-sdk: true
      x-meta:
        title: Sign-In / Verify | TOTP
        description: Verify the TOTP of an end user
        keywords: api, totp
  /v1/auth/totp/update:
    post:
      tags: []
      summary: Add / Update Key
      description: >-
        ### Add or update TOTP key for existing end user


        Initiate a flow to add TOTP functionality for an existing end user, or
        to update the TOTP key for an existing end user. Descope will generate a
        TOTP key (also called a secret or seed) that will be entered into the
        end user's authenticator app so that TOTP codes can be successfully
        verified. The new end user will be registered after the full Add /
        Update TOTP flow has successfully completed. The bearer token requires
        both the ProjectId and refresh JWT in the format `<Project ID>:<JWT>`,
        and can therefore only be run for end users who are currently signed-in.


        If the end user is not yet registered use the
        [Sign-Up](/api/totp/sign-up) endpoint to register the user.


        ### Next Steps

        1. Display the TOTP key to the end user so the key can be entered into
        the authenticator app. Use any of the following methods to display the
        key to your end user:
            * (recommended) Redirect the end user session to the `provisioningURL` returned in the response body. The URL displays the key as a QR code that can be scanned directly from the authenticator app.
            * Render the QR code using your own web page using the `image` (the QR code as Base64) returned in the response body.
            * If your end user cannot scan a QR code, present the `key` returned in the response body so the key can be pasted into their authenticator app. If the authenticator app prompts, the end user must select key type: "time based".
        2. Prompt the end user user for a TOTP code generated by their
        authenticator app.

        3. Verify the TOTP code using the [Sign-In /
        Verify](/api/totp/sign-in-verify) endpoint to complete the Add / Update
        process. After successfully verifying the TOTP code the new TOTP key
        will be used to validate future TOTP code.


        ### See Also

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: UpdateUserTOTP
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TOTPUpdateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TOTPResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: TOTP
      x-order: 3
      x-sdk: true
      x-meta:
        title: Add / Update Key | TOTP
        description: Add or update TOTP key for existing end user
        keywords: api, totp
  /v1/auth/webauthn/signup/start:
    post:
      tags: []
      summary: User Sign-Up
      description: Create a new user using WebAuthn
      operationId: WebAuthnSignupStart
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebauthnSignUpStartRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebauthnStartResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: WebAuthn
      x-order: 1
      x-sdk: true
      x-meta:
        title: User Sign-Up | WebAuthn
        description: Create a new user using WebAuthn
        keywords: api, webauthn
  /v1/auth/webauthn/signup/finish:
    post:
      tags: []
      summary: Finalize Sign-Up
      description: Finalize a WebAuthn signup operation
      operationId: WebAuthnSignupFinish
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebauthnSignUpFinishRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: WebAuthn
      x-order: 2
      x-sdk: true
      x-meta:
        title: Finalize Sign-Up | WebAuthn
        description: Finalize a WebAuthn signup operation
        keywords: api, webauthn
  /v1/auth/webauthn/signin/start:
    post:
      tags: []
      summary: User Sign-In
      description: Login an existing user with WebAuthn
      operationId: WebAuthnSigninStart
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebauthnSignInStartRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebauthnStartResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: WebAuthn
      x-order: 3
      x-sdk: true
      x-meta:
        title: User Sign-In | WebAuthn
        description: Login an existing user with WebAuthn
        keywords: api, webauthn
  /v1/auth/webauthn/signin/finish:
    post:
      tags: []
      summary: Finalize Sign-In
      description: Finalize a WebAuthn signin operation
      operationId: WebAuthnSigninFinish
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebauthnSignInFinishRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: WebAuthn
      x-order: 4
      x-sdk: true
      x-meta:
        title: Finalize Sign-In | WebAuthn
        description: Finalize a WebAuthn signin operation
        keywords: api, webauthn
  /v1/auth/webauthn/signup-in/start:
    post:
      tags: []
      summary: User Sign-In with Auto Sign-Up
      description: >-
        Use to login with WebAuthn, if user doesn't exist a new user will be
        created
      operationId: WebAuthnSignUpInStart
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebauthnSignUpOrInStartRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebauthnStartResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: WebAuthn
      x-order: 5
      x-sdk: true
      x-meta:
        title: User Sign-In with Auto Sign-Up | WebAuthn
        description: >-
          Use to login with WebAuthn, if user doesn't exist a new user will be
          created
        keywords: api, webauthn
  /v1/auth/webauthn/update/start:
    post:
      tags: []
      summary: Add WebAuthn Device
      description: Add a new WebAuthn device to an existing user
      operationId: WebAuthnDeviceAddStart
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebauthnAddDeviceStartRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebauthnStartResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: WebAuthn
      x-order: 6
      x-sdk: true
      x-meta:
        title: Add WebAuthn Device | WebAuthn
        description: Add a new WebAuthn device to an existing user
        keywords: api, webauthn
  /v1/auth/webauthn/update/finish:
    post:
      tags: []
      summary: Finalize Add WebAuthn
      description: Finalize adding a new WebAuthn device
      operationId: WebAuthnDeviceAddFinish
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebauthnAddDeviceFinishRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebauthnAddDeviceFinishResponse'
      security:
        - Descope Project ID: []
      x-publishYaml: WebAuthn
      x-order: 7
      x-sdk: true
      x-meta:
        title: Finalize Add WebAuthn | WebAuthn
        description: Finalize adding a new WebAuthn device
        keywords: api, webauthn
  /v1/auth/wsfed/idp/metadata:
    get:
      tags: []
      summary: WS-Fed IDP Metadata
      description: WS-Federation metadata endpoint for external RP services
      operationId: WSFedIDPMetadata
      parameters:
        - name: app
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WSFedIDPMetadataResponse'
      x-publishYaml: WSFed
      security: []
      x-meta:
        title: WS-Fed IDP Metadata | W S Fed
        description: WS-Federation metadata endpoint for external RP services
        keywords: api, w s fed
  /.well-known/oauth-authorization-server/v1/apps/agentic/{projectId}/{mcpServerId}:
    get:
      tags: []
      summary: >-
        Get project mcp server client well-known configuration for OAuth (RFC
        8414 path-inserted)
      description: >-
        Get project mcp server client well-known configuration for OAuth (RFC
        8414 path-inserted)
      operationId: GetAgenticThirdPartyAppsWellKnownConfigurationAuthServerPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: mcpServerId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project mcp server client well-known configuration for OAuth (RFC
          8414 path-inserted) | Session Well Known
        description: >-
          Get project mcp server client well-known configuration for OAuth (RFC
          8414 path-inserted)
        keywords: api, session well known
  /.well-known/oauth-authorization-server/v1/apps/customized/{projectId}:
    get:
      tags: []
      summary: >-
        Get project Third party apps (customized URLs) well-known configuration
        (RFC 8414 path-inserted)
      description: >-
        Get project Third party apps (customized URLs) well-known configuration
        (RFC 8414 path-inserted)
      operationId: GetThirdPartyAppsCustomWellKnownConfigurationPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps (customized URLs) well-known
          configuration (RFC 8414 path-inserted) | Session Well Known
        description: >-
          Get project Third party apps (customized URLs) well-known
          configuration (RFC 8414 path-inserted)
        keywords: api, session well known
  /.well-known/oauth-authorization-server/v1/apps/{projectId}:
    get:
      tags: []
      summary: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      description: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      operationId: GetThirdPartyAppsWellKnownConfigurationPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted) | Session Well Known
        description: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted)
        keywords: api, session well known
  /.well-known/oauth-authorization-server/v1/apps/{projectId}/{tenantId}:
    get:
      tags: []
      summary: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      description: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      operationId: GetThirdPartyAppsWellKnownConfigurationPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted) | Session Well Known
        description: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted)
        keywords: api, session well known
  /.well-known/oauth-authorization-server/{projectId}:
    get:
      tags: []
      summary: Get project well-known configuration for oauth ending with projectID
      description: Get project well-known configuration for oauth ending with projectID
      operationId: GetWellKnownConfigurationAuthServerProjectSuffix
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project well-known configuration for oauth ending with projectID |
          Session Well Known
        description: Get project well-known configuration for oauth ending with projectID
        keywords: api, session well known
  /.well-known/openid-configuration/v1/apps/agentic/{projectId}/{mcpServerId}:
    get:
      tags: []
      summary: >-
        Get project mcp server client well-known configuration for OpenID
        (path-inserted)
      description: >-
        Get project mcp server client well-known configuration for OpenID
        (path-inserted)
      operationId: GetAgenticThirdPartyAppsWellKnownConfigurationOpenIDPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: mcpServerId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project mcp server client well-known configuration for OpenID
          (path-inserted) | Session Well Known
        description: >-
          Get project mcp server client well-known configuration for OpenID
          (path-inserted)
        keywords: api, session well known
  /.well-known/openid-configuration/v1/apps/customized/{projectId}:
    get:
      tags: []
      summary: >-
        Get project Third party apps (customized URLs) well-known configuration
        (RFC 8414 path-inserted)
      description: >-
        Get project Third party apps (customized URLs) well-known configuration
        (RFC 8414 path-inserted)
      operationId: GetThirdPartyAppsCustomWellKnownConfigurationPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps (customized URLs) well-known
          configuration (RFC 8414 path-inserted) | Session Well Known
        description: >-
          Get project Third party apps (customized URLs) well-known
          configuration (RFC 8414 path-inserted)
        keywords: api, session well known
  /.well-known/openid-configuration/v1/apps/{projectId}:
    get:
      tags: []
      summary: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      description: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      operationId: GetThirdPartyAppsWellKnownConfigurationPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted) | Session Well Known
        description: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted)
        keywords: api, session well known
  /.well-known/openid-configuration/v1/apps/{projectId}/{tenantId}:
    get:
      tags: []
      summary: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      description: >-
        Get project Third party apps well-known configuration (RFC 8414
        path-inserted)
      operationId: GetThirdPartyAppsWellKnownConfigurationPathInserted
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted) | Session Well Known
        description: >-
          Get project Third party apps well-known configuration (RFC 8414
          path-inserted)
        keywords: api, session well known
  /v1/apps/agentic/{projectId}/{mcpServerId}/.well-known/oauth-authorization-server:
    get:
      tags: []
      summary: Get project mcp server client well-known configuration for OAuth
      description: Get project mcp server client well-known configuration for OAuth
      operationId: GetAgenticThirdPartyAppsWellKnownConfigurationAuthServer
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: mcpServerId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project mcp server client well-known configuration for OAuth |
          Session Well Known
        description: Get project mcp server client well-known configuration for OAuth
        keywords: api, session well known
  /v1/apps/agentic/{projectId}/{mcpServerId}/.well-known/openid-configuration:
    get:
      tags: []
      summary: Get project mcp server client well-known configuration for OpenID
      description: Get project mcp server client well-known configuration for OpenID
      operationId: GetAgenticThirdPartyAppsWellKnownConfigurationOpenID
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: mcpServerId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project mcp server client well-known configuration for OpenID |
          Session Well Known
        description: Get project mcp server client well-known configuration for OpenID
        keywords: api, session well known
  /v1/apps/{projectId}/.well-known/oauth-authorization-server:
    get:
      tags: []
      summary: Get project Third party apps well-known configuration for oauth
      description: Get project Third party apps well-known configuration for oauth
      operationId: GetThirdPartyAppsWellKnownConfigurationAuthServer
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps well-known configuration for oauth |
          Session Well Known
        description: Get project Third party apps well-known configuration for oauth
        keywords: api, session well known
  /v1/apps/{projectId}/.well-known/openid-configuration:
    get:
      tags: []
      summary: Get project Third party apps well-known configuration for OpenID
      description: Get project Third party apps well-known configuration for OpenID
      operationId: GetThirdPartyAppsWellKnownConfigurationOpenID
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project Third party apps well-known configuration for OpenID |
          Session Well Known
        description: Get project Third party apps well-known configuration for OpenID
        keywords: api, session well known
  /{projectId}/.well-known/jwks.json:
    get:
      tags: []
      summary: Get Public Key to Validate JWT
      description: Get project public keys for JWT validation
      operationId: GetWellKnownJWKS
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: certs
          in: query
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.JWKSResponseV2'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: Get Public Key to Validate JWT | Session Well Known
        description: Get project public keys for JWT validation
        keywords: api, session well known
  /{projectId}/.well-known/oauth-authorization-server:
    get:
      tags: []
      summary: Get project well-known configuration for oauth
      description: Get project well-known configuration for oauth
      operationId: GetWellKnownConfigurationAuthServer
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: Get project well-known configuration for oauth | Session Well Known
        description: Get project well-known configuration for oauth
        keywords: api, session well known
  /{projectId}/.well-known/openid-configuration:
    get:
      tags: []
      summary: Get project well-known configuration for OpenID
      description: Get project well-known configuration for OpenID
      operationId: GetWellKnownConfigurationOpenID
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: ssoAppId
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: Get project well-known configuration for OpenID | Session Well Known
        description: Get project well-known configuration for OpenID
        keywords: api, session well known
  /{projectId}/{ssoAppId}/.well-known/openid-configuration:
    get:
      tags: []
      summary: Get project well-known configuration for OpenID (sso app)
      description: Get project well-known configuration for OpenID (sso app)
      operationId: GetSSOAppWellKnownConfigurationOpenID
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: ssoAppId
          in: path
          required: true
          schema:
            type: string
        - name: baseUrl
          in: query
          schema:
            type: string
        - name: mfa
          in: query
          schema:
            type: string
        - name: isThirdPartyApps
          in: query
          schema:
            type: boolean
        - name: usePreLoadedClaims
          in: query
          schema:
            type: boolean
        - name: claims
          in: query
          schema:
            type: array
            items:
              type: string
        - name: urlsWithProjectID
          in: query
          schema:
            type: boolean
        - name: mcpServerId
          in: query
          schema:
            type: string
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.WellKnownConfigurationResponse'
      x-publishYaml: sessionWellKnown
      x-order: 1
      security: []
      x-meta:
        title: >-
          Get project well-known configuration for OpenID (sso app) | Session
          Well Known
        description: Get project well-known configuration for OpenID (sso app)
        keywords: api, session well known
  /.well-known/authzen-configuration:
    get:
      tags: []
      summary: Get AuthZEN PDP metadata
      description: Get the OpenID AuthZEN Policy Decision Point metadata document
      operationId: GetWellKnownAuthZenConfiguration
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WellKnownAuthZenConfigurationResponse'
      x-publishYaml: sessionWellKnown
      security: []
      x-meta:
        title: Get AuthZEN PDP metadata | Session Well Known
        description: Get the OpenID AuthZEN Policy Decision Point metadata document
        keywords: api, session well known
  /.well-known/project-configuration/{projectId}:
    get:
      tags: []
      summary: Get general well-known project configuration
      description: Get general well-known project configuration
      operationId: GetWellKnownProjectConfiguration
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WellKnownProjectConfigurationResponse'
      x-publishYaml: sessionWellKnown
      security: []
      x-meta:
        title: Get general well-known project configuration | Session Well Known
        description: Get general well-known project configuration
        keywords: api, session well known
  /fedcm/clientmetadata:
    get:
      tags: []
      summary: Get project federated CM client metadata
      description: Get project federated CM client metadata
      operationId: GetFedCMClientMetadata
      parameters:
        - name: client_id
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FedCMClientMetadataResponse'
      x-publishYaml: getFedCMClientMetadata
      x-order: 1
      security: []
      x-meta:
        title: Get project federated CM client metadata | Get Fed C M Client Metadata
        description: Get project federated CM client metadata
        keywords: api, get fed c m client metadata
  /v1/keys/{projectId}:
    get:
      tags: []
      summary: Token Validation Key (V1)
      description: >-
        ### Get public key for session token validation (V1)


        This API endpoint will return the public key needed to handle the
        session token JWT validation.

        `projectId` is provided as a GET parameter, so this endpoint can be
        executed with a browser.
      operationId: GetKeys
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: certs
          in: query
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.JWKSResponse'
      x-publishYaml: sessionGetKeys
      x-order: 1
      security: []
      x-meta:
        title: Token Validation Key (V1) | Session Get Keys
        description: Get public key for session token validation (V1)
        keywords: api, session get keys
  /v2/keys/{projectId}:
    get:
      tags: []
      summary: Token Validation Key (V2)
      description: >-
        ### Get public key for session token validation (V2)


        This API endpoint will return the public key needed to handle the
        session token JWT validation.

        `projectId` is provided as a GET parameter, so this endpoint can be
        executed with a browser.


        This endpoint differentiates from [Token Validation Key
        (V1)](/api/session/get-keys)

        as the data is returned in JSON format rather than an array.
      operationId: GetKeysV2
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
        - name: certs
          in: query
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/sessionv1.JWKSResponseV2'
      x-publishYaml: sessionGetKeys
      x-order: 1
      x-sdk: true
      security: []
      x-meta:
        title: Token Validation Key (V2) | Session Get Keys
        description: Get public key for session token validation (V2)
        keywords: api, session get keys
  /{projectId}/fedcm/config:
    get:
      tags: []
      summary: Get project federated CM configuration
      description: Get project federated CM configuration
      operationId: GetFedCMConfig
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FedCMConfigResponse'
      x-publishYaml: getFedCMConfig
      x-order: 1
      security: []
      x-meta:
        title: Get project federated CM configuration | Get Fed C M Config
        description: Get project federated CM configuration
        keywords: api, get fed c m config
  /scim/v2/Groups:
    get:
      tags: []
      summary: Search SCIM Groups
      description: >-
        ### Search SCIM groups, using a valid access key.


        This endpoint allows administrators to search SCIM groups. These groups
        have been created and associated to the Application and Descope tenant.


        The response includes an array of group objects within the Resources
        object. These group objects include details about the groups including
        the members.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### Next Steps


        Once you have this data, you can [Update an Existing SCIM
        Group](/api/management/tenants/scim/update-scim-group) or [Delete an
        Existing SCIM Group](/api/management/tenants/scim/delete-scim-group).
        You can add or remove users from the SCIM groups via [Update SCIM
        Group](/api/management/tenants/scim/update-scim-group).


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: SearchSCIMGroups
      parameters:
        - name: filter
          in: query
          schema:
            type: string
        - name: startIndex
          in: query
          schema:
            type: integer
            format: int32
        - name: count
          in: query
          schema:
            type: integer
            format: int32
        - name: excludedAttributes
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGetGroupsResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 1
      x-meta:
        title: Search SCIM Groups | Scim Management
        description: Search SCIM groups, using a valid access key.
        keywords: api, scim management
    post:
      tags: []
      summary: Create SCIM Group
      description: >-
        ### Create a SCIM group, using a valid access key.


        This endpoint allows administrators to create new SCIM groups within
        their environement. When creating the group, you can configure the
        groupId, displayName, and it's members.


        The response includes the new group's group object which includes
        details about the groups including the members.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### Next Steps


        Once you have created the group, you can later add or remove users from
        the SCIM groups via [Update SCIM
        Group](/api/management/tenants/scim/update-scim-group).


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: CreateSCIMGroup
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SCIMGroupRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGroupResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 3
      x-meta:
        title: Create SCIM Group | Scim Management
        description: Create a SCIM group, using a valid access key.
        keywords: api, scim management
  /scim/v2/Groups/{groupId}:
    get:
      tags: []
      summary: Load SCIM Group
      description: >-
        ### Load an existing SCIM group, using a valid access key.


        This endpoint allows administrators to load an existing SCIM group using
        the SCIM groupId, which is a required field, and optionally the
        displayName.


        The response includes the group's object which includes details about
        the groups including the members.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### Next Steps


        Once you have this data, you can add or remove users from the SCIM
        groups via [Update SCIM
        Group](/api/management/tenants/scim/update-scim-group).


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: LoadSCIMGroup
      parameters:
        - name: groupId
          in: path
          required: true
          schema:
            type: string
        - name: displayName
          in: query
          schema:
            type: string
        - name: externalId
          in: query
          schema:
            type: string
        - name: excludedAttributes
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGroupResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 2
      x-meta:
        title: Load SCIM Group | Scim Management
        description: Load an existing SCIM group, using a valid access key.
        keywords: api, scim management
    put:
      tags: []
      summary: Update SCIM Group
      description: >-
        ### Update an existing SCIM group, using a valid access key.


        This endpoint allows administrators to update an existing SCIM group
        using the SCIM group ID, which is a required field. You can update the
        display name and members through this API endpoint.


        The response includes the group's object which includes details about
        the groups including the members.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: UpdateSCIMGroup
      parameters:
        - name: groupId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SCIMGroupRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGroupResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 4
      x-meta:
        title: Update SCIM Group | Scim Management
        description: Update an existing SCIM group, using a valid access key.
        keywords: api, scim management
    delete:
      tags: []
      summary: Delete SCIM Group
      description: >-
        ### Delete an existing SCIM group, using a valid access key.


        This endpoint allows administrators to delete an existing SCIM group
        using using the SCIM groupId, which is a required field, and optionally
        the displayName.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: DeleteSCIMGroup
      parameters:
        - name: groupId
          in: path
          required: true
          schema:
            type: string
        - name: displayName
          in: query
          schema:
            type: string
        - name: externalId
          in: query
          schema:
            type: string
        - name: excludedAttributes
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 5
      x-meta:
        title: Delete SCIM Group | Scim Management
        description: Delete an existing SCIM group, using a valid access key.
        keywords: api, scim management
    patch:
      tags: []
      summary: Patch SCIM Group
      description: Patch SCIM Group, using a valid access key.
      operationId: PatchSCIMGroup
      parameters:
        - name: groupId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SCIMPatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 5
      x-meta:
        title: Patch SCIM Group | Scim Management
        description: Patch SCIM Group, using a valid access key.
        keywords: api, scim management
  /scim/v2/Users:
    get:
      tags: []
      summary: Search SCIM Users
      description: >-
        ### Search SCIM users, using a valid access key.


        This endpoint allows administrators to search SCIM users. These users
        have been created and associated to the Application and Descope tenant.


        The response includes an array of user objects within the Resources
        object. These user objects include details about the users including
        their email, phone, username, name, etc.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### Next Steps


        Once you have user data, you can utilize [Update SCIM
        Group](/api/management/tenants/scim/update-scim-group) to add or remove
        the user on groups.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: SearchSCIMUsers
      parameters:
        - name: filter
          in: query
          schema:
            type: string
        - name: startIndex
          in: query
          schema:
            type: integer
            format: int32
        - name: count
          in: query
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGetUsersResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 6
      x-meta:
        title: Search SCIM Users | Scim Management
        description: Search SCIM users, using a valid access key.
        keywords: api, scim management
  /v1/mgmt/scim/key/create:
    post:
      tags: []
      summary: Create SCIM Access Key
      description: >-
        Create a SCIM access key for a tenant, using a valid management key. The
        key is scoped to the given tenant and carries the roles and custom
        claims SCIM requires, so the returned bearer token can be pasted
        straight into an identity provider's SCIM configuration. Existing SCIM
        keys for the same SSO configuration stay valid. The cleartext is
        returned exactly once.
      operationId: CreateSCIMAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSCIMAccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMAccessKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scimManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Create SCIM Access Key | Scim Management
        description: >-
          Create a SCIM access key for a tenant, using a valid management key.
          The key is scoped to the given tenant and carries the roles and custom
          claims SCIM requires, so the returned bearer token can be pasted
          straight into an identity provider's SCIM configuration. Existing SCIM
          keys for the same SSO configuration stay valid. The cleartext is
          returned exactly once.
        keywords: api, scim management
  /scim/v2/Users/{userId}:
    get:
      tags: []
      summary: Load SCIM User
      description: >-
        ### Load an existing SCIM user, using a valid access key.


        This endpoint allows administrators to load an existing SCIM user.


        The response includes the user's object, which includes details about
        the users including their email, phone, username, name, etc.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### Next Steps


        Once you have user data, you can utilize [Update SCIM
        Group](/api/management/tenants/scim/update-scim-group) to add or remove
        the user on groups.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: LoadSCIMUser
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGetUserResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 7
      x-meta:
        title: Load SCIM User | Scim Management
        description: Load an existing SCIM user, using a valid access key.
        keywords: api, scim management
    put:
      tags: []
      summary: Update SCIM User
      description: >-
        ### Update an existing SCIM user, using a valid access key.


        This endpoint allows administrators to update an existing SCIM user.
        Through this API endpoint, administrators can update the displayName,
        phoneNumbers, emails, and if the user is active.


        The response includes the user's object, which includes details about
        the users including their email, phone, username, name, etc.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: UpdateSCIMUser
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SCIMUserRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGetUserResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 9
      x-meta:
        title: Update SCIM User | Scim Management
        description: Update an existing SCIM user, using a valid access key.
        keywords: api, scim management
    delete:
      tags: []
      summary: Delete SCIM User
      description: >-
        ### Delete an existing SCIM User, using a valid access key.


        This API endpoint allows administrators to delete an existing SCIM user
        from the Descope tenant.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: DeleteSCIMUser
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
        - name: displayName
          in: query
          description: >-
            The following values are manipulated by the marshaler in
            httpgateway/marshaler.go
             in case of changing or adding new ones, need to edit the marshaler as well
          schema:
            type: string
        - name: active
          in: query
          schema:
            type: boolean
        - name: name.givenName
          in: query
          schema:
            type: string
        - name: name.familyName
          in: query
          schema:
            type: string
        - name: name.middleName
          in: query
          schema:
            type: string
        - name: userName
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 11
      x-meta:
        title: Delete SCIM User | Scim Management
        description: Delete an existing SCIM User, using a valid access key.
        keywords: api, scim management
    patch:
      tags: []
      summary: Patch SCIM User
      description: Patch SCIM User, using a valid access key.
      operationId: SCIMPatchUser
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SCIMPatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMGetUserResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 10
      x-meta:
        title: Patch SCIM User | Scim Management
        description: Patch SCIM User, using a valid access key.
        keywords: api, scim management
  /v1/mgmt/scim/key/rotate:
    post:
      tags: []
      summary: Rotate SCIM Access Key
      description: >-
        Rotate the SCIM access keys of a tenant, using a valid management key. A
        new key is created and the tenant's existing SCIM keys for the same SSO
        configuration are revoked, either deleted or deactivated according to
        revokeMode. Update the identity provider with the new bearer token
        immediately - until you do, SCIM provisioning for that tenant will fail.
        The cleartext is returned exactly once.
      operationId: RotateSCIMAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateSCIMAccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMAccessKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scimManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Rotate SCIM Access Key | Scim Management
        description: >-
          Rotate the SCIM access keys of a tenant, using a valid management key.
          A new key is created and the tenant's existing SCIM keys for the same
          SSO configuration are revoked, either deleted or deactivated according
          to revokeMode. Update the identity provider with the new bearer token
          immediately - until you do, SCIM provisioning for that tenant will
          fail. The cleartext is returned exactly once.
        keywords: api, scim management
  /v1/mgmt/scim/key/revoke:
    post:
      tags: []
      summary: Revoke SCIM Access Keys
      description: >-
        Revoke every SCIM access key of a tenant for the given SSO
        configuration, using a valid management key. This disables SCIM
        provisioning for that tenant until a new key is created and configured
        in the identity provider. Use revokeMode DEACTIVATE to suspend the keys
        reversibly instead of deleting them.
      operationId: RevokeSCIMAccessKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeSCIMAccessKeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeSCIMAccessKeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scimManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Revoke SCIM Access Keys | Scim Management
        description: >-
          Revoke every SCIM access key of a tenant for the given SSO
          configuration, using a valid management key. This disables SCIM
          provisioning for that tenant until a new key is created and configured
          in the identity provider. Use revokeMode DEACTIVATE to suspend the
          keys reversibly instead of deleting them.
        keywords: api, scim management
  /v1/mgmt/scim/key/activate:
    post:
      tags: []
      summary: Activate SCIM Access Keys
      description: >-
        Re-enable specific deactivated SCIM access keys of a tenant, using a
        valid management key. This reverses a revoke that used revokeMode
        DEACTIVATE; keys that were deleted cannot be restored. The keys to
        activate must be named explicitly - call Load SCIM Access Keys to get
        their ids - so that a key deactivated because its secret leaked is never
        restored as a side effect.
      operationId: ActivateSCIMAccessKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateSCIMAccessKeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActivateSCIMAccessKeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scimManagement
      x-order: 9
      x-sdk: true
      x-meta:
        title: Activate SCIM Access Keys | Scim Management
        description: >-
          Re-enable specific deactivated SCIM access keys of a tenant, using a
          valid management key. This reverses a revoke that used revokeMode
          DEACTIVATE; keys that were deleted cannot be restored. The keys to
          activate must be named explicitly - call Load SCIM Access Keys to get
          their ids - so that a key deactivated because its secret leaked is
          never restored as a side effect.
        keywords: api, scim management
  /v1/mgmt/scim/key:
    get:
      tags: []
      summary: Load SCIM Access Keys
      description: >-
        Load the SCIM access keys of a tenant, using a valid management key.
        Returns key metadata only - the cleartext of an access key is available
        exactly once, when the key is created or rotated, and is never returned
        again.
      operationId: LoadSCIMAccessKeys
      parameters:
        - name: tenantId
          in: query
          schema:
            type: string
          required: true
        - name: ssoId
          in: query
          description: >-
            Omit to return the tenant's SCIM keys across every SSO
            configuration.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadSCIMAccessKeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scimManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: Load SCIM Access Keys | Scim Management
        description: >-
          Load the SCIM access keys of a tenant, using a valid management key.
          Returns key metadata only - the cleartext of an access key is
          available exactly once, when the key is created or rotated, and is
          never returned again.
        keywords: api, scim management
  /scim/v2/ResourceTypes:
    get:
      tags: []
      summary: Load SCIM Resource Types
      description: >-
        ### Load SCIM resource types, using a valid access key.


        This API endpoint allows administrators to load the resource types
        available within the SCIM provisioning. The response includes an array
        of the available resource types.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: LoadSCIMResourceTypes
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMResourceTypesResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 11
      x-meta:
        title: Load SCIM Resource Types | Scim Management
        description: Load SCIM resource types, using a valid access key.
        keywords: api, scim management
  /scim/v2/ServiceProviderConfig:
    get:
      tags: []
      summary: Load SCIM Service Provider Config
      description: >-
        ### Load the supported SCIM provisioning service provider configuration,
        using a valid access key.


        This API endpoint allows administrators to load the supported SCIM
        provisioning service provider configuration. The response includes
        detailed information on the applicable configurations and schemas within
        your IdP for SCIM provisioning.


        It is important to note the bearer token for SCIM API endpoints. The
        format is `ProjectId:AccessKey` the access key must be a SCIM access key
        scoped to the applicable tenant. Create one with the SCIM access key
        API, the SSO Setup Suite, or the Create SCIM Access Key flow action.


        ### See also


        - See [SCIM Management](/scim) for further details on managing SCIM
        provisioning.
      operationId: LoadSCIMServiceProviderConfig
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SCIMServiceProviderConfigResponse'
      security:
        - Descope Project ID:Access Key: []
      x-publishYaml: scimManagement
      x-order: 12
      x-meta:
        title: Load SCIM Service Provider Config | Scim Management
        description: >-
          Load the supported SCIM provisioning service provider configuration,
          using a valid access key.
        keywords: api, scim management
  /v1/mgmt/accesskey:
    get:
      tags: []
      summary: Load An Access Key
      description: >-
        ### Load an access key, using a valid management key.


        This API endpoint allows administrators to load the details of an
        existing access key.


        The response contains details of the access key including associated
        roles and tenants as well as details of the key's creation, status, and
        expiration.


        ### Next Steps


        Once you have this data, you can utilize the response to [Update an
        access key](/api/management/access-keys/update-access-key), [Activate an
        access key](/api/management/access-keys/activate-access-key),
        [Deactivate an access
        key](/api/management/access-keys/deactivate-access-key), or [Delete an
        access key](/api/management/access-keys/delete-access-key).


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: LoadAccessKey
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Load An Access Key | Access Key Management
        description: Load an access key, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/import:
    post:
      tags: []
      summary: Import Access Key
      description: >-
        Import an access key by providing its plaintext value, using a valid
        management key.
      operationId: ImportAccessKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportAccessKeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportAccessKeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 2
      x-meta:
        title: Import Access Key | Access Key Management
        description: >-
          Import an access key by providing its plaintext value, using a valid
          management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/search:
    post:
      tags: []
      summary: Search Access Keys
      description: >-
        ### Search access keys, using a valid management key.


        This API endpoint allows administrators to search for details of
        existing access keys for a given array of tenants.


        The response contains an array of details for the access keys returned
        by the search including associated roles and tenants as well as details
        of the key's creation, status, and expiration.


        ### Next Steps


        Once you have this data, you can utilize the response to [Update an
        access key](/api/management/access-keys/update-access-key), [Activate an
        access key](/api/management/access-keys/activate-access-key),
        [Deactivate an access
        key](/api/management/access-keys/deactivate-access-key), or [Delete an
        access key](/api/management/access-keys/delete-access-key).


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: SearchAccessKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchAccessKeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Search Access Keys | Access Key Management
        description: Search access keys, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/create:
    post:
      tags: []
      summary: Create Access Key
      description: >-
        ### Create an access key, using a valid management key.


        This API endpoint allows administrators to create an access key.


        During the creation of the access key, you can set the name, expiration
        time, roles and tenant:role pairs to associated with the key.


        ### Next Steps


        Once you have the access key, you can utilize it to configure external
        items such as [SCIM](/api/scimmanagement/), or use it to [exchange for a
        JWT](/api/access-keys/exchange-key).


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: CreateAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAccessKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Create Access Key | Access Key Management
        description: Create an access key, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/update:
    post:
      tags: []
      summary: Update Access Key
      description: >-
        ### Update an existing access key, using a valid management key.


        This API endpoint allows administrators to update an existing access
        key. With this endpoint, you can only update the access key's name.


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: UpdateAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Update Access Key | Access Key Management
        description: Update an existing access key, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/activate:
    post:
      tags: []
      summary: Activate Access Key
      description: >-
        ### Activate an existing access key, using a valid management key.


        This API endpoint allows administrators to activate an existing access
        key.


        ### Next Steps


        Once you have reactivated the access key, you can utilize it to
        configure external items such as [SCIM](/api/scimmanagement/), or use it
        to [exchange for a JWT](/api/access-keys/exchange-key).


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: ActivateAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Activate Access Key | Access Key Management
        description: Activate an existing access key, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/deactivate:
    post:
      tags: []
      summary: Deactivate Access Key
      description: >-
        ### Deactivate an existing access key, using a valid management key.


        This API endpoint allows administrators to deactivate an existing access
        key.


        Once the access key has been deactivated, it's access will be revoked
        until reactivated.


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: DeactivateAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Deactivate Access Key | Access Key Management
        description: Deactivate an existing access key, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/activate/batch:
    post:
      tags: []
      summary: Batch Activate Access Keys
      description: >-
        ### Activate existing access keys in batch, using a valid management
        key.


        This API endpoint allows administrators to activate existing access keys
        in batch.


        ### Next Steps


        Once you have reactivated the access key, you can utilize it to
        configure external items such as [SCIM](/api/scimmanagement/), or use it
        to [exchange for a JWT](/api/access-keys/exchange-key).


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: ActivateAccessKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyBatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Batch Activate Access Keys | Access Key Management
        description: Activate existing access keys in batch, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/deactivate/batch:
    post:
      tags: []
      summary: Batch Deactivate Access Keys
      description: >-
        ### Deactivate  existing access keys in batch, using a valid management
        key.


        This API endpoint allows administrators to deactivate existing access
        keys in batch.


        Once the access keys have been deactivated, their access will be revoked
        until reactivated.


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: DeactivateAccessKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyBatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Batch Deactivate Access Keys | Access Key Management
        description: >-
          Deactivate  existing access keys in batch, using a valid management
          key.
        keywords: api, access key management
  /v1/mgmt/accesskey/delete/batch:
    post:
      tags: []
      summary: Batch Delete Access Keys
      description: >-
        ### Delete existing access keys in batch, using a valid management key.


        This API endpoint allows administrators to delete existing access keys
        in batch.


        Once the access keys have been deleted, their access will be revoked.


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: DeleteAccessKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyBatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 9
      x-sdk: true
      x-meta:
        title: Batch Delete Access Keys | Access Key Management
        description: Delete existing access keys in batch, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/delete:
    post:
      tags: []
      summary: Delete Access Key
      description: >-
        ### Delete an existing access key, using a valid management key.


        This API endpoint allows administrators to delete an existing access
        key.


        Once the access key has been deleted, it's access will be revoked.


        ### See also


        - See [Access Key Management](/access-keys) for further details on
        managing access keys.
      operationId: DeleteAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: Delete Access Key | Access Key Management
        description: Delete an existing access key, using a valid management key.
        keywords: api, access key management
  /v1/mgmt/accesskey/rotate:
    post:
      tags: []
      summary: Rotate Access Key
      description: >-
        Rotate an access key — regenerates the secret for an existing access key
        while preserving the same key ID, name, roles, tenants, expiry and
        metadata. The new cleartext is returned exactly once and the previous
        secret stops working immediately.
      operationId: RotateAccessKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateAccessKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 12
      x-sdk: true
      x-meta:
        title: Rotate Access Key | Access Key Management
        description: >-
          Rotate an access key — regenerates the secret for an existing access
          key while preserving the same key ID, name, roles, tenants, expiry and
          metadata. The new cleartext is returned exactly once and the previous
          secret stops working immediately.
        keywords: api, access key management
  /v1/mgmt/accesskey/attribute:
    get:
      tags: []
      summary: Get access key attribute
      description: >-
        Get a single access key custom attribute definition by machine name,
        using a valid management key.
      operationId: GetAccessKeyAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.CustomAttribute'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 50
      x-meta:
        title: Get access key attribute | Access Key Management
        description: >-
          Get a single access key custom attribute definition by machine name,
          using a valid management key.
        keywords: api, access key management
    post:
      tags: []
      summary: Set access key attribute
      description: >-
        Create or update a single access key custom attribute definition (upsert
        by machine name), using a valid management key.
      operationId: SetAccessKeyAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/managementv1.CustomAttribute'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 51
      x-meta:
        title: Set access key attribute | Access Key Management
        description: >-
          Create or update a single access key custom attribute definition
          (upsert by machine name), using a valid management key.
        keywords: api, access key management
    delete:
      tags: []
      summary: Delete access key attribute
      description: >-
        Delete a single access key custom attribute definition by machine name
        (no-op if absent), using a valid management key.
      operationId: DeleteAccessKeyAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: accessKeyManagement
      x-order: 52
      x-meta:
        title: Delete access key attribute | Access Key Management
        description: >-
          Delete a single access key custom attribute definition by machine name
          (no-op if absent), using a valid management key.
        keywords: api, access key management
  /v1/mgmt/project:
    get:
      tags: []
      summary: Load Project
      description: >-
        Load the project's name, environment and tags, using a valid management
        key.
      operationId: LoadProject
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 1
      x-meta:
        title: Load Project | Project Management
        description: >-
          Load the project's name, environment and tags, using a valid
          management key.
        keywords: api, project management
    put:
      tags: []
      summary: Update Project
      description: >-
        Update the project's name, environment or tags, leaving any fields that
        aren't set in the request unchanged, using a valid management key.
      operationId: UpdateProject
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProjectRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 1
      x-meta:
        title: Update Project | Project Management
        description: >-
          Update the project's name, environment or tags, leaving any fields
          that aren't set in the request unchanged, using a valid management
          key.
        keywords: api, project management
    post:
      tags: []
      summary: Create Project
      description: >-
        Create a new project in the management key's company, using a valid
        company-level management key.
      operationId: CreateProject
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateProjectRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 1
      x-meta:
        title: Create Project | Project Management
        description: >-
          Create a new project in the management key's company, using a valid
          company-level management key.
        keywords: api, project management
    delete:
      tags: []
      summary: Delete Project
      description: Delete a project, using a valid management key.
      operationId: DeleteProject
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 2
      x-meta:
        title: Delete Project | Project Management
        description: Delete a project, using a valid management key.
        keywords: api, project management
  /v1/mgmt/project/update/name:
    post:
      tags: []
      summary: Rename Project
      description: >-
        ### Rename a project utilizing a management key.


        This endpoint allows you to update the name of a project. The body only
        requires the `name` argument.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: UpdateProjectName
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProjectNameRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Rename Project | Project Management
        description: Rename a project utilizing a management key.
        keywords: api, project management
  /v1/mgmt/project/export:
    post:
      tags: []
      summary: Export Project
      description: >-
        ### Export a project utilizing a management key.


        This endpoint is used to export a project. The response is the JSON of
        the project items.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: ExportProject
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportSnapshotRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportSnapshotResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 2
      x-meta:
        title: Export Project | Project Management
        description: Export a project utilizing a management key.
        keywords: api, project management
  /v1/mgmt/project/import:
    post:
      tags: []
      summary: Import Project
      description: >-
        ### Import a project utilizing a management key.


        This endpoint is used to import a project. The argument of `files`
        should be the output of the [export project
        endpoint](/api/management/projects/export-project)


        You can also exclude items from the export when importing by utilizing
        the flags below within the `exclude` array.


        ```

        The entire project:
          project

        Project specific items:
          project.domain
          project.trustedDomains
          project.tokenResponseMethod
          project.selfProvisioning
          project.rotateJwt
          project.cookiepolicy
          project.refreshTokenExpiration
          project.stepupTokenExpiration
          project.sessionTokenExpiration
          project.keySessionTokenExpiration
          project.inviteUrl
          project.inviteEmail
          project.inviteSms
          project.inviteMagicLink
          project.conformanceJwt
          project.inactivity

        Auth Methods, Flows, styles, etc:
          magicLink
          enchantedLink
          embeddedLink
          otp
          totp
          sso
          oauth
          webauthn
          password
          styles
          flows
          connectors
          authorization
          attributes
          ssoApps
        ```


        You can also import secrets for connectors and OAuth Providers using the
        `inputSecrets` argument.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: ImportProject
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportSnapshotRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 3
      x-meta:
        title: Import Project | Project Management
        description: Import a project utilizing a management key.
        keywords: api, project management
  /v1/mgmt/project/clone:
    post:
      tags: []
      summary: Clone Project
      description: >-
        ### Clone a project utilizing a management key.


        This endpoint allows you to clone the current project, including its
        settings and configurations.


        _Note: This requires a pro or enterprise tier licenses. Users, tenants
        and access keys are not cloned._


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: CloneProject
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloneProjectRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloneProjectResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Clone Project | Project Management
        description: Clone a project utilizing a management key.
        keywords: api, project management
  /v1/mgmt/project/delete:
    post:
      tags: []
      summary: Delete Project
      description: >-
        ### Delete a project utilizing a management key.


        This endpoint allows you to delete a project. This action is
        irreversible, use with caution.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: DeleteProject
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Delete Project | Project Management
        description: Delete a project utilizing a management key.
        keywords: api, project management
  /v1/mgmt/project/clone/async:
    post:
      tags: []
      summary: Clone Project (Async)
      description: >-
        Clone a project, including its settings and configurations. Users,
        tenants and access keys are not cloned. This API is asynchronous and
        will return a unique ID that can be used to track the progress of the
        clone operation.
      operationId: CloneProjectAsync
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CloneProjectRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloneProjectAsyncResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 6
      x-meta:
        title: Clone Project (Async) | Project Management
        description: >-
          Clone a project, including its settings and configurations. Users,
          tenants and access keys are not cloned. This API is asynchronous and
          will return a unique ID that can be used to track the progress of the
          clone operation.
        keywords: api, project management
  /v1/mgmt/project/clone/async/{processId}:
    get:
      tags: []
      summary: Get Clone Project Process
      description: >-
        Get the status of an asynchronous clone project process. This returns an
        object describing the new project details or an error if the process
        failed, using a valid management key.
      operationId: GetCloneProjectProcess
      parameters:
        - name: processId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCloneProjectProcessResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 6
      x-meta:
        title: Get Clone Project Process | Project Management
        description: >-
          Get the status of an asynchronous clone project process. This returns
          an object describing the new project details or an error if the
          process failed, using a valid management key.
        keywords: api, project management
  /v1/mgmt/project/snapshot/export:
    post:
      tags: []
      summary: Export Project Snapshot
      description: >-
        ### Export a project snapshot utilizing a management key.


        This endpoint allows you to export a snapshot of the current project
        state.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: ExportSnapshot
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportSnapshotRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportSnapshotResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Export Project Snapshot | Project Management
        description: Export a project snapshot utilizing a management key.
        keywords: api, project management
  /v1/mgmt/project/snapshot/import:
    post:
      tags: []
      summary: Import Project Snapshot
      description: >-
        ### Import a project snapshot utilizing a management key.


        This endpoint allows you to import a previously exported project
        snapshot.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: ImportSnapshot
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportSnapshotRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Import Project Snapshot | Project Management
        description: Import a project snapshot utilizing a management key.
        keywords: api, project management
  /v1/mgmt/localization/messaging/export:
    post:
      tags: []
      summary: Export Messaging Localization
      description: Export messaging localization, using a valid management key.
      operationId: ExportMessagingTemplateLocalization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportMessagingLocalizationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportMessagingLocalizationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 8
      x-meta:
        title: Export Messaging Localization | Project Management
        description: Export messaging localization, using a valid management key.
        keywords: api, project management
  /v1/mgmt/project/snapshot/validate:
    post:
      tags: []
      summary: Validate Project Snapshot
      description: >-
        ### Validate a project snapshot utilizing a management key.


        This endpoint allows you to validate a project snapshot before importing
        it.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: ValidateSnapshot
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportSnapshotRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateSnapshotResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Validate Project Snapshot | Project Management
        description: Validate a project snapshot utilizing a management key.
        keywords: api, project management
  /v1/mgmt/localization/messaging/import:
    post:
      tags: []
      summary: Import Messaging Localization
      description: Import messaging localization, using a valid management key.
      operationId: ImportMessagingLocalization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportMessagingLocalizationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportMessagingLocalizationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 9
      x-meta:
        title: Import Messaging Localization | Project Management
        description: Import messaging localization, using a valid management key.
        keywords: api, project management
  /v1/mgmt/project/update/tags:
    post:
      tags: []
      summary: Update Project Tags
      description: >-
        ### Update project tags utilizing a management key.


        This endpoint allows you to update the tags associated with a project.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: UpdateProjectTags
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProjectTagsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 9
      x-sdk: true
      x-meta:
        title: Update Project Tags | Project Management
        description: Update project tags utilizing a management key.
        keywords: api, project management
  /v1/mgmt/project/settings:
    get:
      tags: []
      summary: Get project settings
      description: Get the project's settings, using a valid management key.
      operationId: GetProjectSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 10
      x-meta:
        title: Get project settings | Project Management
        description: Get the project's settings, using a valid management key.
        keywords: api, project management
    post:
      tags: []
      summary: Set project settings
      description: Update the project's settings, using a valid management key.
      operationId: SetProjectSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 11
      x-meta:
        title: Set project settings | Project Management
        description: Update the project's settings, using a valid management key.
        keywords: api, project management
  /v1/mgmt/projects/list:
    post:
      tags: []
      summary: List Projects
      description: >-
        ### List all projects utilizing a management key.


        This endpoint allows you to list all projects in your account.


        ### See Also

        - See [Managing Environments](/customize/environments/) for details
        about managing environments.
      operationId: ListProject
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListProjectsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListProjectsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: List Projects | Project Management
        description: List all projects utilizing a management key.
        keywords: api, project management
  /v1/mgmt/adminportal/settings:
    get:
      tags: []
      summary: Get admin portal settings
      description: Get the project's admin portal settings, using a valid management key.
      operationId: GetAdminPortalSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdminPortalSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 12
      x-meta:
        title: Get admin portal settings | Project Management
        description: Get the project's admin portal settings, using a valid management key.
        keywords: api, project management
    post:
      tags: []
      summary: Set admin portal settings
      description: >-
        Update the project's admin portal settings, using a valid management
        key.
      operationId: SetAdminPortalSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdminPortalSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 13
      x-meta:
        title: Set admin portal settings | Project Management
        description: >-
          Update the project's admin portal settings, using a valid management
          key.
        keywords: api, project management
  /v1/mgmt/project/oidc/settings:
    get:
      tags: []
      summary: Get project OIDC settings
      description: Get the project OIDC settings, using a valid management key.
      operationId: GetProjectOIDCSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectOIDCSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 14
      x-meta:
        title: Get project OIDC settings | Project Management
        description: Get the project OIDC settings, using a valid management key.
        keywords: api, project management
    post:
      tags: []
      summary: Update project OIDC settings
      description: >-
        Update the project OIDC settings, using a valid management key. Fields
        that are not sent keep their current value.
      operationId: UpdateProjectOIDCSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectOIDCSettings'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProjectOIDCSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: projectManagement
      x-order: 15
      x-meta:
        title: Update project OIDC settings | Project Management
        description: >-
          Update the project OIDC settings, using a valid management key. Fields
          that are not sent keep their current value.
        keywords: api, project management
  /v1/mgmt/agentic/governance/settings:
    get:
      tags: []
      summary: Get governance settings
      description: >-
        Load the project's Agentic Governance Suite settings, using a valid
        management key. Works without the Agentic Governance Suite in the
        company license, and returns the stored settings or the defaults.
      operationId: GetGovernanceSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgenticGovernanceSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: agenticGovernanceManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Get governance settings | Agentic Governance Management
        description: >-
          Load the project's Agentic Governance Suite settings, using a valid
          management key. Works without the Agentic Governance Suite in the
          company license, and returns the stored settings or the defaults.
        keywords: api, agentic governance management
    post:
      tags: []
      summary: Update governance settings
      description: >-
        Update the project's Agentic Governance Suite settings, using a valid
        management key. Only the fields present in the request are changed.
        Requires the Agentic Governance Suite in the company license, except a
        request that changes nothing, which succeeds without it.
      operationId: SetGovernanceSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgenticGovernanceSettings'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgenticGovernanceSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: agenticGovernanceManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update governance settings | Agentic Governance Management
        description: >-
          Update the project's Agentic Governance Suite settings, using a valid
          management key. Only the fields present in the request are changed.
          Requires the Agentic Governance Suite in the company license, except a
          request that changes nothing, which succeeds without it.
        keywords: api, agentic governance management
  /v1/mgmt/agentic/governance/requests/search:
    post:
      tags: []
      summary: Search governance access requests
      description: >-
        Search the project's Agentic Governance Suite access requests, with
        filtering, sorting and paging, using a valid management key. Requires
        the Agentic Governance Suite in the company license.
      operationId: SearchGovernanceAccessRequests
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchGovernanceAccessRequestsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchGovernanceAccessRequestsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: agenticGovernanceManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Search governance access requests | Agentic Governance Management
        description: >-
          Search the project's Agentic Governance Suite access requests, with
          filtering, sorting and paging, using a valid management key. Requires
          the Agentic Governance Suite in the company license.
        keywords: api, agentic governance management
  /v1/mgmt/agentic/governance/requests/get:
    post:
      tags: []
      summary: Get governance access request
      description: >-
        Load a single Agentic Governance Suite access request by id, using a
        valid management key. Requires the Agentic Governance Suite in the
        company license.
      operationId: GetGovernanceAccessRequest
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetGovernanceAccessRequestRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GovernanceAccessRequest'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: agenticGovernanceManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Get governance access request | Agentic Governance Management
        description: >-
          Load a single Agentic Governance Suite access request by id, using a
          valid management key. Requires the Agentic Governance Suite in the
          company license.
        keywords: api, agentic governance management
  /v1/mgmt/agentic/governance/requests/resolve:
    post:
      tags: []
      summary: Resolve governance access request
      description: >-
        Approve or deny a pending Agentic Governance Suite access request, using
        a valid management key. Approving provisions the requested agent client.
        The resolution is attributed to the Management API. Requires the Agentic
        Governance Suite in the company license.
      operationId: ResolveGovernanceAccessRequest
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveGovernanceAccessRequestRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GovernanceAccessRequest'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: agenticGovernanceManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Resolve governance access request | Agentic Governance Management
        description: >-
          Approve or deny a pending Agentic Governance Suite access request,
          using a valid management key. Approving provisions the requested agent
          client. The resolution is attributed to the Management API. Requires
          the Agentic Governance Suite in the company license.
        keywords: api, agentic governance management
  /v1/mgmt/agentic/governance/requests/create:
    post:
      tags: []
      summary: Create governance access request
      description: >-
        Create an Agentic Governance Suite access request to provision an agent
        client on behalf of a developer, using a valid management key. The
        requestorUserId is required and must be an existing, active console user
        in your company; the requestor name is taken from that user's record
        (display name, else email, else the user id), and any requestorName sent
        is ignored. When auto-approval is on and the current policies already
        permit the request, it is approved and the client provisioned
        immediately. Requires the Agentic Governance Suite in the company
        license, and fails while the suite is disabled.
      operationId: CreateGovernanceAccessRequest
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateGovernanceAccessRequestRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GovernanceAccessRequest'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: agenticGovernanceManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Create governance access request | Agentic Governance Management
        description: >-
          Create an Agentic Governance Suite access request to provision an
          agent client on behalf of a developer, using a valid management key.
          The requestorUserId is required and must be an existing, active
          console user in your company; the requestor name is taken from that
          user's record (display name, else email, else the user id), and any
          requestorName sent is ignored. When auto-approval is on and the
          current policies already permit the request, it is approved and the
          client provisioned immediately. Requires the Agentic Governance Suite
          in the company license, and fails while the suite is disabled.
        keywords: api, agentic governance management
  /v1/mgmt/thirdparty/app/create:
    post:
      tags: []
      summary: Create third party application
      description: Create a new third party application, using a valid management key.
      operationId: CreateThirdPartyApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateThirdPartyApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateThirdPartyApplicationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create third party application | Third Party Apps Management
        description: Create a new third party application, using a valid management key.
        keywords: api, third party apps management
  /v2/mgmt/thirdparty/app/create:
    post:
      tags: []
      summary: Create third party application (v2)
      description: >-
        Create a new third party application using the structured scope-claim
        mapping model, using a valid management key. The legacy attributesScopes
        field is ignored.
      operationId: CreateThirdPartyApplicationV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateThirdPartyApplicationV2Request'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateThirdPartyApplicationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create third party application (v2) | Third Party Apps Management
        description: >-
          Create a new third party application using the structured scope-claim
          mapping model, using a valid management key. The legacy
          attributesScopes field is ignored.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/update:
    post:
      tags: []
      summary: Update third party application
      description: Update a third party application, using a valid management key.
      operationId: UpdateThirdPartyApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateThirdPartyApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update third party application | Third Party Apps Management
        description: Update a third party application, using a valid management key.
        keywords: api, third party apps management
  /v2/mgmt/thirdparty/app/patch:
    post:
      tags: []
      summary: Patch third party application (v2)
      description: >-
        Patch a third party application using the structured scope-claim mapping
        model, using a valid management key. Only the fields present in the
        request change; the legacy attributesScopes field is cleared.
      operationId: PatchThirdPartyApplicationV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchThirdPartyApplicationV2Request'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Patch third party application (v2) | Third Party Apps Management
        description: >-
          Patch a third party application using the structured scope-claim
          mapping model, using a valid management key. Only the fields present
          in the request change; the legacy attributesScopes field is cleared.
        keywords: api, third party apps management
  /v2/mgmt/thirdparty/app/update:
    post:
      tags: []
      summary: Update third party application (v2)
      description: >-
        Update a third party application using the structured scope-claim
        mapping model, using a valid management key. The legacy attributesScopes
        field is ignored and cleared.
      operationId: UpdateThirdPartyApplicationV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateThirdPartyApplicationV2Request'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update third party application (v2) | Third Party Apps Management
        description: >-
          Update a third party application using the structured scope-claim
          mapping model, using a valid management key. The legacy
          attributesScopes field is ignored and cleared.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/patch:
    post:
      tags: []
      summary: Patch third party application
      description: Patch a third party application, using a valid management key.
      operationId: PatchThirdPartyApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchThirdPartyApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Patch third party application | Third Party Apps Management
        description: Patch a third party application, using a valid management key.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/load:
    get:
      tags: []
      summary: Load third party application by ID
      description: >-
        Loads project third party application by id, using a valid management
        key.
      operationId: LoadThirdPartyApplication
      parameters:
        - name: id
          in: query
          schema:
            type: string
        - name: clientId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadThirdPartyApplicationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Load third party application by ID | Third Party Apps Management
        description: >-
          Loads project third party application by id, using a valid management
          key.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/apps/load:
    get:
      tags: []
      summary: Load All third party applications
      description: >-
        Loads all project third party applications, using a valid management
        key.
      operationId: LoadAllThirdPartyApplications
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            format: int32
        - name: limit
          in: query
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllThirdPartyApplicationsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Load All third party applications | Third Party Apps Management
        description: >-
          Loads all project third party applications, using a valid management
          key.
        keywords: api, third party apps management
  /v2/mgmt/thirdparty/app/load:
    get:
      tags: []
      summary: Load third party application by ID (v2)
      description: >-
        Loads a third party application by id in the structured scope-claim
        mapping model, using a valid management key. Legacy attributesScopes are
        converted to scopeClaimMapping and returned empty.
      operationId: LoadThirdPartyApplicationV2
      parameters:
        - name: id
          in: query
          schema:
            type: string
        - name: clientId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadThirdPartyApplicationV2Response'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Load third party application by ID (v2) | Third Party Apps Management
        description: >-
          Loads a third party application by id in the structured scope-claim
          mapping model, using a valid management key. Legacy attributesScopes
          are converted to scopeClaimMapping and returned empty.
        keywords: api, third party apps management
  /v2/mgmt/thirdparty/apps/load:
    post:
      tags: []
      summary: Load all third party applications (v2)
      description: >-
        Loads all third party applications in the structured scope-claim mapping
        model, using a valid management key. Legacy attributesScopes are
        converted to scopeClaimMapping and returned empty.
      operationId: LoadAllThirdPartyApplicationsV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadAllThirdPartyApplicationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllThirdPartyApplicationsV2Response'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Load all third party applications (v2) | Third Party Apps Management
        description: >-
          Loads all third party applications in the structured scope-claim
          mapping model, using a valid management key. Legacy attributesScopes
          are converted to scopeClaimMapping and returned empty.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/secret:
    get:
      tags: []
      summary: Get third party application secret
      description: Get a third party application secret, using a valid management key.
      operationId: GetThirdPartyApplicationSecret
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
        - name: secretName
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetThirdPartyApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Get third party application secret | Third Party Apps Management
        description: Get a third party application secret, using a valid management key.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/rotate:
    post:
      tags: []
      summary: Rotate third party application secret by application ID
      description: >-
        Rotate the project third party application secret by the application id,
        using a valid management key.
      operationId: RotateThirdPartyApplicationSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateThirdPartyApplicationSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateThirdPartyApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: >-
          Rotate third party application secret by application ID | Third Party
          Apps Management
        description: >-
          Rotate the project third party application secret by the application
          id, using a valid management key.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/consents/search:
    post:
      tags: []
      summary: Search third party application consents
      description: >-
        Search OAuth user consents for [Inbound
        Apps](/identity-federation/inbound-apps). Filter by `appId`, `userId`,
        `consentId`, or `tenantId`.


        For [agentic identities](/agentic-identity-hub/core-components/agents)
        (MCP server authorizations), use [Search agentic
        identities](/api/management/agentic-identity-hub/search-agentic-identities)
        instead — it returns agent name, resource ID, and client ID alongside
        each consent.
      operationId: SearchThirdPartyApplicationConsents
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchThirdPartyApplicationConsentsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SearchThirdPartyApplicationConsentsResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Search third party application consents | Third Party Apps Management
        description: >-
          Search OAuth user consents for [Inbound
          Apps](/identity-federation/inbound-apps). Filter by `appId`, `userId`,
          `consentId`, or `tenantId`.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/consents/delete:
    post:
      tags: []
      summary: Delete third party application consents
      description: >-
        Delete OAuth user consents for [Inbound
        Apps](/identity-federation/inbound-apps). Provide `consentIds`, or
        filter by `appId`, `userIds`, and optional `tenantId`.


        To revoke [agentic
        identities](/agentic-identity-hub/core-components/agents), use [Revoke
        agentic
        identities](/api/management/agentic-identity-hub/revoke-agentic-identities)
        instead — it scopes deletion to agentic consents and supports `clientId`
        and `resourceId` filters.
      operationId: DeleteThirdPartyApplicationConsents
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteThirdPartyApplicationConsentsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteThirdPartyApplicationConsentsResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 9
      x-sdk: true
      x-meta:
        title: Delete third party application consents | Third Party Apps Management
        description: >-
          Delete OAuth user consents for [Inbound
          Apps](/identity-federation/inbound-apps). Provide `consentIds`, or
          filter by `appId`, `userIds`, and optional `tenantId`.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/secret/add:
    post:
      tags: []
      summary: Add a named third party application secret
      description: >-
        Add a new named client secret to a third party application, using a
        valid management key. Returns the new secret metadata and its cleartext
        value (shown only once).
      operationId: AddThirdPartyApplicationSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddThirdPartyApplicationSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddThirdPartyApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: >-
          Add a named third party application secret | Third Party Apps
          Management
        description: >-
          Add a new named client secret to a third party application, using a
          valid management key. Returns the new secret metadata and its
          cleartext value (shown only once).
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/consents/delete/tenant:
    post:
      tags: []
      summary: Delete third party application consents by tenant
      description: >-
        Delete all OAuth user consents for an [Inbound
        App](/identity-federation/inbound-apps) within a tenant. Provide
        `tenantId` and optional `appId` or `consentIds`.
      operationId: DeleteThirdPartyApplicationTenantConsents
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/DeleteThirdPartyApplicationTenantConsentsRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteThirdPartyApplicationConsentsResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: >-
          Delete third party application consents by tenant | Third Party Apps
          Management
        description: >-
          Delete all OAuth user consents for an [Inbound
          App](/identity-federation/inbound-apps) within a tenant. Provide
          `tenantId` and optional `appId` or `consentIds`.
        keywords: api, third party apps management
  /v1/mgmt/agentic/identities/search:
    post:
      tags: []
      summary: Search agentic identities
      description: >-
        List [agentic identities](/agentic-identity-hub/core-components/agents)
        — authorization records that bind an OAuth client to a user, tenant, or
        autonomous client. Filter by `clientId`, `resourceId`, `userId`, or
        `consentId`. Returns consent details, agent name, resource ID, and
        client ID for each identity.


        Use `page` (zero-based) and `limit` for pagination.
      operationId: SearchAgenticIdentities
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchAgenticIdentitiesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAgenticIdentitiesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 11
      x-sdk: true
      x-meta:
        title: Search agentic identities | Third Party Apps Management
        description: >-
          List [agentic
          identities](/agentic-identity-hub/core-components/agents) —
          authorization records that bind an OAuth client to a user, tenant, or
          autonomous client. Filter by `clientId`, `resourceId`, `userId`, or
          `consentId`. Returns consent details, agent name, resource ID, and
          client ID for each identity.
        keywords: api, third party apps management
  /v1/mgmt/agentic/identities/revoke:
    post:
      tags: []
      summary: Revoke agentic identities
      description: >-
        Revoke agentic identities and invalidate their consents — the same
        operation as [revoking access in the
        Console](/agentic-identity-hub/core-components/agents#revoking-access).
        Combine filters to narrow scope:


        - `clientId` + `userId` — one user's grant to a specific agent

        - `consentId` + `userId` — a specific consent for a user

        - `resourceId` + `userId` — all of a user's grants on one MCP server
        [Resource](/resources)

        - `userId` alone — all agentic identities for that user across every MCP
        server


        Returns the number of identities revoked in `revoked`.
      operationId: RevokeAgenticIdentities
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeAgenticIdentitiesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeAgenticIdentitiesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 12
      x-sdk: true
      x-meta:
        title: Revoke agentic identities | Third Party Apps Management
        description: >-
          Revoke agentic identities and invalidate their consents — the same
          operation as [revoking access in the
          Console](/agentic-identity-hub/core-components/agents#revoking-access).
          Combine filters to narrow scope:
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/consents/create:
    post:
      tags: []
      summary: Create third party application consent
      description: >-
        Create a user consent for a third party application, using a valid
        management key. Use it to migrate consents a user already granted
        elsewhere, so the user is not asked to consent again. The scopes are
        added to any existing consent of the user for the same application and
        tenant. The consent is validated like one granted on the consent screen:
        every scope must be defined by the application, the mandatory scopes of
        the application must be included (all of its scopes when it does not
        allow partial scopes), and the user must hold the roles and permissions
        the scopes map to. Consents of agentic applications cannot be created.
      operationId: CreateThirdPartyApplicationConsent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateThirdPartyApplicationConsentRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/CreateThirdPartyApplicationConsentResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 12
      x-sdk: true
      x-meta:
        title: Create third party application consent | Third Party Apps Management
        description: >-
          Create a user consent for a third party application, using a valid
          management key. Use it to migrate consents a user already granted
          elsewhere, so the user is not asked to consent again. The scopes are
          added to any existing consent of the user for the same application and
          tenant. The consent is validated like one granted on the consent
          screen: every scope must be defined by the application, the mandatory
          scopes of the application must be included (all of its scopes when it
          does not allow partial scopes), and the user must hold the roles and
          permissions the scopes map to. Consents of agentic applications cannot
          be created.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/delete:
    post:
      tags: []
      summary: Delete third party application
      description: Delete a third party application, using a valid management key.
      operationId: DeleteThirdPartyApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteThirdPartyApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 13
      x-sdk: true
      x-meta:
        title: Delete third party application | Third Party Apps Management
        description: Delete a third party application, using a valid management key.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/secret/revoke:
    post:
      tags: []
      summary: Revoke a named third party application secret
      description: >-
        Revoke a named client secret of a third party application, using a valid
        management key. Returns the remaining secret metadata.
      operationId: RevokeThirdPartyApplicationSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeThirdPartyApplicationSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeThirdPartyApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 13
      x-sdk: true
      x-meta:
        title: >-
          Revoke a named third party application secret | Third Party Apps
          Management
        description: >-
          Revoke a named client secret of a third party application, using a
          valid management key. Returns the remaining secret metadata.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/delete/batch:
    post:
      tags: []
      summary: Batch delete third party applications
      description: >-
        Delete multiple third party applications in batch, using a valid
        management key.
      operationId: DeleteThirdPartyApplications
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteThirdPartyApplicationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 14
      x-sdk: true
      x-meta:
        title: Batch delete third party applications | Third Party Apps Management
        description: >-
          Delete multiple third party applications in batch, using a valid
          management key.
        keywords: api, third party apps management
  /v1/mgmt/thirdparty/app/attribute:
    get:
      tags: []
      summary: Get inbound app attribute
      description: >-
        Get a single inbound app custom attribute definition by machine name,
        using a valid management key.
      operationId: GetInboundAppAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.CustomAttribute'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 50
      x-meta:
        title: Get inbound app attribute | Third Party Apps Management
        description: >-
          Get a single inbound app custom attribute definition by machine name,
          using a valid management key.
        keywords: api, third party apps management
    post:
      tags: []
      summary: Set inbound app attribute
      description: >-
        Create or update a single inbound app custom attribute definition
        (upsert by machine name), using a valid management key. Each inbound app
        sets its own values for these attributes, which JWT templates read as
        {{app.customAttributes.<name>}}.
      operationId: SetInboundAppAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/managementv1.CustomAttribute'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 51
      x-meta:
        title: Set inbound app attribute | Third Party Apps Management
        description: >-
          Create or update a single inbound app custom attribute definition
          (upsert by machine name), using a valid management key. Each inbound
          app sets its own values for these attributes, which JWT templates read
          as {{app.customAttributes.<name>}}.
        keywords: api, third party apps management
    delete:
      tags: []
      summary: Delete inbound app attribute
      description: >-
        Delete a single inbound app custom attribute definition by machine name,
        using a valid management key.
      operationId: DeleteInboundAppAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: thirdPartyAppsManagement
      x-order: 52
      x-meta:
        title: Delete inbound app attribute | Third Party Apps Management
        description: >-
          Delete a single inbound app custom attribute definition by machine
          name, using a valid management key.
        keywords: api, third party apps management
  /v1/mgmt/audit/search:
    post:
      tags: []
      summary: Search Audit
      description: >-
        ### Search the audit log, using a valid management key.


        This API endpoint allows you to search the audit log utilizing various
        search parameters and returns the results in JSON format.
      operationId: SearchAudit
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchAuditRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAuditResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: auditManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Search Audit | Audit Management
        description: Search the audit log, using a valid management key.
        keywords: api, audit management
  /v1/mgmt/audit/event:
    post:
      tags: []
      summary: Create Audit Event
      description: >-
        ### Create an audit log event, using a valid management key.


        This API endpoint allows you to create an audit log utilizing various
        parameters and returns the results in JSON format.
      operationId: CreateAuditEvent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAuditRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: auditManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Create Audit Event | Audit Management
        description: Create an audit log event, using a valid management key.
        keywords: api, audit management
  /v1/mgmt/analytics/search:
    post:
      tags: []
      summary: Search Analytics
      description: >-
        Search analytics (summarized) data grouped by time periods, using a
        valid management key.
      operationId: SearchAnalytics
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchAnalyticsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAnalyticsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: auditManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Search Analytics | Audit Management
        description: >-
          Search analytics (summarized) data grouped by time periods, using a
          valid management key.
        keywords: api, audit management
  /v1/mgmt/user:
    get:
      tags: []
      summary: Load User
      description: >-
        ### Load a user's data, using a valid management key.


        This API endpoint takes the user's loginId and then returns details of a
        user utilizing a valid management key. The response includes the
        following; however, there are additional items in the response that you
        can see below by expanding the response 200 OK.

        - loginIds

        - userId

        - name

        - email

        - phone

        - verified settings (phone, email)

        - Tenant configurations - which tenantIds, which roleNames


        _Note: Suppose you frequently load a user for a specific user detail,
        such as their email address or a

        particular custom attribute. In that case, you can save execution time
        and additional API/SDK calls to load

        the user by adding the items to the custom claim. For details on adding
        items to the custom claims, see

        [this
        documentation](/security-best-practices/custom-claims#using-custom-claims-within-descope-flows)._


        _Note: If you have access to all federated applications, the list will
        return as an empty array. Descope allows you to restrict which apps each
        user has access to, but by default gives access to all applications._


        ### Next Steps


        Once you have this data, you can utilize the response to prepare the
        payload to perform an [Update](/api/management/users/update-user) on the
        user.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: LoadUser
      parameters:
        - name: loginId
          in: query
          schema:
            type: string
        - name: userId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Load User | User Management
        description: Load a user's data, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/create/test:
    post:
      tags: []
      summary: Create Test User
      description: >-
        Create a test user, using a valid management key. Configured user custom
        attribute defaults are applied to omitted keys on new users; explicitly
        supplied values take precedence. Existing users are not changed.
      operationId: CreateTestUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create Test User | User Management
        description: >-
          Create a test user, using a valid management key. Configured user
          custom attribute defaults are applied to omitted keys on new users;
          explicitly supplied values take precedence. Existing users are not
          changed.
        keywords: api, user management
  /v1/mgmt/user/customattributes:
    get:
      tags:
        - Custom Attributes
      summary: Get Available Custom Attributes
      description: >-
        ### Get available custom attributes to configure on users within a
        project, using a valid management key.


        This API endpoint will return the available user custom attributes
        within a project.


        ### See also


        - See [Custom Attributes](/manage/users#custom-user-attributes) for
        further details on custom user attributes

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: UserCustomAttributes
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Get Available Custom Attributes | User Management
        description: >-
          Get available custom attributes to configure on users within a
          project, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/customattribute/create:
    post:
      tags:
        - Custom Attributes
      summary: Create a Custom Attributes
      description: >-
        ### Create a custom attributes to configure on users within a project,
        using a valid management key.


        This API endpoint will create a custom attribute within a project.


        ### See also


        - See [Custom Attributes](/manage/users#custom-user-attributes) for
        further details on custom user attributes

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: CreateUserCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Create a Custom Attributes | User Management
        description: >-
          Create a custom attributes to configure on users within a project,
          using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/provider/token:
    get:
      tags: []
      summary: Get User Provider Token
      description: >-
        ### Get an existing user's provider token, using a valid management key.


        This API endpoint will loads the user's access token generated by the
        OAuth/OIDC provider, using a valid management key. When querying for
        OAuth providers, this only applies when utilizing your own account with
        the provider and have selected `Manage tokens from provider` selected
        under the [social auth
        methods](https://app.descope.com/settings/authentication/social).


        ### Query Params


        - `loginId` - The loginId of the user you want to get the provider token
        for.

        - `provider` - The provider you want to get the token for.

        -  `withRefreshToken (optional)` - set to true to also return the
        refresh token.

        - `forceRefresh (optional)` - set to true to force a refresh of the
        token.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Provider
        Options](/auth-methods/oauth#social-login-oauth-providers) for a the out
        of the box list of providers.
      operationId: GetUserProviderToken
      parameters:
        - name: loginId
          in: query
          schema:
            type: string
          required: true
        - name: provider
          in: query
          schema:
            type: string
          required: true
        - name: withRefreshToken
          in: query
          schema:
            type: boolean
        - name: forceRefresh
          in: query
          schema:
            type: boolean
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProviderTokenResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Get User Provider Token | User Management
        description: Get an existing user's provider token, using a valid management key.
        keywords: api, user management
  /v1/mgmt/users/load:
    post:
      tags: []
      summary: Load Users
      description: Load users by their IDs, using a valid management key.
      operationId: LoadUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadUsersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Load Users | User Management
        description: Load users by their IDs, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/customattribute/delete:
    post:
      tags:
        - Custom Attributes
      summary: Delete a Custom Attributes
      description: >-
        ### Delete a custom attributes to configure on users within a project,
        using a valid management key.


        This API endpoint will delete a custom attribute within a project.


        ### See also


        - See [Custom Attributes](/manage/users#custom-user-attributes) for
        further details on custom user attributes

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: DeleteUserCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Delete a Custom Attributes | User Management
        description: >-
          Delete a custom attributes to configure on users within a project,
          using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/search:
    post:
      tags: []
      summary: Search Users
      description: Search users, using a valid management key.
      operationId: SearchUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchUsersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsersResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 3
      x-meta:
        title: Search Users | User Management
        description: Search users, using a valid management key.
        keywords: api, user management
  /v2/mgmt/user/search/test:
    post:
      tags: []
      summary: Search test Users
      description: Search test users, using a valid management key.
      operationId: SearchTestUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchUsersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Search test Users | User Management
        description: Search test users, using a valid management key.
        keywords: api, user management
  /v2/mgmt/user/search:
    post:
      tags: []
      summary: Search Users
      description: >-
        ### Search for users, using a valid management key.


        This API endpoint will search for users utilizing a valid management
        key. Searches can be defined with any combination of roles or tenants.
        You can also only send the request with an empty payload to return all
        users.


        The response will include the following details on all users within an
        array of objects:

        - loginIds

        - userId

        - name

        - email

        - phone

        - verified settings (phone, email)

        - Tenant configurations (tenantIds, roleNames)


        ### Next Steps


        You can then parse through the response in order to find any users which
        you may need to delete, update, etc.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: SearchUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchUsersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Search Users | User Management
        description: Search for users, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/history: {}
  /v1/mgmt/user/patch/batch:
    patch:
      tags: []
      summary: Patch Users Batch
      description: Patch users in batch, using a valid management key.
      operationId: PatchUserBatch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchUserBatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatchUserBatchResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 5.1
      x-sdk: true
      x-meta:
        title: Patch Users Batch | User Management
        description: Patch users in batch, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/create:
    post:
      tags: []
      summary: Create User
      description: >-
        ### Create a new user, using a valid management key.


        This API endpoint will create a new user utilizing a valid management
        key.


        This API endpoint allows you to configure all aspects of a user:

        - loginId

        - email

        - phone

        - verified settings (phone, email) - one must be set to true

        - displayName

        - roleNames

        - Tenant configurations - which tenantIds, which roleNames. The
        userTenants can include multiple items

        Ex:

        ```

        "userTenants": [

        {
          "tenantId": "T2IMjmRfYTQHlbaastz3im59ERS3",
          "roleNames": [
            "Test"
          ]
        },

        {
          "tenantId": "T2Igau6dX1R6SkomtFCdBLrc3r67",
          "roleNames": [
            "Test"
          ]
        }

        ```


        Additionally, you can create a user with multiple login IDs by passing
        an array of loginIds in string format within the `additionalIdentifiers`
        key.


        ### Next Steps


        Once the user is created, the user can then login utilizing any sign-in
        api supported. This will then switch the user from invited to active.


        ### See also


        - See [Manage User](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: CreateUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Create User | User Management
        description: Create a new user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/create/batch:
    post:
      tags: []
      summary: Batch Create Users
      description: >-
        ### Batch Create Users, using a valid management key.


        This API endpoint will batch create new users utilizing a valid
        management key.


        This API endpoint allows you to configure all aspects of a user:

        - loginId

        - email

        - phone

        - verified settings (phone, email) - one must be set to true

        - displayName

        - roleNames

        - Tenant configurations - which tenantIds, which roleNames. The
        userTenants can include multiple items

        Ex:

        ```

        "userTenants": [

        {
          "tenantId": "T2IMjmRfYTQHlbaastz3im59ERS3",
          "roleNames": [
            "Test"
          ]
        },

        {
          "tenantId": "T2Igau6dX1R6SkomtFCdBLrc3r67",
          "roleNames": [
            "Test"
          ]
        }

        ```


        Additionally, you can create a user with multiple login IDs by passing
        an array of loginIds in string format within the `additionalIdentifiers`
        key.


        You can also decide whether to invite the users, configure the
        inviteUrl, and whether to send invites via email or SMS.


        When importing with hashed passwords, see [this
        guide](/migrate/custom#importing-passwords) for further detailed
        configuration of password hash formats.


        ### Next Steps


        Once the user is created, the user can then login utilizing any sign-in
        api supported. This will then switch the user from invited to active.


        ### See also


        - See [Manage User](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: CreateUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUsersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateUsersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Batch Create Users | User Management
        description: Batch Create Users, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update:
    post:
      tags: []
      summary: Update User
      description: >-
        ### Updates a user's details, using a valid management key.


        This API endpoint will update a user's details of a user utilizing a
        valid management key.


        It is important to understand the update will take the configurations
        for the user provided and will overwrite all user settings. This means
        that if the user currently has email and phone, but the update only
        includes email, the phone and other non-provided configurations will be
        removed.


        This API endpoint will remove any details that are not provided. It is
        preferred to use other updates supported by the API, such as the
        following options:

        - [Update User Status](/api/management/users/update-user-status)

        - [Update User Email](/api/management/users/update-user-email)

        - [Update User Phone](/api/management/users/update-user-phone)

        - [Update User Display
        Name](/api/management/users/update-user-display-name)

        - [Update User Add Tenant](/api/management/users/update-user-add-tenant)

        - [Update User Remove
        Tenant](/api/management/users/update-user-remove-tenant)

        - [Update User Add Role](/api/management/users/update-user-add-roles)

        - [Update User Remove
        Role](/api/management/users/update-user-remove-roles)


        Additionally, you can update a user with multiple login IDs by passing
        an array of loginIds in string format within the `additionalIdentifiers`
        key.


        It is suggested to gather the current user configurations via [Load
        User](/api/management/users/load-user) in order to assist you in
        building the payload for this api endpoint.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: UpdateUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Update User | User Management
        description: Updates a user's details, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/recovery/email:
    post:
      tags: []
      summary: Update User Recovery Email
      description: Update user recovery email, using a valid management key.
      operationId: UpdateUserRecoveryEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRecoveryEmailRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 8.1
      x-sdk: true
      x-meta:
        title: Update User Recovery Email | User Management Email
        description: Update user recovery email, using a valid management key. Email
        keywords: api, user management, email
  /v1/mgmt/user/update/recovery/phone:
    post:
      tags: []
      summary: Update User Recovery Phone
      description: Update user recovery phone, using a valid management key.
      operationId: UpdateUserRecoveryPhone
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRecoveryPhoneRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 8.2
      x-sdk: true
      x-meta:
        title: Update User Recovery Phone | User Management
        description: Update user recovery phone, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/patch:
    patch:
      tags: []
      summary: Patch User
      description: >-
        ### Patch a user's details, using a valid management key.


        This API endpoint will patch a user's details of a user utilizing a
        valid management key.


        Additionally, you can patch a user with multiple login IDs by passing an
        array of loginIds in string format within the `additionalIdentifiers`
        key. This allows you to add additional login identifiers to an existing
        user without performing a full user update.


        <Callout title="Important" type="warn">

        When adding additional identifiers to a user who has an SSO login ID,
        the user may be able to authenticate outside of SSO whenever SSO is not
        enforced and non-SSO methods (such as magic link or password) are
        available. See [Risks in Merging SSO and Non-SSO
        Identities](/sso/merging-sso-identities-risk) before using this field on
        SSO users.

        </Callout>


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: PatchUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchUserRequest'
            example:
              loginId: user@example.com
              roleNames:
                - Tenant Admin
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 9
      x-sdk: true
      x-meta:
        title: Patch User | User Management
        description: Patch a user's details, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/status:
    post:
      tags: []
      summary: Update User Status
      description: >-
        ### Updates an existing user's status, using a valid management key.


        This API endpoint allows you to update the user's status granularly
        without updating all user details.


        Available statuses to utilize:

        - invited

        - enabled

        - disabled


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: UpdateUserStatus
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserStatusRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: Update User Status | User Management
        description: Updates an existing user's status, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/impersonationConsent:
    post:
      tags: []
      summary: Update User Impersonation Consent
      description: >-
        Update user impersonation consent, using a valid management key. This
        allows granting impersonation consent without requiring the user-facing
        consent flow.
      operationId: UpdateUserImpersonationConsent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserImpersonationConsentRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 10.5
      x-meta:
        title: Update User Impersonation Consent | User Management
        description: >-
          Update user impersonation consent, using a valid management key. This
          allows granting impersonation consent without requiring the
          user-facing consent flow.
        keywords: api, user management
  /v1/mgmt/user/update/email:
    post:
      tags: []
      summary: Update User Email
      description: >-
        ### Updates an existing user's email, using a valid management key.


        This API endpoint allows you to update the user's email granularly
        without updating all user details.


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: UpdateUserEmail
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserEmailRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 11
      x-sdk: true
      x-meta:
        title: Update User Email | User Management Email
        description: Updates an existing user's email, using a valid management key. Email
        keywords: api, user management, email
  /v1/mgmt/user/update/loginid:
    post:
      tags: []
      summary: Update User Login ID
      description: >-
        ### Updates an existing user's login ID, using a valid management key.


        This API endpoint allows you to update a user's Login ID.


        If you'd like to remove a login ID, provide an empty string for the new
        login ID.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: UpdateUserLoginID
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserLoginIDRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 12
      x-sdk: true
      x-meta:
        title: Update User Login ID | User Management
        description: Updates an existing user's login ID, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/phone:
    post:
      tags: []
      summary: Update User Phone
      description: >-
        ### Updates an existing user's phone number, using a valid management
        key.


        This API endpoint allows you to update the user's phone number
        granularly without updating all user details.


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: UpdateUserPhone
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPhoneRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 13
      x-sdk: true
      x-meta:
        title: Update User Phone | User Management
        description: Updates an existing user's phone number, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/name:
    post:
      tags: []
      summary: Update User Display Name
      description: >-
        ### Updates an existing user's display name, using a valid management
        key.


        This API endpoint allows you to update the user's display name
        granularly without updating all user details.


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: UpdateUserDisplayName
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserDisplayNameRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 14
      x-sdk: true
      x-meta:
        title: Update User Display Name | User Management
        description: Updates an existing user's display name, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/role/add:
    post:
      tags: []
      summary: Update User Add Roles
      description: Add roles to a user, using a valid management key.
      operationId: UpdateUserAddRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 14
      x-meta:
        title: Update User Add Roles | User Management
        description: Add roles to a user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/picture:
    post:
      tags: []
      summary: Update User Picture
      description: >-
        ### Update an existing user's profile picture, using a valid management
        key.


        This API endpoint allows you to update a user's profile picture
        granularly without updating all user details.


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Tenants](/management/tenant-management) for further
        details on managing tenants.
      operationId: UpdateUserPicture
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserPictureRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 15
      x-sdk: true
      x-meta:
        title: Update User Picture | User Management
        description: >-
          Update an existing user's profile picture, using a valid management
          key.
        keywords: api, user management
  /v1/mgmt/user/update/customAttribute:
    post:
      tags: []
      summary: Update User Custom Attribute
      description: >-
        ### Update an existing user's custom attributes, using a valid
        management key.


        This API endpoint allows you to update a user's custom attributes
        granularly without updating all user details.


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Tenants](/management/tenant-management) for further
        details on managing tenants.
      operationId: UpdateUserCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserCustomAttributeRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 16
      x-sdk: true
      x-meta:
        title: Update User Custom Attribute | User Management
        description: >-
          Update an existing user's custom attributes, using a valid management
          key.
        keywords: api, user management
  /v1/mgmt/jwt/update:
    post:
      tags: []
      summary: Update JWT
      description: >-
        ### Updates a JWT with custom claims, using a valid management key.


        This API endpoint will update a JWT with custom claims. This endpoint
        takes the JWT as well as the `customClaims` json.
      operationId: UpdateJWT
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateJWTRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-order: 17
      x-meta:
        title: Update JWT | User Management
        description: Updates a JWT with custom claims, using a valid management key.
        keywords: api, user management
  /v2/mgmt/user/history:
    post:
      tags: []
      summary: Users Authentication History V2
      description: >-
        Load users' authentication history by user IDs, using a valid management
        key. V2 endpoint with improved request body handling.
      operationId: UsersAuthHistoryV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsersAuthHistoryRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsersAuthHistoryResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 17
      x-meta:
        title: Users Authentication History V2 | User Management
        description: >-
          Load users' authentication history by user IDs, using a valid
          management key. V2 endpoint with improved request body handling.
        keywords: api, user management
  /v1/mgmt/user/password/expire:
    post:
      tags: []
      summary: Expire User Passwsord
      description: >-
        ### Expire an existing user's password, using a valid management key.


        This API endpoint allows you to expire an existing user's password. Upon
        next login, the user will need to follow the reset password flow.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Tenants](/management/tenant-management) for further
        details on managing tenants.

        - See [Reset Password](/api/passwords/email/password-reset) for sending
        the password reset email.
      operationId: ExpireUserPassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExpireUserPasswordRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 18
      x-sdk: true
      x-meta:
        title: Expire User Passwsord | User Management
        description: Expire an existing user's password, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/trusteddevices/list:
    post:
      tags: []
      summary: List Trusted Devices
      description: List trusted devices for one or more users.
      operationId: ListTrustedDevicesForUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListTrustedDevicesForUsersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTrustedDevicesForUsersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 18
      x-sdk: true
      x-meta:
        title: List Trusted Devices | User Management
        description: List trusted devices for one or more users.
        keywords: api, user management
  /v1/mgmt/user/passkey/delete:
    post:
      tags: []
      summary: Remove User Passkey
      description: >-
        Remove a specific passkey for a user by credential ID, using a valid
        management key.
      operationId: RemoveUserPasskey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveUserPasskeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 19
      x-sdk: true
      x-meta:
        title: Remove User Passkey | User Management
        description: >-
          Remove a specific passkey for a user by credential ID, using a valid
          management key.
        keywords: api, user management
  /v1/mgmt/user/passkeys/import:
    post:
      tags: []
      summary: Import User Passkeys
      description: Import passkey credentials for a user, using a valid management key.
      operationId: ImportUserPasskeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportUserPasskeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 19
      x-meta:
        title: Import User Passkeys | User Management
        description: Import passkey credentials for a user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/passkeys/list:
    post:
      tags: []
      summary: List User Passkeys
      description: List all passkeys for a user, using a valid management key.
      operationId: ListUserPasskeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListUserPasskeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListUserPasskeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 19
      x-sdk: true
      x-meta:
        title: List User Passkeys | User Management
        description: List all passkeys for a user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/password/set/active:
    post:
      tags: []
      summary: Set Active Password for User
      description: >-
        ### Set an active password for an existing user, using a valid
        management key.


        This API endpoint allows you to set an active password for an existing
        user. This will allow the user to authenticate with this password
        without changing it.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Tenants](/management/tenant-management) for further
        details on managing tenants.
      operationId: SetUserActivePassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetUserPasswordRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetUserPasswordResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 19
      x-sdk: true
      x-meta:
        title: Set Active Password for User | User Management
        description: >-
          Set an active password for an existing user, using a valid management
          key.
        keywords: api, user management
  /v1/mgmt/user/recovery-codes/delete:
    post:
      tags: []
      summary: Remove User Recovery Codes
      description: >-
        Remove (revoke) all recovery codes for a user, using a valid management
        key.
      operationId: RemoveUserRecoveryCodes
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveUserRecoveryCodesRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 19
      x-sdk: true
      x-meta:
        title: Remove User Recovery Codes | User Management
        description: >-
          Remove (revoke) all recovery codes for a user, using a valid
          management key.
        keywords: api, user management
  /v1/mgmt/user/trusteddevices/remove:
    post:
      tags: []
      summary: Delete Trusted Devices
      description: Delete user trusted devices by IDs.
      operationId: UpdateUserRemoveTrustedDevices
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRemoveTrustedDevicesRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 19
      x-sdk: true
      x-meta:
        title: Delete Trusted Devices | User Management
        description: Delete user trusted devices by IDs.
        keywords: api, user management
  /v1/mgmt/user/password/set/temporary:
    post:
      tags: []
      summary: Set Temporary Password for User
      description: >-
        ### Set a temporary password for an existing user, using a valid
        management key.


        This API endpoint allows you to set a temporary password for an existing
        user. This will require the user to change their password on next
        authentication.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Tenants](/management/tenant-management) for further
        details on managing tenants.
      operationId: SetUserTemporaryPassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetUserPasswordRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetUserPasswordResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 20
      x-sdk: true
      x-meta:
        title: Set Temporary Password for User | User Management
        description: >-
          Set a temporary password for an existing user, using a valid
          management key.
        keywords: api, user management
  /v1/mgmt/user/totp/delete:
    post:
      tags: []
      summary: Delete User's TOTP Seed
      description: >-
        ### Delete an existing user's TOTP, using a valid management key.


        This API endpoint allows you to delete an existing user's TOTP seed.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: RemoveUserTOTP
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveUserTOTPRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 21
      x-sdk: true
      x-meta:
        title: Delete User's TOTP Seed | User Management
        description: Delete an existing user's TOTP, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/family/add:
    post:
      tags: []
      summary: Update User Add Families
      description: >-
        Add a user to one or more families, using a valid management key. Each
        family entry may also set the user's roles and family-scoped attributes
        for that family in the same call; omitting
        roleNames/familyScopedAttributes on a family the user already belongs to
        leaves them unchanged.
      operationId: UpdateUserAddFamilies
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserAddFamiliesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 21
      x-sdk: true
      x-meta:
        title: Update User Add Families | User Management
        description: >-
          Add a user to one or more families, using a valid management key. Each
          family entry may also set the user's roles and family-scoped
          attributes for that family in the same call; omitting
          roleNames/familyScopedAttributes on a family the user already belongs
          to leaves them unchanged.
        keywords: api, user management
  /v1/mgmt/user/logout/batch:
    post:
      tags: []
      summary: Logout Users from All Devices
      description: >-
        Log multiple users out from all of their active sessions, using a valid
        management key.
      operationId: LogoutAllUsersDevices
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UsersLogoutRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsersLogoutResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 22
      x-sdk: true
      x-meta:
        title: Logout Users from All Devices | User Management
        description: >-
          Log multiple users out from all of their active sessions, using a
          valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/family/remove:
    post:
      tags: []
      summary: Update User Remove Families
      description: Remove a user from one or more families, using a valid management key.
      operationId: UpdateUserRemoveFamilies
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRemoveFamiliesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 22
      x-sdk: true
      x-meta:
        title: Update User Remove Families | User Management
        description: Remove a user from one or more families, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/tenant/add:
    post:
      tags: []
      summary: Update User Add Tenant
      description: >-
        ### Add a tenant to an existing user, using a valid management key.


        This API endpoint allows you to add a user to a tenant granularly
        without updating all user details.


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Tenants](/management/tenant-management) for further
        details on managing tenants.
      operationId: UpdateUserAddTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 22
      x-sdk: true
      x-meta:
        title: Update User Add Tenant | User Management
        description: Add a tenant to an existing user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/logout/sessions:
    post:
      tags: []
      summary: Logout Sessions Created in a Time Range
      description: >-
        Log out every session in the project that was created inside a time
        range, using a valid management key. This is a project-wide rule: each
        matching session is logged out at its next refresh or validation, not
        immediately, and legitimate logins in the range are logged out too. The
        rule holds until it is deleted with the delete endpoint, or until it
        expires on its own one year after sessionsCreatedBefore; list the active
        rules with the list endpoint. A session refused at a refresh stays
        logged out after the rule is deleted or expires, and a user with many
        sessions in the range may be logged out of all their sessions. A range
        cannot cover time before the feature's rollout: sessionsCreatedAfter is
        clamped to it, the response shows the clamped value, and a range ending
        at or before it is rejected. Provide at least one of
        sessionsCreatedAfter and sessionsCreatedBefore as RFC 3339 times:
        sessionsCreatedAfter defaults to the beginning of time, and
        sessionsCreatedBefore defaults to now and cannot be in the future.
        sessionTypes limits the rule to sessions whose dtt claim matches one of
        its values exactly. No count of logged-out sessions is returned. To log
        out specific users, use the batch logout endpoint.
      operationId: LogoutSessionsCreatedInRange
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionsLogoutRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionsLogoutResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 23
      x-sdk: true
      x-meta:
        title: Logout Sessions Created in a Time Range | User Management
        description: >-
          Log out every session in the project that was created inside a time
          range, using a valid management key. This is a project-wide rule: each
          matching session is logged out at its next refresh or validation, not
          immediately, and legitimate logins in the range are logged out too.
          The rule holds until it is deleted with the delete endpoint, or until
          it expires on its own one year after sessionsCreatedBefore; list the
          active rules with the list endpoint. A session refused at a refresh
          stays logged out after the rule is deleted or expires, and a user with
          many sessions in the range may be logged out of all their sessions. A
          range cannot cover time before the feature's rollout:
          sessionsCreatedAfter is clamped to it, the response shows the clamped
          value, and a range ending at or before it is rejected. Provide at
          least one of sessionsCreatedAfter and sessionsCreatedBefore as RFC
          3339 times: sessionsCreatedAfter defaults to the beginning of time,
          and sessionsCreatedBefore defaults to now and cannot be in the future.
          sessionTypes limits the rule to sessions whose dtt claim matches one
          of its values exactly. No count of logged-out sessions is returned. To
          log out specific users, use the batch logout endpoint.
        keywords: api, user management
  /v1/mgmt/user/update/tenant/remove:
    post:
      tags: []
      summary: Update User Remove Tenant
      description: >-
        ### Removes a tenant from an existing user, using a valid management
        key.


        This API endpoint allows you to remove a user from a tenant granularly
        without updating all user details.


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Tenants](/management/tenant-management) for further
        details on managing tenants.
      operationId: UpdateUserRemoveTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 23
      x-sdk: true
      x-meta:
        title: Update User Remove Tenant | User Management
        description: Removes a tenant from an existing user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/logout/sessions/list:
    post:
      tags: []
      summary: List Logout Sessions Rules
      description: >-
        List the project's active rules created by the logout sessions endpoint,
        with their ids, using a valid management key. Expired rules are not
        returned.
      operationId: ListLogoutSessionsRanges
      requestBody: null
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListLogoutSessionsRangesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 24
      x-sdk: true
      x-meta:
        title: List Logout Sessions Rules | User Management
        description: >-
          List the project's active rules created by the logout sessions
          endpoint, with their ids, using a valid management key. Expired rules
          are not returned.
        keywords: api, user management
  /v2/mgmt/user/update/role/add:
    post:
      tags: []
      summary: Update User Add Roles
      description: >-
        ### Add roles to an existing user, using a valid management key.


        This API endpoint allows you to add roles to a user granularly without
        updating all user details.


        `roleNames` is an array of the role names in string format.


        The `tenantId` is optional; if provided, the user must be a member of
        that tenant


        The response returns the user's details in json format.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Roles](/manage/roles/) for further details on managing
        roles.
      operationId: UpdateUserAddRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 24
      x-sdk: true
      x-meta:
        title: Update User Add Roles | User Management
        description: Add roles to an existing user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/logout/sessions/delete:
    post:
      tags: []
      summary: Delete Logout Sessions Rule
      description: >-
        Delete a rule created by the logout sessions endpoint, using a valid
        management key. Sessions it already rejected stay logged out. The rule
        stops applying once the settings cache refreshes, within seconds, and
        sessions it had not rejected work again unless another rule covers them.
      operationId: DeleteLogoutSessionsRange
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteLogoutSessionsRangeRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 25
      x-sdk: true
      x-meta:
        title: Delete Logout Sessions Rule | User Management
        description: >-
          Delete a rule created by the logout sessions endpoint, using a valid
          management key. Sessions it already rejected stay logged out. The rule
          stops applying once the settings cache refreshes, within seconds, and
          sessions it had not rejected work again unless another rule covers
          them.
        keywords: api, user management
  /v1/mgmt/user/update/role/set:
    post:
      tags: []
      summary: Set User's Roles
      description: >-
        ### Set an existing user's roles, using a valid management key.


        This API endpoint allows you to set a user's roles.


        This will override the current roles associated to the user and will set
        all passed roles.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Roles](/manage/roles/) for further details on managing
        roles.
      operationId: UpdateUserSetRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 25
      x-sdk: true
      x-meta:
        title: Set User's Roles | User Management
        description: Set an existing user's roles, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/role/remove:
    post:
      tags: []
      summary: Update User Remove Roles
      description: >-
        ### Remove roles from an existing user, using a valid management key.


        This API endpoint allows you to remove roles from a user granularly
        without updating all user details.


        `roleNames` is an array of the role names in string format.


        The `tenantId` is optional; if provided, the user must be a member of
        that tenant


        The response returns the user's details in json format.


        ### See also

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Roles](/manage/roles/) for further details on managing
        roles.
      operationId: UpdateUserRemoveRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 26
      x-sdk: true
      x-meta:
        title: Update User Remove Roles | User Management
        description: Remove roles from an existing user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/ssoapp/add:
    post:
      tags: []
      summary: Add Application to User
      description: >-
        ### Add Applications to an existing user, using a valid management key.


        This API endpoint allows you to add Applications to a user granularly
        without updating all user details.


        ### See also

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Applications](/manage/idpapplications/) for further details on
        Applications.
      operationId: UpdateUserAddSSOApps
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserSSOAppsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 27
      x-sdk: true
      x-meta:
        title: Add Application to User | User Management
        description: Add Applications to an existing user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/ssoapp/set:
    post:
      tags: []
      summary: Set Applications to User
      description: >-
        ### Set Applications for an existing user, using a valid management key.


        This API endpoint allows you to set the associated Applications for a
        user.


        ### See also

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Applications](/manage/idpapplications/) for further details on
        Applications.
      operationId: UpdateUserSetSSOApps
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserSSOAppsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 28
      x-sdk: true
      x-meta:
        title: Set Applications to User | User Management
        description: Set Applications for an existing user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/update/ssoapp/remove:
    post:
      tags: []
      summary: Remove Application to User
      description: >-
        ### Remove Applications from an existing user, using a valid management
        key.


        This API endpoint allows you to remove Applications from a user
        granularly without updating all user details.


        ### See also

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Applications](/manage/idpapplications/) for further details on
        Applications.
      operationId: UpdateUserRemoveSSOApps
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserSSOAppsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 29
      x-sdk: true
      x-meta:
        title: Remove Application to User | User Management
        description: >-
          Remove Applications from an existing user, using a valid management
          key.
        keywords: api, user management
  /v1/mgmt/user/logout:
    post:
      tags: []
      summary: Log user out of all sessions
      description: >-
        ### Log a user out of all sessions, using a valid management key.


        This API endpoint allows you to log a user out of all active sessions.


        ### See also

        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.

        - See [Manage Roles](/manage/roles/) for further details on managing
        roles.
      operationId: LogoutAllUserDevices
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UserLogoutRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 30
      x-sdk: true
      x-meta:
        title: Log user out of all sessions | User Management
        description: Log a user out of all sessions, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/passkeys/delete:
    post:
      tags: []
      summary: Delete User's Passkeys
      description: >-
        ### Delete a user's Passkeys, using a valid management key.


        This API endpoint will delete all existing passkeys for the user


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: RemoveUserPasskeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveUserPasskeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 31
      x-sdk: true
      x-meta:
        title: Delete User's Passkeys | User Management
        description: Delete a user's Passkeys, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/delete:
    post:
      tags: []
      summary: Delete User
      description: >-
        ### Delete a user, using a valid management key.


        This API endpoint will delete a user utilizing a valid management key
        based on the provided user loginId.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: DeleteUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteUserRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 32
      x-sdk: true
      x-meta:
        title: Delete User | User Management
        description: Delete a user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/delete/batch:
    post:
      tags: []
      summary: Batch Delete Users
      description: >-
        ### Delete users, using a valid management key.


        This API endpoint will delete users utilizing a valid management key.


        ### See also


        - See [Manage Users](/manage/users) for further details on managing
        users.

        - See [The User Object](/api/overview#the-user-object) for further
        details on the user object.
      operationId: DeleteUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteUsersRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 33
      x-sdk: true
      x-meta:
        title: Batch Delete Users | User Management
        description: Delete users, using a valid management key.
        keywords: api, user management
  /v1/mgmt/impersonate:
    post:
      tags: []
      summary: Impersonate User
      description: >-
        ### Impersonate a user, using a valid management key.


        This API endpoint will allow you to impersonate a user using a login ID.

        The impersonator user must have the impersonation permission in order
        for this request to work.

        The response would be a refresh JWT of the impersonated user
      operationId: Impersonate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImpersonateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-order: 34
      x-meta:
        title: Impersonate User | User Management
        description: Impersonate a user, using a valid management key.
        keywords: api, user management
  /v1/mgmt/auth/anonymous:
    post:
      tags: []
      summary: Anonymous User
      description: >-
        ### Anonymous User

        Anonymous Users are identified with a unique Descope JWT type.
        Eventually, create a token that we can use as the defined anonymous
        identity.

        Signed by Descope. For more info, please refer to our anonymous users
        documentation.
      operationId: Anonymous
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnonymousUserRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnonymousJWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-order: 35
      x-meta:
        title: Anonymous User | User Management
        description: Anonymous User
        keywords: api, user management
  /v1/mgmt/stop/impersonate: {}
  /v1/mgmt/user/attribute:
    get:
      tags: []
      summary: Get user attribute
      description: >-
        Get a single user custom attribute definition by machine name, using a
        valid management key.
      operationId: GetUserAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.CustomAttribute'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 50
      x-meta:
        title: Get user attribute | User Management
        description: >-
          Get a single user custom attribute definition by machine name, using a
          valid management key.
        keywords: api, user management
    post:
      tags: []
      summary: Set user attribute
      description: >-
        Create or update a single user custom attribute definition (upsert by
        machine name), using a valid management key.
      operationId: SetUserAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/managementv1.CustomAttribute'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 51
      x-meta:
        title: Set user attribute | User Management
        description: >-
          Create or update a single user custom attribute definition (upsert by
          machine name), using a valid management key.
        keywords: api, user management
    delete:
      tags: []
      summary: Delete user attribute
      description: >-
        Delete a single user custom attribute definition by machine name (no-op
        if absent), using a valid management key.
      operationId: DeleteUserAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-order: 52
      x-meta:
        title: Delete user attribute | User Management
        description: >-
          Delete a single user custom attribute definition by machine name
          (no-op if absent), using a valid management key.
        keywords: api, user management
  /v1/mgmt/family/create:
    post:
      tags: []
      summary: Create Family
      description: Create a family, using a valid management key.
      operationId: CreateFamily
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFamilyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFamilyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Create Family | User Management
        description: Create a family, using a valid management key.
        keywords: api, user management
  /v1/mgmt/family/customattribute/create:
    post:
      tags: []
      summary: Create Family Custom Attribute
      description: >-
        Create one or more custom attribute definitions on the family entity,
        using a valid management key.
      operationId: CreateFamilyCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Create Family Custom Attribute | User Management
        description: >-
          Create one or more custom attribute definitions on the family entity,
          using a valid management key.
        keywords: api, user management
  /v1/mgmt/family/customattribute/delete:
    post:
      tags: []
      summary: Delete Family Custom Attribute
      description: >-
        Delete one or more custom attribute definitions from the family entity
        by name, using a valid management key.
      operationId: DeleteFamilyCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Delete Family Custom Attribute | User Management
        description: >-
          Delete one or more custom attribute definitions from the family entity
          by name, using a valid management key.
        keywords: api, user management
  /v1/mgmt/family/customattributes:
    get:
      tags: []
      summary: Get Family Custom Attributes
      description: >-
        Get the family entity's custom attribute definitions, using a valid
        management key.
      operationId: GetFamilyCustomAttributes
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Get Family Custom Attributes | User Management
        description: >-
          Get the family entity's custom attribute definitions, using a valid
          management key.
        keywords: api, user management
  /v1/mgmt/family/delete:
    post:
      tags: []
      summary: Delete Family
      description: Delete a family, using a valid management key.
      operationId: DeleteFamily
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteFamilyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteFamilyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Delete Family | User Management
        description: Delete a family, using a valid management key.
        keywords: api, user management
  /v1/mgmt/family/dependent/create:
    post:
      tags: []
      summary: Create Family Dependent
      description: Create a dependent (shadow profile) user in a family
      operationId: CreateFamilyDependent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateFamilyDependentRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFamilyDependentResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Create Family Dependent | User Management
        description: Create a dependent (shadow profile) user in a family
        keywords: api, user management
  /v1/mgmt/family/dependent/delete:
    post:
      tags: []
      summary: Delete Family Dependent
      description: Delete a dependent (shadow profile) user from a family
      operationId: DeleteFamilyDependent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteFamilyDependentRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteFamilyDependentResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Delete Family Dependent | User Management
        description: Delete a dependent (shadow profile) user from a family
        keywords: api, user management
  /v1/mgmt/family/impersonate:
    post:
      tags: []
      summary: Impersonate Family Dependent
      description: >-
        Impersonate a family dependent. The impersonator (by user ID) must be a
        member of the dependent's family and hold the family
        impersonate-dependents permission there.
      operationId: ImpersonateFamilyDependent
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImpersonateFamilyDependentRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Impersonate Family Dependent | User Management
        description: >-
          Impersonate a family dependent. The impersonator (by user ID) must be
          a member of the dependent's family and hold the family
          impersonate-dependents permission there.
        keywords: api, user management
  /v1/mgmt/family/impersonate/stop:
    post:
      tags: []
      summary: Stop Family Impersonation
      description: >-
        Stop impersonating a family dependent and return to the acting admin's
        own session
      operationId: StopFamilyImpersonation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StopFamilyImpersonationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Stop Family Impersonation | User Management
        description: >-
          Stop impersonating a family dependent and return to the acting admin's
          own session
        keywords: api, user management
  /v1/mgmt/family/search:
    post:
      tags: []
      summary: Search Families
      description: Search families, using a valid management key.
      operationId: SearchFamilies
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchFamiliesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllFamiliesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Search Families | User Management
        description: Search families, using a valid management key.
        keywords: api, user management
  /v1/mgmt/family/settings:
    get:
      tags: []
      summary: Get Family Settings
      description: Get the project's family account settings, using a valid management key.
      operationId: GetFamilySettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetFamilySettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Get Family Settings | User Management
        description: >-
          Get the project's family account settings, using a valid management
          key.
        keywords: api, user management
    post:
      tags: []
      summary: Set Family Settings
      description: Set the project's family account settings, using a valid management key.
      operationId: SetFamilySettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetFamilySettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetFamilySettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Set Family Settings | User Management
        description: >-
          Set the project's family account settings, using a valid management
          key.
        keywords: api, user management
  /v1/mgmt/family/update:
    post:
      tags: []
      summary: Update Family
      description: >-
        Update a family's name, custom attributes, photo, or disabled state,
        using a valid management key. Omitted fields are left unchanged.
      operationId: UpdateFamily
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFamilyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateFamilyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Update Family | User Management
        description: >-
          Update a family's name, custom attributes, photo, or disabled state,
          using a valid management key. Omitted fields are left unchanged.
        keywords: api, user management
  /v1/mgmt/impersonate/stepup:
    post:
      tags: []
      summary: Impersonate Stepup
      description: Impersonate as a different user with step-up claim
      operationId: ImpersonateStepup
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImpersonateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Impersonate Stepup | User Management
        description: Impersonate as a different user with step-up claim
        keywords: api, user management
  /v1/mgmt/stop/impersonation:
    post:
      tags: []
      summary: Stop Impersonation
      description: Stop impersonation as a different user
      operationId: StopImpersonation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StopImpersonationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Stop Impersonation | User Management
        description: Stop impersonation as a different user
        keywords: api, user management
  /v1/mgmt/user/families/customattribute/create:
    post:
      tags: []
      summary: Create Family-Scoped User Custom Attribute
      description: >-
        Create one or more family-scoped user custom attribute definitions,
        using a valid management key. Values for these attributes are held per
        family membership rather than on the user.
      operationId: CreateUserFamilyScopedCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Create Family-Scoped User Custom Attribute | User Management
        description: >-
          Create one or more family-scoped user custom attribute definitions,
          using a valid management key. Values for these attributes are held per
          family membership rather than on the user.
        keywords: api, user management
  /v1/mgmt/user/families/customattribute/delete:
    post:
      tags: []
      summary: Delete Family-Scoped User Custom Attribute
      description: >-
        Delete one or more family-scoped user custom attribute definitions by
        name, using a valid management key.
      operationId: DeleteUserFamilyScopedCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Delete Family-Scoped User Custom Attribute | User Management
        description: >-
          Delete one or more family-scoped user custom attribute definitions by
          name, using a valid management key.
        keywords: api, user management
  /v1/mgmt/user/families/customattributes:
    get:
      tags: []
      summary: Get Family-Scoped User Custom Attributes
      description: >-
        Get the project's family-scoped user custom attribute definitions, using
        a valid management key.
      operationId: GetUserFamilyScopedCustomAttributes
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: userManagement
      x-sdk: true
      x-meta:
        title: Get Family-Scoped User Custom Attributes | User Management
        description: >-
          Get the project's family-scoped user custom attribute definitions,
          using a valid management key.
        keywords: api, user management
  /v1/mgmt/auth/signin:
    post:
      tags: []
      summary: Generate JWT for Sign-In
      description: Generate a JWT for an existing user, using a valid management key.
      operationId: GenerateJWTSignIn
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateJWTSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: generice
      x-order: 1
      x-sdk: true
      x-meta:
        title: Generate JWT for Sign-In | Generice
        description: Generate a JWT for an existing user, using a valid management key.
        keywords: api, generice
  /v1/mgmt/auth/signup:
    post:
      tags: []
      summary: Generate JWT for Sign-Up
      description: >-
        Create a new user and generate a JWT for them, using a valid management
        key.
      operationId: GenerateJWTSignUp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateJWTSignUpRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: generic
      x-order: 3
      x-sdk: true
      x-meta:
        title: Generate JWT for Sign-Up | Generic
        description: >-
          Create a new user and generate a JWT for them, using a valid
          management key.
        keywords: api, generic
  /v1/mgmt/auth/signup-in:
    post:
      tags: []
      summary: Generate JWT for Sign-Up or Sign-In
      description: >-
        Create a new user and generate a JWT for them, or just generate a JWT if
        the user already exists. Uses a valid management key.
      operationId: GenerateJWTSignUpOrIn
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateJWTSignUpRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWTResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: generic
      x-order: 3
      x-sdk: true
      x-meta:
        title: Generate JWT for Sign-Up or Sign-In | Generic
        description: >-
          Create a new user and generate a JWT for them, or just generate a JWT
          if the user already exists. Uses a valid management key.
        keywords: api, generic
  /v1/mgmt/authaccess/rule:
    get:
      tags: []
      summary: Get auth access policy rule
      description: >-
        Get a single project-level auth access policy rule by id, using a valid
        management key.
      operationId: GetAuthAccessRule
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRule'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Get auth access policy rule | Auth Access Policy Management
        description: >-
          Get a single project-level auth access policy rule by id, using a
          valid management key.
        keywords: api, auth access policy management
    put:
      tags: []
      summary: Update auth access policy rule
      description: >-
        Update a project-level auth access policy rule. Fields that are not sent
        keep their stored values, using a valid management key.
      operationId: UpdateAuthAccessRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthAccessRule'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRule'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Update auth access policy rule | Auth Access Policy Management
        description: >-
          Update a project-level auth access policy rule. Fields that are not
          sent keep their stored values, using a valid management key.
        keywords: api, auth access policy management
    post:
      tags: []
      summary: Create auth access policy rule
      description: >-
        Create a project-level auth access policy rule. The rule is appended at
        the end of the evaluation order, using a valid management key.
      operationId: CreateAuthAccessRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthAccessRule'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRule'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create auth access policy rule | Auth Access Policy Management
        description: >-
          Create a project-level auth access policy rule. The rule is appended
          at the end of the evaluation order, using a valid management key.
        keywords: api, auth access policy management
    delete:
      tags: []
      summary: Delete auth access policy rule
      description: >-
        Delete a single project-level auth access policy rule by id, using a
        valid management key.
      operationId: DeleteAuthAccessRule
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Delete auth access policy rule | Auth Access Policy Management
        description: >-
          Delete a single project-level auth access policy rule by id, using a
          valid management key.
        keywords: api, auth access policy management
  /v1/mgmt/authaccess/rule/all:
    get:
      tags: []
      summary: Load all auth access policy rules
      description: >-
        Load all project-level auth access policy rules in evaluation order,
        using a valid management key.
      operationId: LoadAllAuthAccessRules
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRules'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Load all auth access policy rules | Auth Access Policy Management
        description: >-
          Load all project-level auth access policy rules in evaluation order,
          using a valid management key.
        keywords: api, auth access policy management
  /v1/mgmt/authaccess/rule/reorder:
    post:
      tags: []
      summary: Reorder auth access policy rule
      description: >-
        Move a project-level auth access policy rule to a 1-based position in
        the evaluation order. Rules in between shift accordingly. Returns all
        rules in their new order, using a valid management key.
      operationId: ReorderAuthAccessRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReorderAuthAccessRuleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRules'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Reorder auth access policy rule | Auth Access Policy Management
        description: >-
          Move a project-level auth access policy rule to a 1-based position in
          the evaluation order. Rules in between shift accordingly. Returns all
          rules in their new order, using a valid management key.
        keywords: api, auth access policy management
  /v1/mgmt/authaccess/settings:
    get:
      tags: []
      summary: Get auth access policy settings
      description: >-
        Get the project-level auth access policy settings: the default action
        and the full rule evaluation order, using a valid management key.
      operationId: GetAuthAccessSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Get auth access policy settings | Auth Access Policy Management
        description: >-
          Get the project-level auth access policy settings: the default action
          and the full rule evaluation order, using a valid management key.
        keywords: api, auth access policy management
    post:
      tags: []
      summary: Set auth access policy settings
      description: >-
        Update the project-level auth access policy settings. ruleIds sets the
        full evaluation order and must list every rule exactly once. Fields that
        are not sent keep their stored values, using a valid management key.
      operationId: SetAuthAccessSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthAccessSettings'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authAccessPolicyManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Set auth access policy settings | Auth Access Policy Management
        description: >-
          Update the project-level auth access policy settings. ruleIds sets the
          full evaluation order and must list every rule exactly once. Fields
          that are not sent keep their stored values, using a valid management
          key.
        keywords: api, auth access policy management
  /v1/mgmt/authaccess/rule/tenant/{tenantId}:
    get:
      tags: []
      summary: Get tenant auth access policy rule
      description: >-
        Get a single tenant-level auth access policy rule by id, using a valid
        management key.
      operationId: GetTenantAuthAccessRule
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRule'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: >-
          Get tenant auth access policy rule | Tenant Auth Access Policy
          Management
        description: >-
          Get a single tenant-level auth access policy rule by id, using a valid
          management key.
        keywords: api, tenant auth access policy management
    put:
      tags: []
      summary: Update tenant auth access policy rule
      description: >-
        Update a tenant-level auth access policy rule. Fields that are not sent
        keep their stored values, using a valid management key.
      operationId: UpdateTenantAuthAccessRule
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthAccessRule'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRule'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: >-
          Update tenant auth access policy rule | Tenant Auth Access Policy
          Management
        description: >-
          Update a tenant-level auth access policy rule. Fields that are not
          sent keep their stored values, using a valid management key.
        keywords: api, tenant auth access policy management
    post:
      tags: []
      summary: Create tenant auth access policy rule
      description: >-
        Create a tenant-level auth access policy rule. The rule is appended at
        the end of the tenant evaluation order, using a valid management key.
      operationId: CreateTenantAuthAccessRule
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthAccessRule'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRule'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: >-
          Create tenant auth access policy rule | Tenant Auth Access Policy
          Management
        description: >-
          Create a tenant-level auth access policy rule. The rule is appended at
          the end of the tenant evaluation order, using a valid management key.
        keywords: api, tenant auth access policy management
    delete:
      tags: []
      summary: Delete tenant auth access policy rule
      description: >-
        Delete a single tenant-level auth access policy rule by id, using a
        valid management key.
      operationId: DeleteTenantAuthAccessRule
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: >-
          Delete tenant auth access policy rule | Tenant Auth Access Policy
          Management
        description: >-
          Delete a single tenant-level auth access policy rule by id, using a
          valid management key.
        keywords: api, tenant auth access policy management
  /v1/mgmt/authaccess/rule/all/tenant/{tenantId}:
    get:
      tags: []
      summary: Load all tenant auth access policy rules
      description: >-
        Load all tenant-level auth access policy rules in evaluation order,
        using a valid management key.
      operationId: LoadAllTenantAuthAccessRules
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRules'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: >-
          Load all tenant auth access policy rules | Tenant Auth Access Policy
          Management
        description: >-
          Load all tenant-level auth access policy rules in evaluation order,
          using a valid management key.
        keywords: api, tenant auth access policy management
  /v1/mgmt/authaccess/rule/reorder/tenant/{tenantId}:
    post:
      tags: []
      summary: Reorder tenant auth access policy rule
      description: >-
        Move a tenant-level auth access policy rule to a 1-based position in the
        tenant evaluation order. Rules in between shift accordingly. Returns all
        rules in their new order, using a valid management key.
      operationId: ReorderTenantAuthAccessRule
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReorderTenantAuthAccessRuleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessRules'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: >-
          Reorder tenant auth access policy rule | Tenant Auth Access Policy
          Management
        description: >-
          Move a tenant-level auth access policy rule to a 1-based position in
          the tenant evaluation order. Rules in between shift accordingly.
          Returns all rules in their new order, using a valid management key.
        keywords: api, tenant auth access policy management
  /v1/mgmt/authaccess/settings/tenant/{tenantId}:
    get:
      tags: []
      summary: Get tenant auth access policy settings
      description: >-
        Get the tenant-level auth access policy settings: the default action and
        the full rule evaluation order, using a valid management key.
      operationId: GetTenantAuthAccessSettings
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: >-
          Get tenant auth access policy settings | Tenant Auth Access Policy
          Management
        description: >-
          Get the tenant-level auth access policy settings: the default action
          and the full rule evaluation order, using a valid management key.
        keywords: api, tenant auth access policy management
    post:
      tags: []
      summary: Set tenant auth access policy settings
      description: >-
        Update the tenant-level auth access policy settings. ruleIds sets the
        full evaluation order and must list every rule exactly once. Fields that
        are not sent keep their stored values, using a valid management key.
      operationId: SetTenantAuthAccessSettings
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthAccessSettings'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthAccessSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAuthAccessPolicyManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: >-
          Set tenant auth access policy settings | Tenant Auth Access Policy
          Management
        description: >-
          Update the tenant-level auth access policy settings. ruleIds sets the
          full evaluation order and must list every rule exactly once. Fields
          that are not sent keep their stored values, using a valid management
          key.
        keywords: api, tenant auth access policy management
  /v1/mgmt/authz/schema/save:
    post:
      tags: []
      summary: Save an authz schema
      description: Save (create or update) an authz schema for your project.
      operationId: SaveSchema
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveSchemaRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveSchemaResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 1
      x-meta:
        title: Save an authz schema | Authz
        description: Save (create or update) an authz schema for your project.
        keywords: api, authz
  /v1/mgmt/authz/schema/delete:
    post:
      tags: []
      summary: Delete an authz schema
      description: Delete an authz schema thus removing authz from your project.
      operationId: DeleteSchema
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteSchemaRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSchemaResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 2
      x-sdk: true
      x-meta:
        title: Delete an authz schema | Authz
        description: Delete an authz schema thus removing authz from your project.
        keywords: api, authz
  /v1/mgmt/authz/schema/load:
    post:
      tags: []
      summary: Load an authz schema
      description: Load an authz schema for your project.
      operationId: LoadSchema
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadSchemaRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadSchemaResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 3
      x-meta:
        title: Load an authz schema | Authz
        description: Load an authz schema for your project.
        keywords: api, authz
  /v1/mgmt/authz/ns/save:
    post:
      tags: []
      summary: Save an authz namespace
      description: Save (create or update) an authz namespace for your project.
      operationId: SaveNamespace
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveNamespaceRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveNamespaceResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 4
      x-meta:
        title: Save an authz namespace | Authz
        description: Save (create or update) an authz namespace for your project.
        keywords: api, authz
  /v1/mgmt/fga/schema/dryrun:
    post:
      tags: []
      summary: Validate an authz schema and preview the changes
      description: Preview schema diff between existing and new schema, without saving it.
      operationId: DryRunSchema
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveDSLSchemaRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveSchemaDryRunResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authz
      x-order: 4
      x-sdk: true
      x-meta:
        title: Validate an authz schema and preview the changes | Authz
        description: >-
          Preview schema diff between existing and new schema, without saving
          it.
        keywords: api, authz
  /v1/mgmt/authz/ns/delete:
    post:
      tags: []
      summary: Delete an authz namespace
      description: Delete an authz namespace and remove all related relations.
      operationId: DeleteNamespace
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteNamespaceRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteNamespaceResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 5
      x-meta:
        title: Delete an authz namespace | Authz
        description: Delete an authz namespace and remove all related relations.
        keywords: api, authz
  /v1/mgmt/authz/rd/save:
    post:
      tags: []
      summary: Save an authz relation definition
      description: Save (create or update) an authz relation definition for your project.
      operationId: SaveRelationDefinition
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveRelationDefinitionRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveRelationDefinitionResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 6
      x-meta:
        title: Save an authz relation definition | Authz
        description: Save (create or update) an authz relation definition for your project.
        keywords: api, authz
  /v1/mgmt/authz/rd/delete:
    post:
      tags: []
      summary: Delete an authz relation definition
      description: >-
        Delete an authz relation definition for your project and remove all
        related relations.
      operationId: DeleteRelationDefinition
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteRelationDefinitionRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteRelationDefinitionResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 7
      x-meta:
        title: Delete an authz relation definition | Authz
        description: >-
          Delete an authz relation definition for your project and remove all
          related relations.
        keywords: api, authz
  /v1/mgmt/authz/re/create:
    post:
      tags: []
      summary: Create a list of authz relations
      description: Create a list of authz relations.
      operationId: CreateRelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRelationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateRelationsResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 8
      x-meta:
        title: Create a list of authz relations | Authz
        description: Create a list of authz relations.
        keywords: api, authz
  /v1/mgmt/authz/re/delete:
    post:
      tags: []
      summary: Delete a list of authz relations
      description: Delete a list of authz relations.
      operationId: DeleteRelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteRelationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteRelationsResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 9
      x-meta:
        title: Delete a list of authz relations | Authz
        description: Delete a list of authz relations.
        keywords: api, authz
  /v1/mgmt/authz/re/deleteresources:
    post:
      tags: []
      summary: Delete all relations for a list of resources
      description: Delete all relations for the given list of resources.
      operationId: DeleteRelationsForResources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteRelationsForResourcesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteRelationsForResourcesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 10
      x-sdk: true
      x-meta:
        title: Delete all relations for a list of resources | Authz
        description: Delete all relations for the given list of resources.
        keywords: api, authz
  /v1/mgmt/authz/re/deleteresourcesrelations:
    post:
      tags: []
      summary: Delete all relations with matching resourceIds for a list of resources
      description: >-
        Delete all relations for the given list of resources in which they are
        the resource.
      operationId: DeleteResourceRelationsForResources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteResourceRelationsForResourcesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/DeleteResourceRelationsForResourcesResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authz
      x-order: 10
      x-sdk: true
      x-meta:
        title: >-
          Delete all relations with matching resourceIds for a list of resources
          | Authz
        description: >-
          Delete all relations for the given list of resources in which they are
          the resource.
        keywords: api, authz
  /v1/mgmt/authz/re/has:
    post:
      tags: []
      summary: Check a list of relation queries
      description: Check a list of relation queries.
      operationId: HasRelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HasRelationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HasRelationsResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 11
      x-meta:
        title: Check a list of relation queries | Authz
        description: Check a list of relation queries.
        keywords: api, authz
  /v1/mgmt/authz/re/who:
    post:
      tags: []
      summary: Query who can access resource with relation
      description: >-
        Return a list of users who can access a given resource with given
        relation.
      operationId: WhoCanAccess
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WhoCanAccessRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoCanAccessResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 12
      x-sdk: true
      x-meta:
        title: Query who can access resource with relation | Authz
        description: >-
          Return a list of users who can access a given resource with given
          relation.
        keywords: api, authz
  /v1/mgmt/authz/re/resource:
    post:
      tags: []
      summary: Load a list of defined relations for the given resource
      description: Load a list of defined relations for the given resource.
      operationId: ResourceRelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResourceRelationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceRelationsResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 13
      x-meta:
        title: Load a list of defined relations for the given resource | Authz
        description: Load a list of defined relations for the given resource.
        keywords: api, authz
  /v1/mgmt/authz/re/targets:
    post:
      tags: []
      summary: Load a list of defined relations for the given list of targets
      description: >-
        Load a list of defined relations for the given list of targets without
        recursively traversing the relation tree.
      operationId: TargetsRelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TargetsRelationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TargetsRelationsResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 14
      x-meta:
        title: Load a list of defined relations for the given list of targets | Authz
        description: >-
          Load a list of defined relations for the given list of targets without
          recursively traversing the relation tree.
        keywords: api, authz
  /v1/mgmt/authz/re/targetall:
    post:
      tags: []
      summary: >-
        Load a list of relations for the given target including all derived
        relations
      description: >-
        Load a list of relations for the given target including all derived
        relations.
      operationId: WhatCanTargetAccess
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WhatCanTargetAccessRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatCanTargetAccessResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 15
      x-sdk: true
      x-meta:
        title: >-
          Load a list of relations for the given target including all derived
          relations | Authz
        description: >-
          Load a list of relations for the given target including all derived
          relations.
        keywords: api, authz
  /v1/mgmt/authz/re/targetwithrelation:
    post:
      tags: []
      summary: >-
        Load the resources that the target has the given relation to including
        all derived relationss
      description: >-
        Load the resources that the target has the given relation to including
        all derived relations
      operationId: WhatCanTargetAccessWithRelation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WhatCanTargetAccessWithRelationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatCanTargetAccessWithRelationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: authz
      x-order: 15
      x-sdk: true
      x-meta:
        title: >-
          Load the resources that the target has the given relation to including
          all derived relationss | Authz
        description: >-
          Load the resources that the target has the given relation to including
          all derived relations
        keywords: api, authz
  /v1/mgmt/authz/getmodified:
    post:
      tags: []
      summary: Return the list of targets and resources changed since the given date
      description: >-
        Return the list of targets and resources changed since the given date.
        Should be used to invalidate local caches.
      operationId: GetModified
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetModifiedRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetModifiedResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 16
      x-sdk: true
      x-meta:
        title: >-
          Return the list of targets and resources changed since the given date
          | Authz
        description: >-
          Return the list of targets and resources changed since the given date.
          Should be used to invalidate local caches.
        keywords: api, authz
  /v1/mgmt/connector:
    get:
      tags: []
      summary: Get connector
      description: >-
        Get a single connector by id, using a valid management key, with its
        configuration. Secret values are returned as `PLACEHOLDER_VALUE`.
      operationId: GetConnector
      parameters:
        - name: id
          in: query
          description: >-
            Required. The connector id, as CreateConnector and LoadAllConnectors
            return it; ids starting with `MP` are
             messaging providers.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Connector'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: connectorManagement
      x-order: 2
      x-meta:
        title: Get connector | Connector Management
        description: >-
          Get a single connector by id, using a valid management key, with its
          configuration. Secret values are returned as `PLACEHOLDER_VALUE`.
        keywords: api, connector management
    put:
      tags: []
      summary: Update connector
      description: >-
        Update a single connector, using a valid management key. This is a full
        replace, not a patch: get the connector first with GetConnector and send
        every field back with your changes, including `name`, `description` and
        the full `configuration`. Send `PLACEHOLDER_VALUE` to keep a stored
        secret; an omitted key is cleared, or reset to its default when it has
        one, and omitting a required secret fails validation. The `type` cannot
        change. The configuration is checked and filled as on create, except for
        messaging providers (ids starting with `MP`).
      operationId: UpdateConnector
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Connector'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Connector'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: connectorManagement
      x-order: 3
      x-meta:
        title: Update connector | Connector Management
        description: >-
          Update a single connector, using a valid management key. This is a
          full replace, not a patch: get the connector first with GetConnector
          and send every field back with your changes, including `name`,
          `description` and the full `configuration`. Send `PLACEHOLDER_VALUE`
          to keep a stored secret; an omitted key is cleared, or reset to its
          default when it has one, and omitting a required secret fails
          validation. The `type` cannot change. The configuration is checked and
          filled as on create, except for messaging providers (ids starting with
          `MP`).
        keywords: api, connector management
    post:
      tags: []
      summary: Create connector
      description: >-
        Create a connector from a template, using a valid management key. `type`
        is the template id from LoadAllConnectorTemplates, and `configuration`
        holds the template's fields by name as GetConnectorTemplate describes
        them. The server checks the configuration against the template before
        saving it: required fields must be set, values must match their field's
        type, allowed options and dependencies, unknown fields are rejected, and
        missing fields with a default are filled in. Returns the stored
        connector, with secret values as `PLACEHOLDER_VALUE` and defaults filled
        in. Messaging provider types such as `sendgrid`, except `smtp`, are
        stored as messaging providers with ids starting with `MP` and are not
        checked, since they have no template. A connector does nothing by
        itself; the template's `types` says how it is used: a `flows` connector
        is called from a flow by the `connector` action with the connector's id
        (agents on the Descope MCP find it with GetActionCatalog, query
        `connector`), or automatically on events when the template has
        auto-trigger settings and they are on, and an `audit` connector streams
        audit events while its `auditEnabled` configuration field is true (the
        default), or always when the template has no such field.
      operationId: CreateConnector
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Connector'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Connector'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: connectorManagement
      x-order: 1
      x-meta:
        title: Create connector | Connector Management
        description: >-
          Create a connector from a template, using a valid management key.
          `type` is the template id from LoadAllConnectorTemplates, and
          `configuration` holds the template's fields by name as
          GetConnectorTemplate describes them. The server checks the
          configuration against the template before saving it: required fields
          must be set, values must match their field's type, allowed options and
          dependencies, unknown fields are rejected, and missing fields with a
          default are filled in. Returns the stored connector, with secret
          values as `PLACEHOLDER_VALUE` and defaults filled in. Messaging
          provider types such as `sendgrid`, except `smtp`, are stored as
          messaging providers with ids starting with `MP` and are not checked,
          since they have no template. A connector does nothing by itself; the
          template's `types` says how it is used: a `flows` connector is called
          from a flow by the `connector` action with the connector's id (agents
          on the Descope MCP find it with GetActionCatalog, query `connector`),
          or automatically on events when the template has auto-trigger settings
          and they are on, and an `audit` connector streams audit events while
          its `auditEnabled` configuration field is true (the default), or
          always when the template has no such field.
        keywords: api, connector management
    delete:
      tags: []
      summary: Delete connector
      description: >-
        Delete a single connector by id, using a valid management key. Flows
        that use the connector fail at that step until they are changed.
      operationId: DeleteConnector
      parameters:
        - name: id
          in: query
          description: >-
            Required. The connector id, as CreateConnector and LoadAllConnectors
            return it; ids starting with `MP` are
             messaging providers.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: connectorManagement
      x-order: 4
      x-meta:
        title: Delete connector | Connector Management
        description: >-
          Delete a single connector by id, using a valid management key. Flows
          that use the connector fail at that step until they are changed.
        keywords: api, connector management
  /v1/mgmt/connector/all:
    get:
      tags: []
      summary: Load all connectors
      description: >-
        Load all of the project's connectors, using a valid management key. Each
        connector is returned as GetConnector returns it, with its configuration
        and with secret values as `PLACEHOLDER_VALUE`. This includes messaging
        provider connectors, whose ids start with `MP`, and leaves out
        connectors that Descope manages internally, such as outbound SCIM
        connectors, as the console does.
      operationId: LoadAllConnectors
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Connectors'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: connectorManagement
      x-order: 5
      x-meta:
        title: Load all connectors | Connector Management
        description: >-
          Load all of the project's connectors, using a valid management key.
          Each connector is returned as GetConnector returns it, with its
          configuration and with secret values as `PLACEHOLDER_VALUE`. This
          includes messaging provider connectors, whose ids start with `MP`, and
          leaves out connectors that Descope manages internally, such as
          outbound SCIM connectors, as the console does.
        keywords: api, connector management
  /v1/mgmt/connector/template/all:
    get:
      tags: []
      summary: Load all connector templates
      description: >-
        Load the connector templates the project can create connectors from,
        using a valid management key. Each template's `id` is the `type` to pass
        to CreateConnector, and `name` is its display name. Templates are
        returned without their fields; call GetConnectorTemplate for one
        template's configuration fields before creating a connector. Internal
        and early-release templates are not listed, and a template with a
        `requiredLicense` is listed only when the company has that license.
        Messaging providers such as `sendgrid` have no template and are not
        listed. SSO and social login (OAuth) providers are not connectors; they
        have their own operations.
      operationId: LoadAllConnectorTemplates
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorTemplates'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: connectorManagement
      x-order: 6
      x-meta:
        title: Load all connector templates | Connector Management
        description: >-
          Load the connector templates the project can create connectors from,
          using a valid management key. Each template's `id` is the `type` to
          pass to CreateConnector, and `name` is its display name. Templates are
          returned without their fields; call GetConnectorTemplate for one
          template's configuration fields before creating a connector. Internal
          and early-release templates are not listed, and a template with a
          `requiredLicense` is listed only when the company has that license.
          Messaging providers such as `sendgrid` have no template and are not
          listed. SSO and social login (OAuth) providers are not connectors;
          they have their own operations.
        keywords: api, connector management
  /v1/mgmt/connector/template:
    get:
      tags: []
      summary: Get connector template
      description: >-
        Get one connector template by id, using a valid management key, with its
        configuration fields: each field's name, type, whether it is required,
        its default value, its allowed values, the field it depends on, and its
        documentation. Build the `configuration` for CreateConnector from these
        fields; the server checks it against them. Secret values come from the
        user: don't invent them unless the user asks for a placeholder. An
        `httpAuth` value is an object with `method` and that method's settings:
        `none`; `bearerToken` with `bearerToken`; `apiKey` with `apiKey: {key,
        token}`; `basic` with `basic: {username, password}`;
        `oauth2ClientCredentials` with `oauth2ClientCredentials: {clientId,
        clientSecret, authUrl, authStyle}`, all required, where `authStyle` is
        `body` or `header` with no default, plus optional `scopes` as one
        space-separated string. A `secret-object` value is a list of `{key,
        value, secret}` entries; `secret` defaults to false, and a secret entry
        is read back as `PLACEHOLDER_VALUE` with `secret: true`. Leave out
        fields of type `cloudformation-link`, a console-only link, and
        `readonly-string`, which Descope generates on create and cannot be
        changed; give the generated value from the returned connector to the
        user, such as an AWS external ID to put in the IAM role's trust policy.
        Returns not found for unknown templates.
      operationId: GetConnectorTemplate
      parameters:
        - name: id
          in: query
          description: The template id, such as `http`.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectorTemplate'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: connectorManagement
      x-order: 7
      x-meta:
        title: Get connector template | Connector Management
        description: >-
          Get one connector template by id, using a valid management key, with
          its configuration fields: each field's name, type, whether it is
          required, its default value, its allowed values, the field it depends
          on, and its documentation. Build the `configuration` for
          CreateConnector from these fields; the server checks it against them.
          Secret values come from the user: don't invent them unless the user
          asks for a placeholder. An `httpAuth` value is an object with `method`
          and that method's settings: `none`; `bearerToken` with `bearerToken`;
          `apiKey` with `apiKey: {key, token}`; `basic` with `basic: {username,
          password}`; `oauth2ClientCredentials` with `oauth2ClientCredentials:
          {clientId, clientSecret, authUrl, authStyle}`, all required, where
          `authStyle` is `body` or `header` with no default, plus optional
          `scopes` as one space-separated string. A `secret-object` value is a
          list of `{key, value, secret}` entries; `secret` defaults to false,
          and a secret entry is read back as `PLACEHOLDER_VALUE` with `secret:
          true`. Leave out fields of type `cloudformation-link`, a console-only
          link, and `readonly-string`, which Descope generates on create and
          cannot be changed; give the generated value from the returned
          connector to the user, such as an AWS external ID to put in the IAM
          role's trust policy. Returns not found for unknown templates.
        keywords: api, connector management
  /v1/mgmt/descoper:
    get:
      tags: []
      summary: Get Descoper
      description: Get a descoper
      operationId: GetDescoper
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetDescoperResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: descopers
      x-order: 2
      x-sdk: true
      x-meta:
        title: Get Descoper | Descopers
        description: Get a descoper
        keywords: api, descopers
    put:
      tags: []
      summary: Create Descoper
      description: Create a descoper
      operationId: CreateDescopers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDescopersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDescopersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: descopers
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create Descoper | Descopers
        description: Create a descoper
        keywords: api, descopers
    delete:
      tags: []
      summary: Delete Descoper
      description: Delete a descoper
      operationId: DeleteDescoper
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteDescoperResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: descopers
      x-order: 4
      x-sdk: true
      x-meta:
        title: Delete Descoper | Descopers
        description: Delete a descoper
        keywords: api, descopers
    patch:
      tags: []
      summary: Update Descoper
      description: Update a descoper
      operationId: UpdateDescoper
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateDescoperRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateDescoperResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: descopers
      x-order: 3
      x-sdk: true
      x-meta:
        title: Update Descoper | Descopers
        description: Update a descoper
        keywords: api, descopers
  /v1/mgmt/descoper/list:
    post:
      tags: []
      summary: List Descopers
      description: List descopers
      operationId: ListDescopers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListDescopersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListDescopersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: descopers
      x-order: 5
      x-sdk: true
      x-meta:
        title: List Descopers | Descopers
        description: List descopers
        keywords: api, descopers
  /v1/mgmt/embeddedlink/settings:
    get:
      tags: []
      summary: Get embedded link settings
      description: Get the project's embedded link settings, using a valid management key.
      operationId: GetEmbeddedLinkSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddedLinkSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: embeddedLinkManagement
      x-order: 1
      x-meta:
        title: Get embedded link settings | Embedded Link Management
        description: >-
          Get the project's embedded link settings, using a valid management
          key.
        keywords: api, embedded link management
    post:
      tags: []
      summary: Set embedded link settings
      description: Set the project's embedded link settings, using a valid management key.
      operationId: SetEmbeddedLinkSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmbeddedLinkSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: embeddedLinkManagement
      x-order: 2
      x-meta:
        title: Set embedded link settings | Embedded Link Management
        description: >-
          Set the project's embedded link settings, using a valid management
          key.
        keywords: api, embedded link management
  /v1/mgmt/enchantedlink/settings:
    get:
      tags: []
      summary: Get enchanted link settings
      description: Get the project's enchanted link settings, using a valid management key.
      operationId: GetEnchantedLinkSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnchantedLinkSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enchantedLinkManagement
      x-order: 1
      x-meta:
        title: Get enchanted link settings | Enchanted Link Management
        description: >-
          Get the project's enchanted link settings, using a valid management
          key.
        keywords: api, enchanted link management
    post:
      tags: []
      summary: Set enchanted link settings
      description: Set the project's enchanted link settings, using a valid management key.
      operationId: SetEnchantedLinkSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnchantedLinkSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enchantedLinkManagement
      x-order: 2
      x-meta:
        title: Set enchanted link settings | Enchanted Link Management
        description: >-
          Set the project's enchanted link settings, using a valid management
          key.
        keywords: api, enchanted link management
  /v1/mgmt/engine/create:
    post:
      tags: []
      summary: Create engine
      description: >-
        Create a new engine, returning its ID and secret. Requires a valid
        management key.
      operationId: CreateEngine
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateEngineRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateEngineResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enginesManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create engine | Engines Management
        description: >-
          Create a new engine, returning its ID and secret. Requires a valid
          management key.
        keywords: api, engines management
  /v1/mgmt/engine/update:
    post:
      tags: []
      summary: Update engine
      description: Update an existing engine, using a valid management key.
      operationId: UpdateEngine
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEngineRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateEngineResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enginesManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update engine | Engines Management
        description: Update an existing engine, using a valid management key.
        keywords: api, engines management
  /v1/mgmt/engine/delete:
    post:
      tags: []
      summary: Delete engine
      description: Delete an engine, using a valid management key.
      operationId: DeleteEngine
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteEngineRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteEngineResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enginesManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Delete engine | Engines Management
        description: Delete an engine, using a valid management key.
        keywords: api, engines management
  /v1/mgmt/engine/load:
    get:
      tags: []
      summary: Load engine by ID
      description: Load an engine by ID, using a valid management key.
      operationId: LoadEngine
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadEngineResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enginesManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Load engine by ID | Engines Management
        description: Load an engine by ID, using a valid management key.
        keywords: api, engines management
  /v1/mgmt/engines/load:
    get:
      tags: []
      summary: Load all engines
      description: Load all engines for the project, using a valid management key.
      operationId: LoadEngines
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadEnginesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enginesManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Load all engines | Engines Management
        description: Load all engines for the project, using a valid management key.
        keywords: api, engines management
  /v1/mgmt/engine/rotate:
    post:
      tags: []
      summary: Rotate engine secret
      description: >-
        Rotate an engine's secret, returning the new secret. The previous secret
        is immediately invalidated. Requires a valid management key.
      operationId: RotateEngineSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateEngineSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateEngineSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: enginesManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Rotate engine secret | Engines Management
        description: >-
          Rotate an engine's secret, returning the new secret. The previous
          secret is immediately invalidated. Requires a valid management key.
        keywords: api, engines management
  /v1/mgmt/fga/check:
    post:
      tags: []
      summary: Check FGA Permission
      description: >-
        ### Check FGA permission


        This endpoint allows you to check if a target has a specific relation to
        a resource using Fine-Grained Authorization.
      operationId: Check
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 1
      x-sdk: true
      x-meta:
        title: Check FGA Permission | Fga
        description: Check FGA permission
        keywords: api, fga
  /v1/mgmt/fga/relations:
    post:
      tags: []
      summary: Get FGA Relations
      description: >-
        ### Get FGA relations


        This endpoint allows you to retrieve relations for a given target or
        resource using Fine-Grained Authorization.
      operationId: CreateFGARelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTuplesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTuplesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 2
      x-sdk: true
      x-meta:
        title: Get FGA Relations | Fga
        description: Get FGA relations
        keywords: api, fga
    delete:
      tags: []
      summary: Delete All FGA Relations
      description: Delete all project FGA relations
      operationId: DeleteAllFGARelations
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAllTuplesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 3
      x-sdk: true
      x-meta:
        title: Delete All FGA Relations | Fga
        description: Delete all project FGA relations
        keywords: api, fga
  /v1/mgmt/fga/mappable/resources:
    post:
      tags: []
      summary: Search for FGA mappable resources
      description: Search for FGA mappable resources.
      operationId: SearchFGAMappableResources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchFGAMappableResourcesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchMappableResourcesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 3
      x-sdk: true
      x-meta:
        title: Search for FGA mappable resources | Fga
        description: Search for FGA mappable resources.
        keywords: api, fga
    get:
      x-order: 6
      x-publishYaml: fga
      summary: Get Mappable Resources
      description: >-
        ### Get mappable resources


        This endpoint allows you to retrieve mappable resources for Fine-Grained
        Authorization.
      x-meta:
        title: Get Mappable Resources | Fga
        description: Get mappable resources
        keywords: api, fga
  /v1/mgmt/fga/relations/delete:
    post:
      tags: []
      summary: Delete FGA Relations
      description: >-
        ### Delete FGA relations


        This endpoint allows you to delete relations using Fine-Grained
        Authorization.
      operationId: DeleteFGARelations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteTuplesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteTuplesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 3
      x-sdk: true
      x-meta:
        title: Delete FGA Relations | Fga
        description: Delete FGA relations
        keywords: api, fga
  /v1/mgmt/fga/authzen/access/v1/evaluation:
    post:
      tags: []
      summary: AuthZEN Access Evaluation
      description: Evaluate a single OpenID AuthZEN Access Evaluation request.
      operationId: AuthZenEvaluation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthZenEvaluationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthZenEvaluationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 4
      x-meta:
        title: AuthZEN Access Evaluation | Fga
        description: Evaluate a single OpenID AuthZEN Access Evaluation request.
        keywords: api, fga
  /v1/mgmt/fga/schema:
    get:
      tags: []
      summary: Get FGA Schema
      description: >-
        ### Get FGA schema


        This endpoint allows you to retrieve the current Fine-Grained
        Authorization schema for your project.
      operationId: GetFGASchema
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadDSLSchemaResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 4
      x-sdk: true
      x-meta:
        title: Get FGA Schema | Fga
        description: Get FGA schema
        keywords: api, fga
    post:
      tags: []
      summary: Save FGA Schema
      description: >-
        ### Save FGA schema


        This endpoint allows you to save (create or update) the Fine-Grained
        Authorization schema for your project.
      operationId: CreateFGASchema
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveDSLSchemaRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveDSLSchemaResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 5
      x-sdk: true
      x-meta:
        title: Save FGA Schema | Fga
        description: Save FGA schema
        keywords: api, fga
  /v1/mgmt/fga/authzen/access/v1/evaluations:
    post:
      tags: []
      summary: AuthZEN Access Evaluations
      description: >-
        Evaluate a batch of OpenID AuthZEN Access Evaluation requests, with
        optional default values and combining semantics (execute_all,
        deny_on_first_deny, permit_on_first_permit).
      operationId: AuthZenEvaluations
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthZenEvaluationsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthZenEvaluationsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 5
      x-meta:
        title: AuthZEN Access Evaluations | Fga
        description: >-
          Evaluate a batch of OpenID AuthZEN Access Evaluation requests, with
          optional default values and combining semantics (execute_all,
          deny_on_first_deny, permit_on_first_permit).
        keywords: api, fga
  /v1/mgmt/fga/authzen/access/v1/search/subject:
    post:
      tags: []
      summary: AuthZEN Subject Search
      description: >-
        Return the subjects permitted to perform the given action on the given
        resource (OpenID AuthZEN Subject Search API).
      operationId: AuthZenSubjectSearch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthZenSubjectSearchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthZenSubjectSearchResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 6
      x-meta:
        title: AuthZEN Subject Search | Fga
        description: >-
          Return the subjects permitted to perform the given action on the given
          resource (OpenID AuthZEN Subject Search API).
        keywords: api, fga
  /v1/mgmt/fga/authzen/access/v1/search/resource:
    post:
      tags: []
      summary: AuthZEN Resource Search
      description: >-
        Return the resources of the given type the subject may access with the
        given action (OpenID AuthZEN Resource Search API).
      operationId: AuthZenResourceSearch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthZenResourceSearchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthZenResourceSearchResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 7
      x-meta:
        title: AuthZEN Resource Search | Fga
        description: >-
          Return the resources of the given type the subject may access with the
          given action (OpenID AuthZEN Resource Search API).
        keywords: api, fga
  /v1/mgmt/fga/mappable/schema:
    get:
      tags: []
      summary: Get Mappable Schema
      description: >-
        ### Get mappable schema


        This endpoint allows you to retrieve the mappable schema for
        Fine-Grained Authorization.
      operationId: GetFGAMappableSchema
      parameters:
        - name: tenantId
          in: query
          schema:
            type: string
          required: true
        - name: resourcesLimit
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMappableSchemaResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 7
      x-sdk: true
      x-meta:
        title: Get Mappable Schema | Fga
        description: Get mappable schema
        keywords: api, fga
  /v1/mgmt/fga/authzen/access/v1/search/action:
    post:
      tags: []
      summary: AuthZEN Action Search
      description: >-
        Return the actions the subject may perform on the given resource (OpenID
        AuthZEN Action Search API).
      operationId: AuthZenActionSearch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthZenActionSearchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthZenActionSearchResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 8
      x-meta:
        title: AuthZEN Action Search | Fga
        description: >-
          Return the actions the subject may perform on the given resource
          (OpenID AuthZEN Action Search API).
        keywords: api, fga
  /v1/mgmt/fga/resources/load:
    post:
      tags: []
      summary: Load FGA Resources
      description: >-
        ### Load FGA resources


        This endpoint allows you to load resources for Fine-Grained
        Authorization.
      operationId: LoadResourcesDetails
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadResourcesDetailsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadResourcesDetailsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 8
      x-sdk: true
      x-meta:
        title: Load FGA Resources | Fga
        description: Load FGA resources
        keywords: api, fga
  /v1/mgmt/fga/resources/save:
    post:
      tags: []
      summary: Save FGA Resources
      description: >-
        ### Save FGA resources


        This endpoint allows you to save resources for Fine-Grained
        Authorization.
      operationId: SaveResourcesDetails
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveResourcesDetailsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveResourcesDetailsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-order: 9
      x-sdk: true
      x-meta:
        title: Save FGA Resources | Fga
        description: Save FGA resources
        keywords: api, fga
  /v1/mgmt/fga/backup:
    post:
      tags: []
      summary: Create FGA Backup
      description: Create a new FGA backup.
      operationId: CreateFGABackup
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBackupRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateBackupResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-meta:
        title: Create FGA Backup | Fga
        description: Create a new FGA backup.
        keywords: api, fga
  /v1/mgmt/fga/backup/{backupId}:
    get:
      tags: []
      summary: Get FGA Backup
      description: Get an FGA backup by ID.
      operationId: GetFGABackup
      parameters:
        - name: backupId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBackupResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-meta:
        title: Get FGA Backup | Fga
        description: Get an FGA backup by ID.
        keywords: api, fga
    delete:
      tags: []
      summary: Delete FGA Backup
      description: Delete an FGA backup.
      operationId: DeleteFGABackup
      parameters:
        - name: backupId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteBackupResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-meta:
        title: Delete FGA Backup | Fga
        description: Delete an FGA backup.
        keywords: api, fga
  /v1/mgmt/fga/backup/{backupId}/restore:
    post:
      tags: []
      summary: Restore FGA Backup
      description: Restore from an FGA backup.
      operationId: RestoreFGABackup
      parameters:
        - name: backupId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RestoreBackupRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestoreBackupResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-meta:
        title: Restore FGA Backup | Fga
        description: Restore from an FGA backup.
        keywords: api, fga
  /v1/mgmt/fga/backups:
    get:
      tags: []
      summary: List FGA Backups
      description: List all FGA backups.
      operationId: ListFGABackups
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListBackupsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: fga
      x-meta:
        title: List FGA Backups | Fga
        description: List all FGA backups.
        keywords: api, fga
  /v1/mgmt/flow/async/result:
    post:
      tags: []
      summary: Get Management Flow async result
      description: >-
        Get the result from an async management flow execution (if any), using a
        valid management key.
      operationId: GetManagementFlowAsyncResult
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetManagementFlowAsyncResultRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunManagementFlowResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Get Management Flow async result | Flow Management
        description: >-
          Get the result from an async management flow execution (if any), using
          a valid management key.
        keywords: api, flow management
  /v1/mgmt/flow/async/run:
    post:
      tags: []
      summary: Run Management Flow asynchronously
      description: Run a management flow asynchronously, using a valid management key.
      operationId: RunManagementFlowAsync
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunManagementFlowRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunManagementFlowAsyncResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Run Management Flow asynchronously | Flow Management
        description: Run a management flow asynchronously, using a valid management key.
        keywords: api, flow management
  /v1/mgmt/flow/list:
    post:
      tags: []
      summary: List/Search Flows
      description: >-
        ### List or search flows within a project utilizing a management key.


        This endpoint is used to list or search flows within a project.


        To list all flows, send an empty body such as: `{ }` or `{ "ids": [] }`.


        To search for a flow or several flows, send a body with the flowIds you
        want to search such as `{ "ids": ["sign-in"] }` or `{ "ids": ["sign-in",
        "sign-up"] }`.


        ### See Also

        - See [Flow Overview](/customize/flows/) for more information on flows.

        - See [Manage Flows](/customize/manage_flows/) for more information on
        managing (export, import, delete, disable, enable) flows.
      operationId: ListFlows
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchFlowsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFlowsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: List/Search Flows | Flow Management
        description: List or search flows within a project utilizing a management key.
        keywords: api, flow management
  /v1/mgmt/flow/run:
    post:
      tags: []
      summary: Run Management Flow
      description: Run a management flow, using a valid management key.
      operationId: RunManagementFlow
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunManagementFlowRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunManagementFlowResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Run Management Flow | Flow Management
        description: Run a management flow, using a valid management key.
        keywords: api, flow management
  /v1/mgmt/flow/externalauth/complete:
    post:
      tags: []
      summary: Complete External Authentication
      description: >-
        Complete an external authentication flow step. Called by the customer's
        backend after authenticating the user on their own page. Requires a
        valid management key.
      operationId: CompleteExternalAuthFlow
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompleteExternalAuthRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompleteExternalAuthResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 2
      x-meta:
        title: Complete External Authentication | Flow Management
        description: >-
          Complete an external authentication flow step. Called by the
          customer's backend after authenticating the user on their own page.
          Requires a valid management key.
        keywords: api, flow management
  /v2/mgmt/flow/export:
    post:
      tags: []
      summary: Export Flow
      description: >-
        ### Export an existing flow from a project utilizing a management key.


        This endpoint is used to export an existing flow from a project. The
        response is the JSON which includes the flow and associated screens.


        ### See Also

        - See [Flow Overview](/customize/flows/) for more information on flows.

        - See [Manage Flows](/customize/manage_flows/) for more information on
        managing (export, import, delete, disable, enable) flows.
      operationId: ExportFlow
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportFlowRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportFlowResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Export Flow | Flow Management
        description: Export an existing flow from a project utilizing a management key.
        keywords: api, flow management
  /v2/mgmt/flow/import:
    post:
      tags: []
      summary: Import Flow
      description: >-
        ### Import a flow within a project utilizing a management key.


        This endpoint is used to import a flow to a project. The request items
        for the `flow` and `screen` this endpoint can be received from the
        export flow endpoint.


        ### See Also

        - See [Flow Overview](/customize/flows/) for more information on flows.

        - See [Manage Flows](/customize/manage_flows/) for more information on
        managing (export, import, delete, disable, enable) flows.
      operationId: ImportFlow
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportFlowRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Import Flow | Flow Management
        description: Import a flow within a project utilizing a management key.
        keywords: api, flow management
  /v1/mgmt/flow/delete:
    post:
      tags: []
      summary: Delete Flow
      description: >-
        ### Delete a flow within a project utilizing a management key.


        This endpoint is used to delete a flow from a project by giving an
        existing flow ID to be deleted.


        ### See Also

        - See [Flow Overview](/customize/flows/) for more information on flows.

        - See [Manage Flows](/customize/manage_flows/) for more information on
        managing (export, import, delete, disable, enable) flows.
      operationId: DeleteFlows
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteFlowsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Delete Flow | Flow Management
        description: Delete a flow within a project utilizing a management key.
        keywords: api, flow management
  /v2/mgmt/theme/export:
    post:
      tags: []
      summary: Export Theme
      description: >-
        ### Export a theme from a project utilizing a management key.


        This endpoint is used to export a theme from a project. The response is
        the JSON of the theme.


        ### See Also

        - See [Styles Overview](/management/project-settings/styles) for more
        information on styles and themes
      operationId: ExportTheme
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportThemeResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Export Theme | Flow Management
        description: Export a theme from a project utilizing a management key.
        keywords: api, flow management
  /v2/mgmt/theme/import:
    post:
      tags: []
      summary: Import Theme
      description: >-
        ### Import a theme to a project utilizing a management key.


        This endpoint is used to import a theme from a project. The request body
        for this endpoint can be received from the export theme endpoint.


        ### See Also

        - See [Styles Overview](/management/project-settings/styles) for more
        information on styles and themes
      operationId: ImportTheme
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportThemeRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Import Theme | Flow Management
        description: Import a theme to a project utilizing a management key.
        keywords: api, flow management
  /v1/mgmt/flow/template/list:
    post:
      tags: []
      summary: List Flow Templates
      description: List all available flow templates
      operationId: ListFlowTemplates
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchFlowTemplatesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFlowTemplatesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 7
      x-meta:
        title: List Flow Templates | Flow Management
        description: List all available flow templates
        keywords: api, flow management
  /v1/mgmt/localization/flow/export:
    post:
      tags: []
      summary: Export Flow Localization
      description: Export flow localization, using a valid management key.
      operationId: ExportFlowLocalization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportFlowLocalizationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportFlowLocalizationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 8
      x-meta:
        title: Export Flow Localization | Flow Management
        description: Export flow localization, using a valid management key.
        keywords: api, flow management
  /v1/mgmt/localization/flow/import:
    post:
      tags: []
      summary: Import Flow Localization
      description: Import flow localization, using a valid management key.
      operationId: ImportFlowLocalization
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportFlowLocalizationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportFlowLocalizationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 9
      x-meta:
        title: Import Flow Localization | Flow Management
        description: Import flow localization, using a valid management key.
        keywords: api, flow management
  /v1/mgmt/widget/list:
    get:
      tags: []
      summary: List all widgets
      description: List all widgets in project
      operationId: ListWidgets
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListWidgetsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 10
      x-meta:
        title: List all widgets | Flow Management
        description: List all widgets in project
        keywords: api, flow management
  /v1/mgmt/flow:
    get:
      tags: []
      summary: Get flow
      description: >-
        Get a single flow by id in its exported representation, using a valid
        management key.
      operationId: GetFlow
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportedFlow'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 11
      x-meta:
        title: Get flow | Flow Management
        description: >-
          Get a single flow by id in its exported representation, using a valid
          management key.
        keywords: api, flow management
    post:
      tags: []
      summary: Set flow
      description: >-
        Create or update a single flow from its exported representation,
        remapping any connector and role references to matching entities in the
        project, using a valid management key.
      operationId: SetFlow
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportedFlow'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 12
      x-meta:
        title: Set flow | Flow Management
        description: >-
          Create or update a single flow from its exported representation,
          remapping any connector and role references to matching entities in
          the project, using a valid management key.
        keywords: api, flow management
    delete:
      tags: []
      summary: Delete flow
      description: Delete a single flow by id, using a valid management key.
      operationId: DeleteFlow
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 13
      x-meta:
        title: Delete flow | Flow Management
        description: Delete a single flow by id, using a valid management key.
        keywords: api, flow management
  /v1/mgmt/widget:
    get:
      tags: []
      summary: Get widget
      description: >-
        Get a single widget by id in its exported representation, using a valid
        management key.
      operationId: GetWidget
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExportedWidget'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 14
      x-meta:
        title: Get widget | Flow Management
        description: >-
          Get a single widget by id in its exported representation, using a
          valid management key.
        keywords: api, flow management
    post:
      tags: []
      summary: Set widget
      description: >-
        Create or update a single widget and its embedded flows from the
        exported representation, remapping any connector and role references to
        matching entities in the project, using a valid management key.
      operationId: SetWidget
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportedWidget'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 15
      x-meta:
        title: Set widget | Flow Management
        description: >-
          Create or update a single widget and its embedded flows from the
          exported representation, remapping any connector and role references
          to matching entities in the project, using a valid management key.
        keywords: api, flow management
    delete:
      tags: []
      summary: Delete widget
      description: Delete a single widget by id, using a valid management key.
      operationId: DeleteWidget
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 16
      x-meta:
        title: Delete widget | Flow Management
        description: Delete a single widget by id, using a valid management key.
        keywords: api, flow management
  /v1/mgmt/theme/tenant/{tenantId}:
    get:
      tags: []
      summary: Get Tenant Theme
      description: >-
        Get the styles a tenant overrides the project theme with, using a valid
        management key. The logo is returned as a base64 data URI, so the
        response can be sent back to Set Tenant Theme unchanged. Returns 404
        when the tenant has no theme of its own, in which case flows for that
        tenant render with the project theme.
      operationId: GetTenantTheme
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantTheme'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 17
      x-sdk: true
      x-meta:
        title: Get Tenant Theme | Flow Management
        description: >-
          Get the styles a tenant overrides the project theme with, using a
          valid management key. The logo is returned as a base64 data URI, so
          the response can be sent back to Set Tenant Theme unchanged. Returns
          404 when the tenant has no theme of its own, in which case flows for
          that tenant render with the project theme.
        keywords: api, flow management
    post:
      tags: []
      summary: Set Tenant Theme
      description: >-
        Create or replace the styles a tenant overrides the project theme with,
        using a valid management key. The styles document replaces the tenant's
        stored one whole, and the stored theme is returned. A logo must be given
        as a base64 data URI; it is published to this tenant's own CDN object
        and never overwrites the project's or another tenant's.
      operationId: SetTenantTheme
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TenantTheme'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantTheme'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 18
      x-sdk: true
      x-meta:
        title: Set Tenant Theme | Flow Management
        description: >-
          Create or replace the styles a tenant overrides the project theme
          with, using a valid management key. The styles document replaces the
          tenant's stored one whole, and the stored theme is returned. A logo
          must be given as a base64 data URI; it is published to this tenant's
          own CDN object and never overwrites the project's or another tenant's.
        keywords: api, flow management
    delete:
      tags: []
      summary: Delete Tenant Theme
      description: >-
        Delete a tenant's theme, using a valid management key. Flows for that
        tenant render with the project theme again. Returns 404 when the tenant
        has no theme of its own.
      operationId: DeleteTenantTheme
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: flowManagement
      x-order: 19
      x-sdk: true
      x-meta:
        title: Delete Tenant Theme | Flow Management
        description: >-
          Delete a tenant's theme, using a valid management key. Flows for that
          tenant render with the project theme again. Returns 404 when the
          tenant has no theme of its own.
        keywords: api, flow management
  /v1/mgmt/group/all:
    post:
      tags: []
      summary: Load All External Groups for a Tenant
      description: >-
        ### Load all external groups for a tenant, using a valid management key.


        This API endpoint allows administrators to load all external groups that
        are associated to a tenant. The response contains an array of group
        objects including the group id, display name, and an array of associated
        members.


        ### Next Steps


        Administrators can review this information and make changes within their
        IdP or if necessary, [Create a SCIM
        Group](/api/management/tenants/scim/create-scim-group), [Update an
        Existing SCIM Group (adding new
        members)](/api/management/tenants/scim/update-scim-group), or [Delete an
        Existing SCIM Group](/api/management/tenants/scim/delete-scim-group)


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: LoadGroups
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadGroupsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadGroupsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: groupManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Load All External Groups for a Tenant | Group Management
        description: Load all external groups for a tenant, using a valid management key.
        keywords: api, group management
  /v1/mgmt/group/member/all:
    post:
      tags: []
      summary: Load All External Groups for Specific Members
      description: >-
        ### Load all external group for specific members, using a valid
        management key.


        This API endpoint allows administrators to load all external groups for
        specific members associated with a specific tenant. The tenantId is
        required and the loginId or userId are optional for further filtering.
        The response contains an array of group objects including the group id,
        display name, and an array of associated members.


        ### Next Steps


        Administrators can review this information and make changes within their
        IdP or if necessary, [Create a SCIM
        Group](/api/management/tenants/scim/create-scim-group), [Update an
        Existing SCIM Group (adding new
        members)](/api/management/tenants/scim/update-scim-group), or [Delete an
        Existing SCIM Group](/api/management/tenants/scim/delete-scim-group)


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: LoadMemberGroups
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadMemberGroupsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadMemberGroupsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: groupManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Load All External Groups for Specific Members | Group Management
        description: >-
          Load all external group for specific members, using a valid management
          key.
        keywords: api, group management
  /v1/mgmt/group/members:
    post:
      tags: []
      summary: Load All Members of a specific External Group
      description: >-
        ### Load all members of a specific External group, using a valid
        management key.


        This API endpoint allows administrators to load all members of a
        specific external group that is associated to a tenant. The response
        contains an array of group objects including the group id, display name,
        and an array of associated members.


        ### Next Steps


        Administrators can review this information and make changes within their
        IdP or if necessary, [Create a SCIM
        Group](/api/management/tenants/scim/create-scim-group), [Update an
        Existing SCIM Group (adding new
        members)](/api/management/tenants/scim/update-scim-group), or [Delete an
        Existing SCIM Group](/api/management/tenants/scim/delete-scim-group)


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: LoadGroupMembers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadGroupMembersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadGroupMembersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: groupManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Load All Members of a specific External Group | Group Management
        description: >-
          Load all members of a specific External group, using a valid
          management key.
        keywords: api, group management
  /v1/mgmt/jwt/templates/create:
    post:
      tags: []
      summary: Create JWT Template
      description: >-
        Create a new JWT template. Strict validation runs first — if it fails,
        the response carries a list of `ValidationIssue`s with stable codes
        (RESERVED_CLAIM_KEY, NAME_MISSING, …) and the template is not saved.
        type must be "user" or "key". authSchema in {default,tenantOnly,none}.
        issuerType in {legacy,inbound,federated}. emptyClaimPolicy in
        {none,nil,delete}. The `template` field is the JSON object whose keys
        are claim names.
      operationId: CreateJwtTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateJwtTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JwtTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: Create JWT Template | Jwt Templates
        description: >-
          Create a new JWT template. Strict validation runs first — if it fails,
          the response carries a list of `ValidationIssue`s with stable codes
          (RESERVED_CLAIM_KEY, NAME_MISSING, …) and the template is not saved.
          type must be "user" or "key". authSchema in {default,tenantOnly,none}.
          issuerType in {legacy,inbound,federated}. emptyClaimPolicy in
          {none,nil,delete}. The `template` field is the JSON object whose keys
          are claim names.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/delete:
    post:
      tags: []
      summary: Delete JWT Template
      description: >-
        Delete a JWT template by id. The project's default templates are
        restored where this one was referenced.
      operationId: DeleteJwtTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteJwtTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: Delete JWT Template | Jwt Templates
        description: >-
          Delete a JWT template by id. The project's default templates are
          restored where this one was referenced.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/library/apply:
    post:
      tags: []
      summary: Apply JWT Template From Library
      description: >-
        Materialise a library entry as a new project JWT template. Optional
        overrides let the caller pick a different name, swap tags, or amend the
        claim body before save. Strict validation runs as if it were a create.
      operationId: ApplyJwtTemplateFromLibrary
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApplyJwtTemplateFromLibraryRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JwtTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: Apply JWT Template From Library | Jwt Templates
        description: >-
          Materialise a library entry as a new project JWT template. Optional
          overrides let the caller pick a different name, swap tags, or amend
          the claim body before save. Strict validation runs as if it were a
          create.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/library/list:
    post:
      tags: []
      summary: List JWT Template Library
      description: >-
        List the curated JWT template library Descope ships — starter templates
        with documented use cases, optional logos, and `experimental` flags.
      operationId: ListJwtTemplateLibrary
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListJwtTemplateLibraryRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListJwtTemplateLibraryResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: List JWT Template Library | Jwt Templates
        description: >-
          List the curated JWT template library Descope ships — starter
          templates with documented use cases, optional logos, and
          `experimental` flags.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/library/load:
    post:
      tags: []
      summary: Load JWT Template Library Entry
      description: >-
        Load a single library entry by id, including the full claim body —
        required before applying.
      operationId: LoadJwtTemplateLibraryEntry
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadJwtTemplateLibraryEntryRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadJwtTemplateLibraryEntryResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: Load JWT Template Library Entry | Jwt Templates
        description: >-
          Load a single library entry by id, including the full claim body —
          required before applying.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/list:
    post:
      tags: []
      summary: List JWT Templates
      description: >-
        List every JWT template defined on the current project. Returns full
        field detail for each — name, description, type (key|user), tags, claim
        body, authSchema, issuerType, etc.
      operationId: ListJwtTemplates
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ListJwtTemplatesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListJwtTemplatesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: List JWT Templates | Jwt Templates
        description: >-
          List every JWT template defined on the current project. Returns full
          field detail for each — name, description, type (key|user), tags,
          claim body, authSchema, issuerType, etc.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/load:
    post:
      tags: []
      summary: Load JWT Template
      description: Load a single JWT template by id.
      operationId: LoadJwtTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadJwtTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadJwtTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: Load JWT Template | Jwt Templates
        description: Load a single JWT template by id.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/update:
    post:
      tags: []
      summary: Update JWT Template
      description: >-
        Update an existing JWT template by id. Same strict validation as
        CreateJwtTemplate runs first; on failure the existing template is
        unchanged.
      operationId: UpdateJwtTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateJwtTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JwtTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: Update JWT Template | Jwt Templates
        description: >-
          Update an existing JWT template by id. Same strict validation as
          CreateJwtTemplate runs first; on failure the existing template is
          unchanged.
        keywords: api, jwt templates
  /v1/mgmt/jwt/templates/validate:
    post:
      tags: []
      summary: Validate JWT Template
      description: >-
        Dry-run validate a JWT template without saving. Pass either an inline
        `template` payload (to validate before create/update) or an existing
        `id` (to lint a saved template). Returns a list of `ValidationIssue`s —
        empty list means valid.
      operationId: ValidateJwtTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateJwtTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateJwtTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: jwtTemplates
      x-sdk: true
      x-meta:
        title: Validate JWT Template | Jwt Templates
        description: >-
          Dry-run validate a JWT template without saving. Pass either an inline
          `template` payload (to validate before create/update) or an existing
          `id` (to lint a saved template). Returns a list of `ValidationIssue`s
          — empty list means valid.
        keywords: api, jwt templates
  /v1/mgmt/list:
    post:
      tags: []
      summary: Create List
      description: Create a new list
      operationId: CreateList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateListRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateListResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create List | Lists
        description: Create a new list
        keywords: api, lists
  /v1/mgmt/list/update:
    post:
      tags: []
      summary: Update List
      description: Update an existing list
      operationId: UpdateList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateListRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateListResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update List | Lists
        description: Update an existing list
        keywords: api, lists
  /v1/mgmt/list/delete:
    post:
      tags: []
      summary: Delete List
      description: Delete a list by ID
      operationId: DeleteList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteListRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 3
      x-sdk: true
      x-meta:
        title: Delete List | Lists
        description: Delete a list by ID
        keywords: api, lists
  /v1/mgmt/list/{id}:
    get:
      tags: []
      summary: Get List
      description: Get a list by ID
      operationId: GetList
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetListResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 4
      x-sdk: true
      x-meta:
        title: Get List | Lists
        description: Get a list by ID
        keywords: api, lists
  /v1/mgmt/list/name/{name}:
    get:
      tags: []
      summary: Get List By Name
      description: Get a list by name
      operationId: GetListByName
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetListByNameResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 5
      x-sdk: true
      x-meta:
        title: Get List By Name | Lists
        description: Get a list by name
        keywords: api, lists
  /v1/mgmt/list/all:
    get:
      tags: []
      summary: Get All Lists
      description: Get all lists
      operationId: GetAllLists
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllListsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 6
      x-sdk: true
      x-meta:
        title: Get All Lists | Lists
        description: Get all lists
        keywords: api, lists
  /v1/mgmt/list/import:
    post:
      tags: []
      summary: Import Lists
      description: Import multiple lists
      operationId: ImportLists
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportListsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 7
      x-sdk: true
      x-meta:
        title: Import Lists | Lists
        description: Import multiple lists
        keywords: api, lists
  /v1/mgmt/list/ip/add:
    post:
      tags: []
      summary: Add IPs to List
      description: Add one or more IPs to an existing IP list
      operationId: AddIPsToList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddIPsToListRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 8
      x-sdk: true
      x-meta:
        title: Add IPs to List | Lists
        description: Add one or more IPs to an existing IP list
        keywords: api, lists
  /v1/mgmt/list/ip/remove:
    post:
      tags: []
      summary: Remove IPs from List
      description: Remove one or more IPs from an existing IP list
      operationId: RemoveIPsFromList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveIPsFromListRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 9
      x-sdk: true
      x-meta:
        title: Remove IPs from List | Lists
        description: Remove one or more IPs from an existing IP list
        keywords: api, lists
  /v1/mgmt/list/ip/check:
    post:
      tags: []
      summary: Check IP in List
      description: Check if a specific IP exists in a list
      operationId: CheckIPInList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckIPInListRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckIPInListResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 10
      x-sdk: true
      x-meta:
        title: Check IP in List | Lists
        description: Check if a specific IP exists in a list
        keywords: api, lists
  /v1/mgmt/list/clear:
    post:
      tags: []
      summary: Clear List
      description: Clear all IPs from a list
      operationId: ClearList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ClearListRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 11
      x-sdk: true
      x-meta:
        title: Clear List | Lists
        description: Clear all IPs from a list
        keywords: api, lists
  /v1/mgmt/list/text/add:
    post:
      tags: []
      summary: Add Texts to List
      description: Add one or more text items to an existing text list
      operationId: AddTextsToList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddTextsToListRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 11
      x-sdk: true
      x-meta:
        title: Add Texts to List | Lists
        description: Add one or more text items to an existing text list
        keywords: api, lists
  /v1/mgmt/list/text/remove:
    post:
      tags: []
      summary: Remove Texts from List
      description: Remove one or more text items from an existing text list
      operationId: RemoveTextsFromList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveTextsFromListRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 12
      x-sdk: true
      x-meta:
        title: Remove Texts from List | Lists
        description: Remove one or more text items from an existing text list
        keywords: api, lists
  /v1/mgmt/list/text/check:
    post:
      tags: []
      summary: Check Text in List
      description: >-
        Check if a text exists in a list. Send `texts` to check several texts in
        one request: `exists` is true if any of them is in the list, or only if
        all of them are when `matchAll` is true.
      operationId: CheckTextInList
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckTextInListRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckTextInListResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: lists
      x-order: 13
      x-sdk: true
      x-meta:
        title: Check Text in List | Lists
        description: >-
          Check if a text exists in a list. Send `texts` to check several texts
          in one request: `exists` is true if any of them is in the list, or
          only if all of them are when `matchAll` is true.
        keywords: api, lists
  /v1/mgmt/magiclink/settings:
    get:
      tags: []
      summary: Get magic link settings
      description: Get the project's magic link settings, using a valid management key.
      operationId: GetMagicLinkSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MagicLinkSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: magicLinkManagement
      x-order: 1
      x-meta:
        title: Get magic link settings | Magic Link Management
        description: Get the project's magic link settings, using a valid management key.
        keywords: api, magic link management
    post:
      tags: []
      summary: Set magic link settings
      description: Set the project's magic link settings, using a valid management key.
      operationId: SetMagicLinkSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MagicLinkSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: magicLinkManagement
      x-order: 2
      x-meta:
        title: Set magic link settings | Magic Link Management
        description: Set the project's magic link settings, using a valid management key.
        keywords: api, magic link management
  /v1/mgmt/managementkey:
    get:
      tags: []
      summary: Get Management Key
      description: Get a management key using another management key.
      operationId: GetManagementKey
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetManagementKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: managementKeys
      x-order: 2
      x-sdk: true
      x-meta:
        title: Get Management Key | Management Keys
        description: Get a management key using another management key.
        keywords: api, management keys
    put:
      tags: []
      summary: Create Management Key
      description: Create a management key using another management key.
      operationId: CreateManagementKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateManagementKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateManagementKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: managementKeys
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create Management Key | Management Keys
        description: Create a management key using another management key.
        keywords: api, management keys
    patch:
      tags: []
      summary: Update Management Key
      description: >-
        Update a management key using another management key. All supported
        fields will be reset if not provided, except reBac, which keeps the
        key's current roles when omitted.
      operationId: UpdateManagementKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateManagementKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateManagementKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: managementKeys
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update Management Key | Management Keys
        description: >-
          Update a management key using another management key. All supported
          fields will be reset if not provided, except reBac, which keeps the
          key's current roles when omitted.
        keywords: api, management keys
  /v1/mgmt/managementkey/search:
    get:
      tags: []
      summary: Search Management Keys
      description: Search management keys using another management key.
      operationId: SearchManagementKeys
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchManagementKeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: managementKeys
      x-order: 3
      x-sdk: true
      x-meta:
        title: Search Management Keys | Management Keys
        description: Search management keys using another management key.
        keywords: api, management keys
  /v1/mgmt/managementkey/delete:
    post:
      tags: []
      summary: Delete Management Key
      description: Delete a management key using another management key.
      operationId: DeleteManagementKeys
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteManagementKeysRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteManagementKeysResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: managementKeys
      x-order: 4
      x-sdk: true
      x-meta:
        title: Delete Management Key | Management Keys
        description: Delete a management key using another management key.
        keywords: api, management keys
  /v1/mgmt/mcp/server/client/create:
    post:
      tags: []
      summary: Create MCP Server Client
      description: Create an MCP Server Client, using a valid management key.
      operationId: CreateMcpServerClient
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMcpServerClientRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateMcpServerClientResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 1
      x-meta:
        title: Create MCP Server Client | Mcp Server Client Management
        description: Create an MCP Server Client, using a valid management key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/client/update:
    post:
      tags: []
      summary: Update MCP Server Client
      description: Update an MCP Server Client, using a valid management key.
      operationId: UpdateMcpServerClient
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMcpServerClientRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMcpServerClientResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 2
      x-meta:
        title: Update MCP Server Client | Mcp Server Client Management
        description: Update an MCP Server Client, using a valid management key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/client/load:
    post:
      tags: []
      summary: Load MCP Server Client
      description: Load an MCP Server Client by ID, using a valid management key.
      operationId: LoadMcpServerClient
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadMcpServerClientRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadMcpServerClientResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 3
      x-meta:
        title: Load MCP Server Client | Mcp Server Client Management
        description: Load an MCP Server Client by ID, using a valid management key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/client/delete:
    post:
      tags: []
      summary: Delete MCP Server Client
      description: Delete an MCP Server Client by ID, using a valid management key.
      operationId: DeleteMcpServerClient
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteMcpServerClientRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteMcpServerClientResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 4
      x-meta:
        title: Delete MCP Server Client | Mcp Server Client Management
        description: Delete an MCP Server Client by ID, using a valid management key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/clients/delete:
    post:
      tags: []
      summary: Delete MCP Server Clients
      description: Delete multiple MCP Server Clients by IDs, using a valid management key.
      operationId: DeleteMcpServerClients
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteMcpServerClientsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteMcpServerClientsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 5
      x-meta:
        title: Delete MCP Server Clients | Mcp Server Client Management
        description: >-
          Delete multiple MCP Server Clients by IDs, using a valid management
          key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/clients/search:
    post:
      tags: []
      summary: Search MCP Server Clients
      description: >-
        Search MCP Server Clients for a specific MCP Server, using a valid
        management key.
      operationId: SearchMcpServerClients
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchMcpServerClientsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchMcpServerClientsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 6
      x-meta:
        title: Search MCP Server Clients | Mcp Server Client Management
        description: >-
          Search MCP Server Clients for a specific MCP Server, using a valid
          management key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/client/secret:
    post:
      tags: []
      summary: Get MCP Server Client Secret
      description: Get MCP Server Client secret, using a valid management key.
      operationId: GetMcpServerClientSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetMcpServerClientSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMcpServerClientSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 7
      x-meta:
        title: Get MCP Server Client Secret | Mcp Server Client Management
        description: Get MCP Server Client secret, using a valid management key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/client/secret/rotate:
    post:
      tags: []
      summary: Rotate MCP Server Client Secret
      description: Rotate MCP Server Client secret, using a valid management key.
      operationId: RotateMcpServerClientSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateMcpServerClientSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateMcpServerClientSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerClientManagement
      x-order: 8
      x-meta:
        title: Rotate MCP Server Client Secret | Mcp Server Client Management
        description: Rotate MCP Server Client secret, using a valid management key.
        keywords: api, mcp server client management
  /v1/mgmt/mcp/server/create:
    post:
      tags: []
      summary: Create MCP Server
      description: >-
        Create an MCP Server, using a valid management key. Deprecated: MCP
        servers are now resources, create one with Create resource
        (/v1/mgmt/resource/create) and type mcp.
      operationId: CreateMcpServer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMcpServerRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateMcpServerResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerManagement
      x-order: 1
      x-meta:
        title: Create MCP Server | Mcp Server Management
        description: >-
          Create an MCP Server, using a valid management key. Deprecated: MCP
          servers are now resources, create one with Create resource
          (/v1/mgmt/resource/create) and type mcp.
        keywords: api, mcp server management
  /v1/mgmt/mcp/server/update:
    post:
      tags: []
      summary: Update MCP Server
      description: >-
        Update an MCP Server, using a valid management key. Deprecated: update
        MCP servers with Update resource (/v1/mgmt/resource/update). This
        endpoint only updates MCP Servers created with Create MCP Server (IDs
        starting with MS).
      operationId: UpdateMcpServer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMcpServerRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMcpServerResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerManagement
      x-order: 2
      x-meta:
        title: Update MCP Server | Mcp Server Management
        description: >-
          Update an MCP Server, using a valid management key. Deprecated: update
          MCP servers with Update resource (/v1/mgmt/resource/update). This
          endpoint only updates MCP Servers created with Create MCP Server (IDs
          starting with MS).
        keywords: api, mcp server management
  /v1/mgmt/mcp/server/load:
    post:
      tags: []
      summary: Load MCP Server
      description: >-
        Load an MCP Server by ID, using a valid management key. Deprecated: load
        MCP servers with Load resource (/v1/mgmt/resource/load). This endpoint
        also accepts the ID of an mcp resource (starting with RS) and returns it
        in the MCP Server shape.
      operationId: LoadMcpServer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadMcpServerRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadMcpServerResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerManagement
      x-order: 3
      x-meta:
        title: Load MCP Server | Mcp Server Management
        description: >-
          Load an MCP Server by ID, using a valid management key. Deprecated:
          load MCP servers with Load resource (/v1/mgmt/resource/load). This
          endpoint also accepts the ID of an mcp resource (starting with RS) and
          returns it in the MCP Server shape.
        keywords: api, mcp server management
  /v1/mgmt/mcp/server/delete:
    post:
      tags: []
      summary: Delete MCP Server
      description: >-
        Delete an MCP Server by ID, using a valid management key. Deprecated:
        delete MCP servers with Delete resource (/v1/mgmt/resource/delete). This
        endpoint only deletes MCP Servers created with Create MCP Server (IDs
        starting with MS).
      operationId: DeleteMcpServer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteMcpServerRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteMcpServerResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerManagement
      x-order: 4
      x-meta:
        title: Delete MCP Server | Mcp Server Management
        description: >-
          Delete an MCP Server by ID, using a valid management key. Deprecated:
          delete MCP servers with Delete resource (/v1/mgmt/resource/delete).
          This endpoint only deletes MCP Servers created with Create MCP Server
          (IDs starting with MS).
        keywords: api, mcp server management
  /v1/mgmt/mcp/servers/delete:
    post:
      tags: []
      summary: Delete MCP Servers
      description: >-
        Delete multiple MCP Servers by IDs, using a valid management key.
        Deprecated: delete MCP servers with Delete resources batch
        (/v1/mgmt/resource/delete/batch). This endpoint only deletes MCP Servers
        created with Create MCP Server (IDs starting with MS).
      operationId: DeleteMcpServers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteMcpServersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteMcpServersResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerManagement
      x-order: 5
      x-meta:
        title: Delete MCP Servers | Mcp Server Management
        description: >-
          Delete multiple MCP Servers by IDs, using a valid management key.
          Deprecated: delete MCP servers with Delete resources batch
          (/v1/mgmt/resource/delete/batch). This endpoint only deletes MCP
          Servers created with Create MCP Server (IDs starting with MS).
        keywords: api, mcp server management
  /v1/mgmt/mcp/servers/all:
    post:
      tags: []
      summary: Load All MCP Servers
      description: >-
        Load all MCP Servers for a project, using a valid management key.
        Deprecated: list MCP servers with Load all resources
        (/v1/mgmt/resources/load). This endpoint does not return resources.
      operationId: LoadAllMcpServers
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadAllMcpServersRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllMcpServersResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: mcpServerManagement
      x-order: 6
      x-meta:
        title: Load All MCP Servers | Mcp Server Management
        description: >-
          Load all MCP Servers for a project, using a valid management key.
          Deprecated: list MCP servers with Load all resources
          (/v1/mgmt/resources/load). This endpoint does not return resources.
        keywords: api, mcp server management
  /v1/mgmt/oauth/settings:
    get:
      tags: []
      summary: Get OAuth settings
      description: Get the project's general OAuth settings, using a valid management key.
      operationId: GetOAuthSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: oauthManagement
      x-order: 1
      x-meta:
        title: Get OAuth settings | Oauth Management
        description: >-
          Get the project's general OAuth settings, using a valid management
          key.
        keywords: api, oauth management
    post:
      tags: []
      summary: Set OAuth settings
      description: Set the project's general OAuth settings, using a valid management key.
      operationId: SetOAuthSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: oauthManagement
      x-order: 2
      x-meta:
        title: Set OAuth settings | Oauth Management
        description: >-
          Set the project's general OAuth settings, using a valid management
          key.
        keywords: api, oauth management
  /v1/mgmt/oauth/provider:
    get:
      tags: []
      summary: Get OAuth provider
      description: Get a single OAuth provider by id, using a valid management key.
      operationId: GetOAuthProvider
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthProvider'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: oauthManagement
      x-order: 3
      x-meta:
        title: Get OAuth provider | Oauth Management
        description: Get a single OAuth provider by id, using a valid management key.
        keywords: api, oauth management
    post:
      tags: []
      summary: Set OAuth provider
      description: Create or update a single OAuth provider, using a valid management key.
      operationId: SetOAuthProvider
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthProvider'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthProvider'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: oauthManagement
      x-order: 4
      x-meta:
        title: Set OAuth provider | Oauth Management
        description: >-
          Create or update a single OAuth provider, using a valid management
          key.
        keywords: api, oauth management
    delete:
      tags: []
      summary: Delete OAuth provider
      description: >-
        Delete a single OAuth provider by id (system providers are reset to
        disabled), using a valid management key.
      operationId: DeleteOAuthProvider
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: oauthManagement
      x-order: 5
      x-meta:
        title: Delete OAuth provider | Oauth Management
        description: >-
          Delete a single OAuth provider by id (system providers are reset to
          disabled), using a valid management key.
        keywords: api, oauth management
  /v1/mgmt/wellknown/settings:
    get:
      tags: []
      summary: Get well-known settings
      description: >-
        Get the project's customization of its OIDC discovery documents (the
        project document and the shared inbound apps document), using a valid
        management key. Returns the defaults when nothing was saved.
      operationId: GetWellKnownSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WellKnownSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: oauthManagement
      x-order: 6
      x-meta:
        title: Get well-known settings | Oauth Management
        description: >-
          Get the project's customization of its OIDC discovery documents (the
          project document and the shared inbound apps document), using a valid
          management key. Returns the defaults when nothing was saved.
        keywords: api, oauth management
    post:
      tags: []
      summary: Update well-known settings
      description: >-
        Update the project's customization of its OIDC discovery documents,
        using a valid management key. Only the fields present in the request are
        changed.
      operationId: SetWellKnownSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WellKnownSettings'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WellKnownSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: oauthManagement
      x-order: 7
      x-meta:
        title: Update well-known settings | Oauth Management
        description: >-
          Update the project's customization of its OIDC discovery documents,
          using a valid management key. Only the fields present in the request
          are changed.
        keywords: api, oauth management
  /v1/mgmt/otp/settings:
    get:
      tags: []
      summary: Get OTP settings
      description: >-
        Get the project's one-time passcode settings, using a valid management
        key.
      operationId: GetOTPSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OTPSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: otpManagement
      x-order: 1
      x-meta:
        title: Get OTP settings | Otp Management
        description: >-
          Get the project's one-time passcode settings, using a valid management
          key.
        keywords: api, otp management
    post:
      tags: []
      summary: Set OTP settings
      description: >-
        Set the project's one-time passcode settings, using a valid management
        key.
      operationId: SetOTPSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OTPSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: otpManagement
      x-order: 2
      x-meta:
        title: Set OTP settings | Otp Management
        description: >-
          Set the project's one-time passcode settings, using a valid management
          key.
        keywords: api, otp management
  /v1/mgmt/otp/settings/tenant/{tenantId}:
    get:
      tags: []
      summary: Get OTP Settings for a tenant
      description: Get OTP Settings for a tenant, using a valid management key.
      operationId: GetTenantOTPSettings
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TenantOTPSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: otpManagement
      x-order: 1
      x-meta:
        title: Get OTP Settings for a tenant | Otp Management
        description: Get OTP Settings for a tenant, using a valid management key.
        keywords: api, otp management
    post:
      tags: []
      summary: Set OTP Settings for a tenant
      description: Set OTP Settings for a tenant, using a valid management key.
      operationId: SetTenantOTPSettings
      parameters:
        - name: tenantId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TenantOTPSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: otpManagement
      x-order: 2
      x-meta:
        title: Set OTP Settings for a tenant | Otp Management
        description: Set OTP Settings for a tenant, using a valid management key.
        keywords: api, otp management
  /v1/mgmt/outbound/apps:
    get:
      tags: []
      summary: List All Outbound Apps
      description: >-
        ### List all outbound applications


        This endpoint allows you to retrieve all outbound applications
        configured in your project.
      operationId: LoadOutboundApps
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadOutboundAppsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: List All Outbound Apps | Outbound Apps Management
        description: List all outbound applications
        keywords: api, outbound apps management
  /v1/mgmt/outbound/apps-with-user-token:
    get:
      tags: []
      summary: List Outbound Apps with User Token
      description: >-
        ### List outbound applications with user token


        This endpoint allows you to retrieve outbound applications that have a
        user token available.
      operationId: ListUserOutboundAppsWithValidUserToken
      parameters:
        - name: userId
          in: query
          schema:
            type: string
          required: true
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/ListUserOutboundAppsWithValidUserTokenResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: List Outbound Apps with User Token | Outbound Apps Management
        description: List outbound applications with user token
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/{id}:
    get:
      tags: []
      summary: Get Outbound App by ID
      description: >-
        ### Get outbound application by ID


        This endpoint allows you to retrieve a specific outbound application by
        its ID.
      operationId: LoadOutboundApp
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadOutboundAppResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Get Outbound App by ID | Outbound Apps Management
        description: Get outbound application by ID
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/create:
    post:
      tags: []
      summary: Create Outbound App
      description: |-
        ### Create outbound application

        This endpoint allows you to create a new outbound application.
      operationId: CreateOutboundApp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOutboundAppRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOutboundAppResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Create Outbound App | Outbound Apps Management
        description: Create outbound application
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/update:
    post:
      tags: []
      summary: Update Outbound App
      description: |-
        ### Update outbound application

        This endpoint allows you to update an existing outbound application.
      operationId: UpdateOutboundApp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOutboundAppRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateOutboundAppResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Outbound App | Outbound Apps Management
        description: Update outbound application
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/delete:
    post:
      tags: []
      summary: Delete Outbound App
      description: |-
        ### Delete outbound application

        This endpoint allows you to delete an outbound application.
      operationId: DeleteOutboundApp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteOutboundAppRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteOutboundAppResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Delete Outbound App | Outbound Apps Management
        description: Delete outbound application
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/user/token:
    post:
      tags: []
      summary: Fetch Outbound App User Token
      description: >-
        ### Fetch outbound application user token


        This endpoint allows you to fetch the user token for an outbound
        application.
      operationId: FetchOutboundAppUserToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FetchOutboundAppUserTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FetchOutboundAppUserTokenResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Fetch Outbound App User Token | Outbound Apps Management
        description: Fetch outbound application user token
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/user/token/latest:
    post:
      tags: []
      summary: Fetch Latest Outbound App User Token
      description: >-
        ### Fetch latest outbound application user token


        This endpoint allows you to fetch the latest user token for an outbound
        application.
      operationId: FetchLatestOutboundAppUserToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FetchLatestOutboundAppUserTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FetchLatestOutboundAppUserTokenResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Fetch Latest Outbound App User Token | Outbound Apps Management
        description: Fetch latest outbound application user token
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/tenant/token:
    post:
      tags: []
      summary: Fetch Outbound App Tenant Token
      description: >-
        ### Fetch outbound application tenant token


        This endpoint allows you to fetch the tenant token for an outbound
        application.
      operationId: FetchOutboundAppTenantToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FetchOutboundAppTenantTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FetchOutboundAppTenantTokenResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 9
      x-sdk: true
      x-meta:
        title: Fetch Outbound App Tenant Token | Outbound Apps Management
        description: Fetch outbound application tenant token
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/create/bydcrpreset:
    post:
      tags: []
      summary: Create outbound application according to existing dcr preset
      description: >-
        Create a new outbound application according to existing dcr preset,
        using a valid management key.
      operationId: CreateOutboundAppByDcrPreset
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOutboundAppByDcrPresetRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOutboundAppByDcrPresetResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 10
      x-meta:
        title: >-
          Create outbound application according to existing dcr preset |
          Outbound Apps Management
        description: >-
          Create a new outbound application according to existing dcr preset,
          using a valid management key.
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/create/bytemplate:
    post:
      tags: []
      summary: Create outbound application by existing template
      description: >-
        Create a new outbound application by existing template using a valid
        management key.
      operationId: CreateOutboundAppByTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOutboundAppByTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOutboundAppByTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: >-
          Create outbound application by existing template | Outbound Apps
          Management
        description: >-
          Create a new outbound application by existing template using a valid
          management key.
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/tenant/token/latest:
    post:
      tags: []
      summary: Fetch Latest Outbound App Tenant Token
      description: >-
        ### Fetch latest outbound application tenant token


        This endpoint allows you to fetch the latest tenant token for an
        outbound application.
      operationId: FetchLatestOutboundAppTenantToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FetchLatestOutboundAppTenantTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FetchLatestOutboundAppTenantTokenResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: Fetch Latest Outbound App Tenant Token | Outbound Apps Management
        description: Fetch latest outbound application tenant token
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/connect:
    post:
      tags: []
      summary: Connect to outbound application
      description: Connect to outbound application, using a valid JWT.
      operationId: ConnectOutboundApp
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectOutboundAppRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectOutboundAppResponse'
      security:
        - Descope Project ID:Refresh JWT: []
      x-publishYaml: outboundAppsManagement
      x-order: 11
      x-meta:
        title: Connect to outbound application | Outbound Apps Management
        description: Connect to outbound application, using a valid JWT.
        keywords: api, outbound apps management
  /v1/mgmt/outbound/token:
    delete:
      tags: []
      summary: Delete outbound application token by id
      description: Delete outbound application token by id, using a valid management key.
      operationId: DeleteOutboundAppTokenByID
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 11
      x-sdk: true
      x-meta:
        title: Delete outbound application token by id | Outbound Apps Management
        description: Delete outbound application token by id, using a valid management key.
        keywords: api, outbound apps management
  /v1/mgmt/outbound/user/tokens:
    delete:
      tags: []
      summary: Delete outbound application tokens by appId or userId
      description: >-
        Delete outbound application tokens by appId or userId, using a valid
        management key.
      operationId: DeleteOutboundAppUserTokens
      parameters:
        - name: appId
          in: query
          schema:
            type: string
          required: true
        - name: userId
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 12
      x-sdk: true
      x-meta:
        title: >-
          Delete outbound application tokens by appId or userId | Outbound Apps
          Management
        description: >-
          Delete outbound application tokens by appId or userId, using a valid
          management key.
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/user/apikey/upload:
    post:
      tags: []
      summary: Upload user API key for outbound app
      description: >-
        Upload/set a static API key for a user on an apikey-type outbound
        application, using a valid management key. An optional
        externalIdentifier lets you store multiple keys for the same user and
        application, each addressable by that identifier when fetching the
        token. Uploading again with the same externalIdentifier (or with none)
        replaces the existing key.
      operationId: UploadOutboundAppUserAPIKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadOutboundAppUserAPIKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadOutboundAppUserAPIKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 13
      x-sdk: true
      x-meta:
        title: Upload user API key for outbound app | Outbound Apps Management
        description: >-
          Upload/set a static API key for a user on an apikey-type outbound
          application, using a valid management key. An optional
          externalIdentifier lets you store multiple keys for the same user and
          application, each addressable by that identifier when fetching the
          token. Uploading again with the same externalIdentifier (or with none)
          replaces the existing key.
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/tenant/apikey/upload:
    post:
      tags: []
      summary: Upload tenant API key for outbound app
      description: >-
        Upload/set a static API key for a tenant on an apikey-type outbound
        application, using a valid management key. An optional
        externalIdentifier lets you store multiple keys for the same tenant and
        application, each addressable by that identifier when fetching the
        token. Uploading again with the same externalIdentifier (or with none)
        replaces the existing key.
      operationId: UploadOutboundAppTenantAPIKey
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadOutboundAppTenantAPIKeyRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadOutboundAppTenantAPIKeyResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 14
      x-sdk: true
      x-meta:
        title: Upload tenant API key for outbound app | Outbound Apps Management
        description: >-
          Upload/set a static API key for a tenant on an apikey-type outbound
          application, using a valid management key. An optional
          externalIdentifier lets you store multiple keys for the same tenant
          and application, each addressable by that identifier when fetching the
          token. Uploading again with the same externalIdentifier (or with none)
          replaces the existing key.
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/user/oauthtoken/upload:
    post:
      tags: []
      summary: Upload Outbound App User OAuth Token
      description: >-
        ### Upload a user OAuth token for an outbound application


        Import a pre-existing user-scoped OAuth token into an outbound
        application without requiring the user to re-run the OAuth flow.
        Requires a management key.
      operationId: UploadOutboundAppUserOAuthToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveOAuthAppUserTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveOAuthAppUserTokenResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 15
      x-sdk: true
      x-meta:
        title: Upload Outbound App User OAuth Token | Outbound Apps Management
        description: Upload a user OAuth token for an outbound application
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/tenant/oauthtoken/upload:
    post:
      tags: []
      summary: Upload Outbound App Tenant OAuth Token
      description: >-
        ### Upload a tenant OAuth token for an outbound application


        Import a pre-existing tenant-scoped OAuth token into an outbound
        application without requiring the user to re-run the OAuth flow.
        Requires a management key.
      operationId: UploadOutboundAppTenantOAuthToken
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaveOAuthAppTenantTokenRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaveOAuthAppTenantTokenResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 16
      x-sdk: true
      x-meta:
        title: Upload Outbound App Tenant OAuth Token | Outbound Apps Management
        description: Upload a tenant OAuth token for an outbound application
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/user/oauthtoken/batch/upload:
    post:
      tags: []
      summary: Batch Upload Outbound App User OAuth Tokens
      description: >-
        ### Batch upload user OAuth tokens for an outbound application


        Import pre-existing user-scoped OAuth tokens in a single request. This
        operation is all-or-nothing: if any token fails validation, the entire
        batch is rejected and no tokens are committed. Fix the reported failures
        and retry the full batch. Requires a management key.
      operationId: BatchUploadOutboundAppUserOAuthTokens
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchSaveOAuthAppUserTokensRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchSaveOAuthAppTokensResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 17
      x-sdk: true
      x-meta:
        title: Batch Upload Outbound App User OAuth Tokens | Outbound Apps Management
        description: Batch upload user OAuth tokens for an outbound application
        keywords: api, outbound apps management
  /v1/mgmt/outbound/app/tenant/oauthtoken/batch/upload:
    post:
      tags: []
      summary: Batch Upload Outbound App Tenant OAuth Tokens
      description: >-
        ### Batch upload tenant OAuth tokens for an outbound application


        Import pre-existing tenant-scoped OAuth tokens in a single request. This
        operation is all-or-nothing: if any token fails validation, the entire
        batch is rejected and no tokens are committed. Fix the reported failures
        and retry the full batch. Requires a management key.
      operationId: BatchUploadOutboundAppTenantOAuthTokens
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchSaveOAuthAppTenantTokensRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchSaveOAuthAppTokensResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundAppsManagement
      x-order: 18
      x-sdk: true
      x-meta:
        title: >-
          Batch Upload Outbound App Tenant OAuth Tokens | Outbound Apps
          Management
        description: Batch upload tenant OAuth tokens for an outbound application
        keywords: api, outbound apps management
  /v1/mgmt/outbound/scim/create:
    post:
      tags: []
      summary: Create outbound SCIM configuration
      description: >-
        Create a new outbound SCIM configuration, using a valid management key.
        Configures a SCIM connector that provisions users from a federated
        application to an external SCIM 2.0 service provider.
      operationId: CreateOutboundSCIMConfiguration
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOutboundSCIMConfigurationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOutboundSCIMConfigurationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundSCIMManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: Create outbound SCIM configuration | Outbound S C I M Management
        description: >-
          Create a new outbound SCIM configuration, using a valid management
          key. Configures a SCIM connector that provisions users from a
          federated application to an external SCIM 2.0 service provider.
        keywords: api, outbound s c i m management
  /v1/mgmt/outbound/scim/update:
    post:
      tags: []
      summary: Update outbound SCIM configuration
      description: >-
        Update an existing outbound SCIM configuration, using a valid management
        key.
      operationId: UpdateOutboundSCIMConfiguration
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOutboundSCIMConfigurationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateOutboundSCIMConfigurationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundSCIMManagement
      x-order: 11
      x-sdk: true
      x-meta:
        title: Update outbound SCIM configuration | Outbound S C I M Management
        description: >-
          Update an existing outbound SCIM configuration, using a valid
          management key.
        keywords: api, outbound s c i m management
  /v1/mgmt/outbound/scim/delete:
    post:
      tags: []
      summary: Delete outbound SCIM configuration
      description: Delete an outbound SCIM configuration, using a valid management key.
      operationId: DeleteOutboundSCIMConfiguration
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteOutboundSCIMConfigurationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundSCIMManagement
      x-order: 12
      x-sdk: true
      x-meta:
        title: Delete outbound SCIM configuration | Outbound S C I M Management
        description: Delete an outbound SCIM configuration, using a valid management key.
        keywords: api, outbound s c i m management
  /v1/mgmt/outbound/scim/{appId}:
    get:
      tags: []
      summary: Load outbound SCIM configuration
      description: >-
        Load an outbound SCIM configuration by id. Response merges connector
        config with webhook status (enabled flag, last export/processing times,
        failure counter).
      operationId: LoadOutboundSCIMConfiguration
      parameters:
        - name: appId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadOutboundSCIMConfigurationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundSCIMManagement
      x-order: 13
      x-sdk: true
      x-meta:
        title: Load outbound SCIM configuration | Outbound S C I M Management
        description: >-
          Load an outbound SCIM configuration by id. Response merges connector
          config with webhook status (enabled flag, last export/processing
          times, failure counter).
        keywords: api, outbound s c i m management
  /v1/mgmt/outbound/scim/enabled/set:
    post:
      tags: []
      summary: Enable or disable an outbound SCIM configuration
      description: >-
        Enable or disable a specific outbound SCIM configuration. Separate from
        Update because enable/disable is a high-frequency toggle.
      operationId: SetOutboundSCIMEnabled
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetOutboundSCIMEnabledRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetOutboundSCIMEnabledResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: outboundSCIMManagement
      x-order: 15
      x-sdk: true
      x-meta:
        title: >-
          Enable or disable an outbound SCIM configuration | Outbound S C I M
          Management
        description: >-
          Enable or disable a specific outbound SCIM configuration. Separate
          from Update because enable/disable is a high-frequency toggle.
        keywords: api, outbound s c i m management
  /v1/mgmt/passkey/settings:
    get:
      tags: []
      summary: Get passkey settings
      description: >-
        Get the project's passkey (WebAuthn) settings, using a valid management
        key.
      operationId: GetPasskeySettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PasskeySettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: passkeyManagement
      x-order: 1
      x-meta:
        title: Get passkey settings | Passkey Management
        description: >-
          Get the project's passkey (WebAuthn) settings, using a valid
          management key.
        keywords: api, passkey management
    post:
      tags: []
      summary: Set passkey settings
      description: >-
        Set the project's passkey (WebAuthn) settings, using a valid management
        key.
      operationId: SetPasskeySettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasskeySettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: passkeyManagement
      x-order: 2
      x-meta:
        title: Set passkey settings | Passkey Management
        description: >-
          Set the project's passkey (WebAuthn) settings, using a valid
          management key.
        keywords: api, passkey management
  /v1/mgmt/password/settings:
    get:
      tags: []
      summary: Get Tenant Password Settings
      description: >-
        ### Get password settings for a tenant


        This endpoint allows you to get the password settings of a given tenant.


        ### See Also

        - See [tenant password settings](/customize/tenant#passwords) for
        details about tenant password settings.
      operationId: GetPasswordSettings
      parameters:
        - name: tenantId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPasswordSettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: passwordManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Get Tenant Password Settings | Password Management
        description: Get password settings for a tenant
        keywords: api, password management
    post:
      tags: []
      summary: Update Tenant Password Settings
      description: >-
        ### Update password settings for a tenant


        This endpoint allows you to update the password settings of a given
        tenant.


        ### See Also

        - See [tenant password settings](/customize/tenant#passwords) for
        details about tenant password settings.
      operationId: ConfigurePasswordSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigurePasswordSettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: passwordManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update Tenant Password Settings | Password Management
        description: Update password settings for a tenant
        keywords: api, password management
  /v2/mgmt/password/settings:
    get:
      tags: []
      summary: Get password settings
      description: Get the project's password settings, using a valid management key.
      operationId: GetPasswordSettingsV2
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PasswordSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: passwordManagement
      x-order: 3
      x-meta:
        title: Get password settings | Password Management
        description: Get the project's password settings, using a valid management key.
        keywords: api, password management
    post:
      tags: []
      summary: Set password settings
      description: Set the project's password settings, using a valid management key.
      operationId: SetPasswordSettingsV2
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PasswordSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: passwordManagement
      x-order: 4
      x-meta:
        title: Set password settings | Password Management
        description: Set the project's password settings, using a valid management key.
        keywords: api, password management
  /v1/mgmt/permission/all:
    get:
      tags: []
      summary: Load All Permission
      description: >-
        ### Load all permissions, using a valid management key.


        This API endpoint returns details all permissions configured within the
        Descope instance. The response includes an array of permissions and
        these details of each permission:

        - name

        - description

        - systemDefault


        ### Next Steps


        Once you have this data, you can utilize the response to [Create
        Roles](/api/management/roles/create-role) or [Update
        Roles](/api/management/roles/update-role)


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: LoadAllPermissions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadPermissionsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: permissionManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Load All Permission | Permission Management
        description: Load all permissions, using a valid management key.
        keywords: api, permission management
  /v1/mgmt/permission/create:
    post:
      tags: []
      summary: Create Permission
      description: >-
        ### Create a permission, using a valid management key.


        This API endpoint allows administrators to create a new permission. The
        endpoint takes the following two parameters:

        - name (required)

        - description (optional)


        ### Next Steps


        Once you have this data, you can utilize the newly created role to
        [Create Roles](/api/management/roles/create-role) or [Update
        Roles](/api/management/roles/update-role)


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: CreatePermission
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePermissionRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: permissionManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Create Permission | Permission Management
        description: Create a permission, using a valid management key.
        keywords: api, permission management
  /v1/mgmt/permission/update:
    post:
      tags: []
      summary: Update Permission
      description: >-
        ### Update a permission, using a valid management key.


        This API endpoint allows administrators to update an existing
        permission. The endpoint takes the following two parameters:

        - name (required)

        - description (optional - though if not provided, it will be removed
        from the permission)


        ### Next Steps


        Once you have this data, you can utilize the newly created role to
        [Create Roles](/api/management/roles/create-role) or [Update
        Roles](/api/management/roles/update-role)


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: UpdatePermission
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePermissionRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: permissionManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Update Permission | Permission Management
        description: Update a permission, using a valid management key.
        keywords: api, permission management
  /v1/mgmt/permission/delete:
    post:
      tags: []
      summary: Delete Permission
      description: >-
        ### Delete a permission, using a valid management key.


        This API endpoint allows administrators to delete an existing
        permission. The endpoint takes the following one parameter:

        - name (required)


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: DeletePermission
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeletePermissionRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: permissionManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Delete Permission | Permission Management
        description: Delete a permission, using a valid management key.
        keywords: api, permission management
  /v1/mgmt/permission/create/batch:
    post:
      tags: []
      summary: Bulk Create Permissions
      description: Bulk create Permissions, using a valid management key.
      operationId: CreatePermissions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePermissionsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: permissionManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Bulk Create Permissions | Permission Management
        description: Bulk create Permissions, using a valid management key.
        keywords: api, permission management
  /v1/mgmt/permission/update/batch:
    post:
      tags: []
      summary: Bulk Update Permissions
      description: Bulk update Permissions, using a valid management key.
      operationId: UpdatePermissions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePermissionsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: permissionManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Bulk Update Permissions | Permission Management
        description: Bulk update Permissions, using a valid management key.
        keywords: api, permission management
  /v1/mgmt/permission/delete/batch:
    post:
      tags: []
      summary: Bulk Delete Permissions
      description: Bulk delete Permissions, using a valid management key.
      operationId: DeletePermissions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeletePermissionsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: permissionManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Bulk Delete Permissions | Permission Management
        description: Bulk delete Permissions, using a valid management key.
        keywords: api, permission management
  /v1/mgmt/policies/rule/create:
    post:
      tags: []
      summary: Create policy rule
      description: >-
        Create a new policy rule row using a valid management key. The id is
        server-generated.
      operationId: CreatePolicyRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePolicyRuleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePolicyRuleResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create policy rule | Policy Rules Management
        description: >-
          Create a new policy rule row using a valid management key. The id is
          server-generated.
        keywords: api, policy rules management
  /v1/mgmt/policies/rule/update:
    post:
      tags: []
      summary: Update policy rule
      description: Replace an existing policy rule row matched by id.
      operationId: UpdatePolicyRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePolicyRuleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdatePolicyRuleResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update policy rule | Policy Rules Management
        description: Replace an existing policy rule row matched by id.
        keywords: api, policy rules management
  /v1/mgmt/policies/rule/delete:
    post:
      tags: []
      summary: Delete policy rule
      description: Delete a policy rule row matched by id. Idempotent.
      operationId: DeletePolicyRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeletePolicyRuleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePolicyRuleResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Delete policy rule | Policy Rules Management
        description: Delete a policy rule row matched by id. Idempotent.
        keywords: api, policy rules management
  /v1/mgmt/policies/rule/load:
    post:
      tags: []
      summary: Load policy rule
      description: Load a single policy rule row by id.
      operationId: LoadPolicyRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadPolicyRuleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadPolicyRuleResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Load policy rule | Policy Rules Management
        description: Load a single policy rule row by id.
        keywords: api, policy rules management
  /v1/mgmt/policies/rule/search:
    post:
      tags: []
      summary: Search policy rules
      description: >-
        Search policy rule rows by filters (text, action_kind, effect,
        principal_type, resource_type, enabled). Paged and sorted.
      operationId: SearchPolicyRules
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchPolicyRulesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchPolicyRulesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Search policy rules | Policy Rules Management
        description: >-
          Search policy rule rows by filters (text, action_kind, effect,
          principal_type, resource_type, enabled). Paged and sorted.
        keywords: api, policy rules management
  /v1/mgmt/policies/rule/reorder:
    post:
      tags: []
      summary: Reorder a policy rule
      description: >-
        Move one policy rule to a 1-based position in the evaluation order;
        rules in between shift accordingly. Rules are evaluated first-match in
        this order.
      operationId: ReorderPolicyRule
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReorderPolicyRuleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReorderPolicyRuleResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Reorder a policy rule | Policy Rules Management
        description: >-
          Move one policy rule to a 1-based position in the evaluation order;
          rules in between shift accordingly. Rules are evaluated first-match in
          this order.
        keywords: api, policy rules management
  /v1/mgmt/policies/settings/load:
    post:
      tags: []
      summary: Load policy rule settings
      description: Load the project-level policy rule settings (default action).
      operationId: LoadPolicyRuleSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoadPolicyRuleSettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadPolicyRuleSettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Load policy rule settings | Policy Rules Management
        description: Load the project-level policy rule settings (default action).
        keywords: api, policy rules management
  /v1/mgmt/policies/settings/update:
    post:
      tags: []
      summary: Update policy rule settings
      description: >-
        Update the project-level policy rule settings. defaultAction is allow or
        block; the choice is one-way and cannot be reset to the unconfigured
        state.
      operationId: UpdatePolicyRuleSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePolicyRuleSettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdatePolicyRuleSettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: policyRulesManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Update policy rule settings | Policy Rules Management
        description: >-
          Update the project-level policy rule settings. defaultAction is allow
          or block; the choice is one-way and cannot be reset to the
          unconfigured state.
        keywords: api, policy rules management
  /v1/mgmt/resource/create:
    post:
      tags: []
      summary: Create resource
      description: >-
        Create a new resource, using a valid management key. A resource is a
        backend API (type api, the default) or an MCP server (type mcp) that
        clients get tokens for. The uri is required and must be unique in the
        project, and the type and uri cannot be changed later. Each
        scopes.connectionsScopes entry maps a scope that clients request (its
        name) onto connection (Outbound App) scopes, with values in the form
        outboundAppId:scope, or outboundAppId:* for every scope of an API key
        connection.
      operationId: CreateResource
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateResourceRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateResourceResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: resourcesManagement
      x-order: 1
      x-meta:
        title: Create resource | Resources Management
        description: >-
          Create a new resource, using a valid management key. A resource is a
          backend API (type api, the default) or an MCP server (type mcp) that
          clients get tokens for. The uri is required and must be unique in the
          project, and the type and uri cannot be changed later. Each
          scopes.connectionsScopes entry maps a scope that clients request (its
          name) onto connection (Outbound App) scopes, with values in the form
          outboundAppId:scope, or outboundAppId:* for every scope of an API key
          connection.
        keywords: api, resources management
  /v1/mgmt/resource/update:
    post:
      tags: []
      summary: Update resource
      description: >-
        Update a resource, using a valid management key. The request replaces
        the whole resource: load it, change the fields, and send it back with
        its version unchanged. The type and uri cannot be changed. A stale
        version fails with Resource not found (E074805), so reload the resource
        and retry. On a resource managed by an agent gateway (tagged gateway),
        the connection scopes come from the gateway routes and only their
        optional flag can be changed. On an MCP server (type mcp),
        dynamicRegistrationSettings.issuerType and
        dynamicRegistrationSettings.overrideProjectSettings keep their stored
        values when omitted.
      operationId: UpdateResource
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateResourceRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateResourceResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: resourcesManagement
      x-order: 2
      x-meta:
        title: Update resource | Resources Management
        description: >-
          Update a resource, using a valid management key. The request replaces
          the whole resource: load it, change the fields, and send it back with
          its version unchanged. The type and uri cannot be changed. A stale
          version fails with Resource not found (E074805), so reload the
          resource and retry. On a resource managed by an agent gateway (tagged
          gateway), the connection scopes come from the gateway routes and only
          their optional flag can be changed. On an MCP server (type mcp),
          dynamicRegistrationSettings.issuerType and
          dynamicRegistrationSettings.overrideProjectSettings keep their stored
          values when omitted.
        keywords: api, resources management
  /v1/mgmt/resource/load:
    get:
      tags: []
      summary: Load resource by ID
      description: >-
        Load a resource by ID, including MCP servers (type "mcp"), using a valid
        management key.
      operationId: LoadResource
      parameters:
        - name: id
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadResourceResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: resourcesManagement
      x-order: 3
      x-meta:
        title: Load resource by ID | Resources Management
        description: >-
          Load a resource by ID, including MCP servers (type "mcp"), using a
          valid management key.
        keywords: api, resources management
  /v1/mgmt/resource/load/uri:
    get:
      tags: []
      summary: Load resource by URI
      description: >-
        Load a resource by URI, using a valid management key. For an MCP server,
        the URI is the MCP server URL.
      operationId: LoadResourceByURI
      parameters:
        - name: uri
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadResourceByURIResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: resourcesManagement
      x-order: 3
      x-meta:
        title: Load resource by URI | Resources Management
        description: >-
          Load a resource by URI, using a valid management key. For an MCP
          server, the URI is the MCP server URL.
        keywords: api, resources management
  /v1/mgmt/resource/delete:
    post:
      tags: []
      summary: Delete resource
      description: >-
        Delete a resource, including MCP servers (type "mcp"), using a valid
        management key. Resources managed by an agent gateway cannot be deleted
        directly.
      operationId: DeleteResource
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteResourceRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: resourcesManagement
      x-order: 4
      x-meta:
        title: Delete resource | Resources Management
        description: >-
          Delete a resource, including MCP servers (type "mcp"), using a valid
          management key. Resources managed by an agent gateway cannot be
          deleted directly.
        keywords: api, resources management
  /v1/mgmt/resource/delete/batch:
    post:
      tags: []
      summary: Delete resources batch
      description: >-
        Delete multiple resources, including MCP servers (type "mcp"), using a
        valid management key. Resources managed by an agent gateway cannot be
        deleted directly.
      operationId: DeleteResources
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteResourcesRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: resourcesManagement
      x-order: 5
      x-meta:
        title: Delete resources batch | Resources Management
        description: >-
          Delete multiple resources, including MCP servers (type "mcp"), using a
          valid management key. Resources managed by an agent gateway cannot be
          deleted directly.
        keywords: api, resources management
  /v1/mgmt/resources/load:
    get:
      tags: []
      summary: Load all resources
      description: >-
        Load all resources, using a valid management key. MCP servers are the
        resources with type "mcp".
      operationId: LoadAllResources
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllResourcesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: resourcesManagement
      x-order: 6
      x-meta:
        title: Load all resources | Resources Management
        description: >-
          Load all resources, using a valid management key. MCP servers are the
          resources with type "mcp".
        keywords: api, resources management
  /v1/mgmt/resource/dynamic-registration-template/create:
    post:
      tags: []
      summary: Create dynamic registration template
      description: >-
        Create a new dynamic registration template, using a valid management
        key.
      operationId: CreateDynamicRegistrationTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDynamicRegistrationTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateDynamicRegistrationTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: dynamicRegistrationTemplatesManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: >-
          Create dynamic registration template | Dynamic Registration Templates
          Management
        description: >-
          Create a new dynamic registration template, using a valid management
          key.
        keywords: api, dynamic registration templates management
  /v1/mgmt/resource/dynamic-registration-template/update:
    post:
      tags: []
      summary: Update dynamic registration template
      description: >-
        Update an existing dynamic registration template, using a valid
        management key.
      operationId: UpdateDynamicRegistrationTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateDynamicRegistrationTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateDynamicRegistrationTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: dynamicRegistrationTemplatesManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: >-
          Update dynamic registration template | Dynamic Registration Templates
          Management
        description: >-
          Update an existing dynamic registration template, using a valid
          management key.
        keywords: api, dynamic registration templates management
  /v1/mgmt/resource/dynamic-registration-template/load:
    get:
      tags: []
      summary: Load dynamic registration template
      description: >-
        Load a dynamic registration template by id, using a valid management
        key.
      operationId: LoadDynamicRegistrationTemplate
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadDynamicRegistrationTemplateResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: dynamicRegistrationTemplatesManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: >-
          Load dynamic registration template | Dynamic Registration Templates
          Management
        description: >-
          Load a dynamic registration template by id, using a valid management
          key.
        keywords: api, dynamic registration templates management
  /v1/mgmt/resource/dynamic-registration-template/delete:
    post:
      tags: []
      summary: Delete dynamic registration template
      description: >-
        Delete a dynamic registration template by id, using a valid management
        key.
      operationId: DeleteDynamicRegistrationTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteDynamicRegistrationTemplateRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: dynamicRegistrationTemplatesManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: >-
          Delete dynamic registration template | Dynamic Registration Templates
          Management
        description: >-
          Delete a dynamic registration template by id, using a valid management
          key.
        keywords: api, dynamic registration templates management
  /v1/mgmt/resource/dynamic-registration-templates/delete:
    post:
      tags: []
      summary: Delete dynamic registration templates
      description: >-
        Delete multiple dynamic registration templates by id, using a valid
        management key.
      operationId: DeleteDynamicRegistrationTemplates
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteDynamicRegistrationTemplatesRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: dynamicRegistrationTemplatesManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: >-
          Delete dynamic registration templates | Dynamic Registration Templates
          Management
        description: >-
          Delete multiple dynamic registration templates by id, using a valid
          management key.
        keywords: api, dynamic registration templates management
  /v1/mgmt/resource/dynamic-registration-templates/load:
    get:
      tags: []
      summary: Load all dynamic registration templates
      description: Load all dynamic registration templates, using a valid management key.
      operationId: LoadAllDynamicRegistrationTemplates
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoadAllDynamicRegistrationTemplatesResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: dynamicRegistrationTemplatesManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: >-
          Load all dynamic registration templates | Dynamic Registration
          Templates Management
        description: Load all dynamic registration templates, using a valid management key.
        keywords: api, dynamic registration templates management
  /v1/mgmt/role/all:
    get:
      tags: []
      summary: Load All Roles
      description: >-
        ### Load all roles, using a valid management key.


        This API endpoint allows administrators to load all existing roles.


        This endpoint returns an array of roles including their name,
        description, and permissionsNames.


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: LoadAllRoles
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadRolesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Load All Roles | Role Management
        description: Load all roles, using a valid management key.
        keywords: api, role management
  /v1/mgmt/role/search:
    post:
      tags: []
      summary: Search Roles
      description: >-
        ### Search roles, using a valid management key.


        This API endpoint allows administrators to search against existing
        roles.


        This endpoint returns an array of roles including their name,
        description, and permissionsNames that match the search parameters.


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: SearchRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadRolesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Search Roles | Role Management
        description: Search roles, using a valid management key.
        keywords: api, role management
  /v1/mgmt/role/create:
    post:
      tags: []
      summary: Create Role
      description: >-
        ### Create a role, using a valid management key.


        This API endpoint allows administrators to create a new role. The
        endpoint takes the following three parameters:

        - name (required)

        - description (optional)

        - permissionNames (optional)


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: CreateRole
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRoleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Create Role | Role Management
        description: Create a role, using a valid management key.
        keywords: api, role management
  /v1/mgmt/role/update:
    post:
      tags: []
      summary: Update Role
      description: >-
        ### Update an existing role, using a valid management key.


        This API endpoint allows administrators to update an existing role. The
        endpoint takes the following four parameters:

        - name (required)

        - newName (required)

        - description (optional  - though if not provided, it will be removed
        from the role))

        - permissionNames (optional  - though if not provided, it will be
        removed from the role))


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: UpdateRole
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRoleRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Role'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Update Role | Role Management
        description: Update an existing role, using a valid management key.
        keywords: api, role management
  /v1/mgmt/role/delete:
    post:
      tags: []
      summary: Delete Role
      description: >-
        ### Delete a role, using a valid management key.


        This API endpoint allows administrators to delete an existing role. The
        endpoint takes the following one parameter:

        - name (required)


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions._override/App.tsx
      operationId: DeleteRole
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteRoleRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Delete Role | Role Management
        description: Delete a role, using a valid management key.
        keywords: api, role management
  /v1/mgmt/role/create/batch:
    post:
      tags: []
      summary: Bulk Create Roles
      description: Bulk create Roles, using a valid management key.
      operationId: CreateRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadRolesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Bulk Create Roles | Role Management
        description: Bulk create Roles, using a valid management key.
        keywords: api, role management
  /v1/mgmt/role/delete/batch:
    post:
      tags: []
      summary: Batch Delete Roles
      description: >-
        ### Delete roles in batch, using a valid management key.


        This API endpoint allows administrators to delete roles in batch. The
        endpoint takes the following one parameter:

        - roleNames (required)


        ### See also


        - See [User Authorization](/manage/roles/) for further details on
        managing roles and permissions.
      operationId: DeleteRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Batch Delete Roles | Role Management
        description: Delete roles in batch, using a valid management key.
        keywords: api, role management
  /v1/mgmt/role/update/batch:
    post:
      tags: []
      summary: Bulk Update Roles
      description: Bulk update Roles, using a valid management key.
      operationId: UpdateRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadRolesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: roleManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Bulk Update Roles | Role Management
        description: Bulk update Roles, using a valid management key.
        keywords: api, role management
  /v1/mgmt/scopeClaimMapping/delete:
    post:
      tags: []
      summary: Delete Scope Claim Mapping
      description: Remove the project-wide scope-to-claims mapping.
      operationId: DeleteScopeClaimMapping
      requestBody: null
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scopeClaimMapping
      x-sdk: true
      x-meta:
        title: Delete Scope Claim Mapping | Scope Claim Mapping
        description: Remove the project-wide scope-to-claims mapping.
        keywords: api, scope claim mapping
  /v1/mgmt/scopeClaimMapping/get:
    post:
      tags: []
      summary: Get Scope Claim Mapping
      description: >-
        Get the project-wide mapping of OIDC scopes to JWT claims. Returns an
        empty mapping when none has been configured.
      operationId: GetScopeClaimMapping
      requestBody: null
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetScopeClaimMappingResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scopeClaimMapping
      x-sdk: true
      x-meta:
        title: Get Scope Claim Mapping | Scope Claim Mapping
        description: >-
          Get the project-wide mapping of OIDC scopes to JWT claims. Returns an
          empty mapping when none has been configured.
        keywords: api, scope claim mapping
  /v1/mgmt/scopeClaimMapping/set:
    post:
      tags: []
      summary: Set Scope Claim Mapping
      description: >-
        Replace the project-wide mapping of OIDC scopes to JWT claims. Each
        value may be a static string or a {{...}} template resolved at
        token-generation time.
      operationId: SetScopeClaimMapping
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetScopeClaimMappingRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: scopeClaimMapping
      x-sdk: true
      x-meta:
        title: Set Scope Claim Mapping | Scope Claim Mapping
        description: >-
          Replace the project-wide mapping of OIDC scopes to JWT claims. Each
          value may be a static string or a {{...}} template resolved at
          token-generation time.
        keywords: api, scope claim mapping
  /v1/mgmt/sessionclassification:
    get:
      tags: []
      summary: Get session classification
      description: >-
        Get a single session classification by name, using a valid management
        key.
      operationId: GetSessionClassification
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionClassification'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: sessionClassificationManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Get session classification | Session Classification Management
        description: >-
          Get a single session classification by name, using a valid management
          key.
        keywords: api, session classification management
    post:
      tags: []
      summary: Set session classification
      description: >-
        Create or update a session classification (upsert by name), using a
        valid management key. On a new name the defaults are applied; on an
        existing one, fields left out keep their stored value.
      operationId: SetSessionClassification
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionClassification'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SessionClassification'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: sessionClassificationManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Set session classification | Session Classification Management
        description: >-
          Create or update a session classification (upsert by name), using a
          valid management key. On a new name the defaults are applied; on an
          existing one, fields left out keep their stored value.
        keywords: api, session classification management
    delete:
      tags: []
      summary: Delete session classification
      description: >-
        Delete a session classification by name, using a valid management key.
        Users assigned to it are left without a group.
      operationId: DeleteSessionClassification
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: sessionClassificationManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Delete session classification | Session Classification Management
        description: >-
          Delete a session classification by name, using a valid management key.
          Users assigned to it are left without a group.
        keywords: api, session classification management
  /v1/mgmt/sessionclassification/all:
    get:
      tags: []
      summary: Load all session classifications
      description: >-
        Load all session classifications in the project, using a valid
        management key.
      operationId: LoadAllSessionClassifications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllSessionClassificationsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: sessionClassificationManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Load all session classifications | Session Classification Management
        description: >-
          Load all session classifications in the project, using a valid
          management key.
        keywords: api, session classification management
  /v1/mgmt/sso/idp/app/wsfed/create:
    post:
      tags: []
      summary: Create SSO WS-Fed IDP application
      description: Create a new SSO WS-Fed IDP application, using a valid management key.
      operationId: CreateSSOWSFedApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateSSOWSFedApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSSOApplicationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Create SSO WS-Fed IDP application | Sso Apps Management
        description: Create a new SSO WS-Fed IDP application, using a valid management key.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/apps/load:
    get:
      tags: []
      summary: Load All Applications
      description: >-
        ### Load all Applications within a project


        This endpoint returns details of all Applications within your Descope
        project.


        ### See Also

        - Review our [documentation](/manage/idpapplications/) around
        Applications within Descope.
      operationId: LoadAllSSOApplications
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllSSOApplicationsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Load All Applications | Sso Apps Management
        description: Load all Applications within a project
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/load:
    get:
      tags: []
      summary: Load Application by ID
      description: >-
        ### Load Application by ID within a project


        This endpoint returns details of a specific Application within your
        Descope project.


        ### See Also

        - Review our [documentation](/manage/idpapplications/) around
        Applications within Descope.
      operationId: LoadSSOApplication
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadSSOApplicationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Load Application by ID | Sso Apps Management
        description: Load Application by ID within a project
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/wsfed/update:
    post:
      tags: []
      summary: Update SSO WS-Fed IDP application
      description: Update a SSO WS-Fed IDP application, using a valid management key.
      operationId: UpdateSSOWSFedApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateSSOWSFedApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Update SSO WS-Fed IDP application | Sso Apps Management
        description: Update a SSO WS-Fed IDP application, using a valid management key.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/oidc/create:
    post:
      tags: []
      summary: Create OIDC Application
      description: >-
        ### Create OIDC Application within a project


        This endpoint creates an OIDC Application within your Descope project.


        ### See Also

        - Review our [documentation](/manage/idpapplications/) around
        Applications within Descope.
      operationId: CreateSSOOIDCApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateSSOOIDCApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSSOApplicationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Create OIDC Application | Sso Apps Management
        description: Create OIDC Application within a project
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/oidc/update:
    post:
      tags: []
      summary: Update OIDC Application
      description: >-
        ### Update OIDC Application within a project


        This endpoint updates an OIDC Application within your Descope project.


        ### See Also

        - Review our [documentation](/manage/idpapplications/) around
        Applications within Descope.
      operationId: UpdateSSOOIDCApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateSSOOIDCApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Update OIDC Application | Sso Apps Management
        description: Update OIDC Application within a project
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/saml/create:
    post:
      tags: []
      summary: Create SAML Application
      description: >-
        ### Create SAML Application within a project


        This endpoint creates a SAML Application within your Descope project.


        ### See Also

        - Review our [documentation](/manage/idpapplications/) around
        Applications within Descope.
      operationId: CreateSSOSAMLApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateSSOSAMLApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSSOApplicationResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Create SAML Application | Sso Apps Management
        description: Create SAML Application within a project
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/secret:
    get:
      tags: []
      summary: Get SSO application secret by application ID
      description: >-
        Get the dedicated OIDC client secret of an SSO application by its ID,
        using a valid management key.
      operationId: GetSSOApplicationSecret
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
        - name: secretName
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSSOApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Get SSO application secret by application ID | Sso Apps Management
        description: >-
          Get the dedicated OIDC client secret of an SSO application by its ID,
          using a valid management key.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/rotate:
    post:
      tags: []
      summary: Rotate SSO application secret by application ID
      description: >-
        Rotate the dedicated OIDC client secret of an SSO application by its ID,
        using a valid management key.
      operationId: RotateSSOApplicationSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RotateSSOApplicationSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RotateSSOApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Rotate SSO application secret by application ID | Sso Apps Management
        description: >-
          Rotate the dedicated OIDC client secret of an SSO application by its
          ID, using a valid management key.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/saml/update:
    post:
      tags: []
      summary: Update SAML Application
      description: >-
        ### Update SAML Application within a project


        This endpoint updates a SAML Application within your Descope project.


        ### See Also

        - Review our [documentation](/manage/idpapplications/) around
        Applications within Descope.
      operationId: UpdateSSOSAMLApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpdateSSOSAMLApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Update SAML Application | Sso Apps Management
        description: Update SAML Application within a project
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/customattribute/create:
    post:
      tags: []
      summary: Create SSO application custom attribute definitions
      description: >-
        Create or update SSO application custom attribute definitions, using a
        valid management key.
      operationId: CreateSSOApplicationCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImportCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: >-
          Create SSO application custom attribute definitions | Sso Apps
          Management
        description: >-
          Create or update SSO application custom attribute definitions, using a
          valid management key.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/delete:
    post:
      tags: []
      summary: Delete Application
      description: >-
        ### Delete an Application within a project


        This endpoint deletes an Application within your Descope project.


        ### See Also

        - Review our [documentation](/manage/idpapplications/) around
        Applications within Descope.
      operationId: DeleteSSOApplication
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteSSOApplicationRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Delete Application | Sso Apps Management
        description: Delete an Application within a project
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/customattribute/delete:
    post:
      tags: []
      summary: Delete SSO application custom attribute definitions
      description: >-
        Delete SSO application custom attribute definitions, using a valid
        management key.
      operationId: DeleteSSOApplicationCustomAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteCustomAttributesRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: >-
          Delete SSO application custom attribute definitions | Sso Apps
          Management
        description: >-
          Delete SSO application custom attribute definitions, using a valid
          management key.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/customattributes:
    get:
      tags: []
      summary: Get SSO application custom attribute definitions
      description: >-
        Get SSO application custom attribute definitions, using a valid
        management key.
      operationId: SSOApplicationCustomAttributes
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomAttributesResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 9
      x-sdk: true
      x-meta:
        title: Get SSO application custom attribute definitions | Sso Apps Management
        description: >-
          Get SSO application custom attribute definitions, using a valid
          management key.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/permission:
    get:
      tags: []
      summary: Get SSO application permission
      description: >-
        Get a single SSO application permission by application id and permission
        id, using a valid management key.
      operationId: GetSSOApplicationPermission
      parameters:
        - name: appId
          in: query
          schema:
            type: string
          required: true
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOApplicationPermission'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 11
      x-meta:
        title: Get SSO application permission | Sso Apps Management
        description: >-
          Get a single SSO application permission by application id and
          permission id, using a valid management key.
        keywords: api, sso apps management
    put:
      tags: []
      summary: Update SSO application permission
      description: >-
        Update an SSO application permission by application id and permission
        id, using a valid management key.
      operationId: UpdateSSOApplicationPermission
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOApplicationPermission'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOApplicationPermission'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 12
      x-meta:
        title: Update SSO application permission | Sso Apps Management
        description: >-
          Update an SSO application permission by application id and permission
          id, using a valid management key.
        keywords: api, sso apps management
    post:
      tags: []
      summary: Create SSO application permission
      description: >-
        Create a permission scoped to an SSO application, using a valid
        management key.
      operationId: CreateSSOApplicationPermission
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOApplicationPermission'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOApplicationPermission'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 10
      x-meta:
        title: Create SSO application permission | Sso Apps Management
        description: >-
          Create a permission scoped to an SSO application, using a valid
          management key.
        keywords: api, sso apps management
    delete:
      tags: []
      summary: Delete SSO application permission
      description: >-
        Delete an SSO application permission by application id and permission
        id, using a valid management key. The permission is detached from any
        roles that reference it.
      operationId: DeleteSSOApplicationPermission
      parameters:
        - name: appId
          in: query
          schema:
            type: string
          required: true
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 13
      x-meta:
        title: Delete SSO application permission | Sso Apps Management
        description: >-
          Delete an SSO application permission by application id and permission
          id, using a valid management key. The permission is detached from any
          roles that reference it.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/secret/add:
    post:
      tags: []
      summary: Add a named SSO application secret
      description: >-
        Add a new named OIDC client secret to an SSO application, using a valid
        management key. Returns the new secret metadata and its cleartext value
        (shown only once).
      operationId: AddSSOApplicationSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddSSOApplicationSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddSSOApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: Add a named SSO application secret | Sso Apps Management
        description: >-
          Add a new named OIDC client secret to an SSO application, using a
          valid management key. Returns the new secret metadata and its
          cleartext value (shown only once).
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/secret/revoke:
    post:
      tags: []
      summary: Revoke a named SSO application secret
      description: >-
        Revoke a named OIDC client secret of an SSO application, using a valid
        management key. Returns the remaining secret metadata.
      operationId: RevokeSSOApplicationSecret
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeSSOApplicationSecretRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeSSOApplicationSecretResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 13
      x-sdk: true
      x-meta:
        title: Revoke a named SSO application secret | Sso Apps Management
        description: >-
          Revoke a named OIDC client secret of an SSO application, using a valid
          management key. Returns the remaining secret metadata.
        keywords: api, sso apps management
  /v1/mgmt/sso/idp/app/role:
    get:
      tags: []
      summary: Get SSO application role
      description: >-
        Get a single SSO application role by application id and role id, using a
        valid management key.
      operationId: GetSSOApplicationRole
      parameters:
        - name: appId
          in: query
          schema:
            type: string
          required: true
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOApplicationRole'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 15
      x-meta:
        title: Get SSO application role | Sso Apps Management
        description: >-
          Get a single SSO application role by application id and role id, using
          a valid management key.
        keywords: api, sso apps management
    put:
      tags: []
      summary: Update SSO application role
      description: >-
        Update an SSO application role by application id and role id, using a
        valid management key. The full role is replaced with the given values,
        including permissionIds and roleMappings.
      operationId: UpdateSSOApplicationRole
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOApplicationRole'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOApplicationRole'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 16
      x-meta:
        title: Update SSO application role | Sso Apps Management
        description: >-
          Update an SSO application role by application id and role id, using a
          valid management key. The full role is replaced with the given values,
          including permissionIds and roleMappings.
        keywords: api, sso apps management
    post:
      tags: []
      summary: Create SSO application role
      description: >-
        Create a role scoped to an SSO application, using a valid management
        key. Role permissionIds must reference permissions of the same
        application.
      operationId: CreateSSOApplicationRole
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOApplicationRole'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOApplicationRole'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 14
      x-meta:
        title: Create SSO application role | Sso Apps Management
        description: >-
          Create a role scoped to an SSO application, using a valid management
          key. Role permissionIds must reference permissions of the same
          application.
        keywords: api, sso apps management
    delete:
      tags: []
      summary: Delete SSO application role
      description: >-
        Delete an SSO application role by application id and role id, using a
        valid management key. Any user or service account assignments of the
        role are removed.
      operationId: DeleteSSOApplicationRole
      parameters:
        - name: appId
          in: query
          schema:
            type: string
          required: true
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoAppsManagement
      x-order: 17
      x-meta:
        title: Delete SSO application role | Sso Apps Management
        description: >-
          Delete an SSO application role by application id and role id, using a
          valid management key. Any user or service account assignments of the
          role are removed.
        keywords: api, sso apps management
  /v2/mgmt/sso/settings:
    get:
      tags: []
      summary: Get Tenant's SAML/OIDC Settings
      description: >-
        ### Get the current SAML/OIDC configuration settings of a tenant, using
        a valid management key.


        This API endpoint allows you to get the current SAML/OIDC configuration
        settings of a tenant.


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: LoadSSOSettings
      parameters:
        - name: tenantId
          in: query
          schema:
            type: string
          required: true
        - name: ssoId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadSSOSettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Get Tenant's SAML/OIDC Settings | Sso Management
        description: >-
          Get the current SAML/OIDC configuration settings of a tenant, using a
          valid management key.
        keywords: api, sso management
  /v2/mgmt/sso/settings/all:
    get:
      tags: []
      summary: Load all SSO Settings for a tenant
      description: Load all SSO Settings for a tenant, using a valid management key.
      operationId: LoadAllSSOSettings
      parameters:
        - name: tenantId
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllSSOSettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Load all SSO Settings for a tenant | Sso Management
        description: Load all SSO Settings for a tenant, using a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/redirect:
    post:
      tags: []
      summary: Configure SSO Redirect URL
      description: Configure tenant SSO Redirect URL, using a valid management key.
      operationId: ConfigureSSORedirectURL
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigureSSORedirectURLRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Configure SSO Redirect URL | Sso Management
        description: Configure tenant SSO Redirect URL, using a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/saml:
    post:
      tags: []
      summary: Set Tenant's SAML Settings
      description: >-
        ### Configure the SAML Settings, using a valid management key.


        This API endpoint will configure the SAML settings on a tenant utilizing
        a valid management key.


        This API endpoint accepts idpURL, entityId, idpCert, and redirectURL
        which will be applied to the tenant under SSO Configuration section and
        will select the option to "Enter the connection details manually"


        This endpoint also accepts the attribute mapping you would like to be
        configured on the SAML settings.


        These configurations will need to be captured directly from your idp
        provider. The values for each field can be obtained from the admin
        console of the identity provider.


        Alternatively, administrators can configure SAML without applying these
        setting manually via [Configure SAML Metadata
        URL](/api/management/tenants/sso/configure-sso-saml-settings-by-metadata)


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: ConfigureSSOSAMLSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigureSSOSAMLSettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Set Tenant's SAML Settings | Sso Management
        description: Configure the SAML Settings, using a valid management key.
        keywords: api, sso management
  /v3/mgmt/sso/settings:
    get:
      tags: []
      summary: Get SSO settings
      description: Get the project's SSO settings, using a valid management key.
      operationId: GetSSOSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SSOSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 2
      x-meta:
        title: Get SSO settings | Sso Management
        description: Get the project's SSO settings, using a valid management key.
        keywords: api, sso management
    post:
      tags: []
      summary: Set SSO settings
      description: Set the project's SSO settings, using a valid management key.
      operationId: SetSSOSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SSOSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 3
      x-meta:
        title: Set SSO settings | Sso Management
        description: Set the project's SSO settings, using a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/saml/metadata:
    post:
      tags: []
      summary: Set Tenant's SAML Settings via Metadata URL
      description: >-
        ### Configure the SAML Metadata URL, using a valid management key.


        This API endpoint will configure the SAML Metadata URL on a tenant
        utilizing a valid management key.


        This API endpoint accepts idpMetadataURL which will be applied to the
        tenant under SSO Configuration section and will select the option to
        "Retrieve the connection details dynamically using a metadata URL"


        This endpoint also accepts the attribute mapping you would like to be
        configured on the SAML settings.


        This Metadata URL can can be obtained from the admin console of the
        identity provider. Configuring SAML via Metadata URL allows
        administrators to configure SAML without applying these setting manually
        via [Configure SAML
        Settings](/api/management/tenants/sso/configure-sso-saml-settings)


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: ConfigureSSOSAMLSettingsByMetadata
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigureSSOSAMLSettingsByMetadataRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Set Tenant's SAML Settings via Metadata URL | Sso Management
        description: Configure the SAML Metadata URL, using a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/settings/authtype:
    post:
      tags: []
      summary: Enable or disable an SSO configuration
      description: >-
        Set the authentication type of a tenant SSO configuration, using a valid
        management key. Setting it to none disables the configuration without
        deleting it, and setting it back to saml or oidc re-enables it with its
        stored settings.
      operationId: ConfigureSSOAuthType
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigureSSOAuthTypeRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Enable or disable an SSO configuration | Sso Management
        description: >-
          Set the authentication type of a tenant SSO configuration, using a
          valid management key. Setting it to none disables the configuration
          without deleting it, and setting it back to saml or oidc re-enables it
          with its stored settings.
        keywords: api, sso management
  /v1/mgmt/sso/oidc:
    post:
      tags: []
      summary: Set Tenant's OIDC Settings
      description: >-
        ### Configure the OIDC settings of a tenant, using a valid management
        key.


        This API endpoint will configure the OIDC settings on a tenant utilizing
        a valid management key.


        This endpoint accepts the OIDC configuration settings as well as the
        attribute mapping you would like to be configured on the SAML settings.


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: ConfigureSSOOIDCSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigureSSOOIDCSettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Set Tenant's OIDC Settings | Sso Management
        description: Configure the OIDC settings of a tenant, using a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/settings/new:
    post:
      tags: []
      summary: Create New SSO Settings
      description: >-
        ### Create new SSO settings for a tenant, using a valid management key.


        This API endpoint allows you to create a new SSO configuration for a
        tenant. The endpoint accepts the tenant ID, an optional SSO ID, and a
        display name for the SSO configuration.


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: NewSSOSettingsRequest
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NewSSOSettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadSSOSettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Create New SSO Settings | Sso Management
        description: Create new SSO settings for a tenant, using a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/settings:
    delete:
      tags: []
      summary: Delete Tenant's SAML/OIDC Settings
      description: >-
        ### Delete the current SAML/OIDC configuration settings of a tenant,
        using a valid management key.


        This API endpoint allows you to delete the current SAML/OIDC
        configuration settings of a tenant.


        Use this with caution as this endpoint deletes the configuration and is
        irreversible.


        ### See also


        - See [SSO Configuration](/sso) for further details on managing SSO
        Configurations on a tenant.
      operationId: DeleteSSOSettings
      parameters:
        - name: tenantId
          in: query
          schema:
            type: string
          required: true
        - name: ssoId
          in: query
          schema:
            type: string
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Delete Tenant's SAML/OIDC Settings | Sso Management
        description: >-
          Delete the current SAML/OIDC configuration settings of a tenant, using
          a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/recalculate-mappings:
    post:
      tags: []
      summary: Recalculate SSO Mappings
      description: >-
        Recalculate SSO group to role mappings for all users in a tenant, using
        a valid management key.
      operationId: RecalculateSSOMappings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecalculateSSOMappingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecalculateSSOMappingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: ssoManagement
      x-order: 10
      x-sdk: true
      x-meta:
        title: Recalculate SSO Mappings | Sso Management
        description: >-
          Recalculate SSO group to role mappings for all users in a tenant,
          using a valid management key.
        keywords: api, sso management
  /v1/mgmt/sso/provider-ids:
    post:
      tags: []
      summary: Update SSO Provider IDs
      description: >-
        Update SSO provider IDs and SCIM provider IDs for tenant SSO settings.
        This endpoint is not publicly documented.
      operationId: UpdateSSOProviderIDs
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSSOProviderIDsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: internal
      x-order: 99
      x-meta:
        title: Update SSO Provider IDs | Internal
        description: >-
          Update SSO provider IDs and SCIM provider IDs for tenant SSO settings.
          This endpoint is not publicly documented.
        keywords: api, internal
  /v1/mgmt/template:
    get:
      tags: []
      summary: Get template
      description: >-
        Get a single message template by type, method and id, using a valid
        management key.
      operationId: GetMessagingTemplate
      parameters:
        - name: type
          in: query
          schema:
            type: string
          required: true
        - name: method
          in: query
          schema:
            type: string
          required: true
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessagingTemplate'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: templateManagement
      x-order: 2
      x-meta:
        title: Get template | Template Management
        description: >-
          Get a single message template by type, method and id, using a valid
          management key.
        keywords: api, template management
    put:
      tags: []
      summary: Update template
      description: >-
        Update a single message template by type, method and id, using a valid
        management key.
      operationId: UpdateMessagingTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessagingTemplate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessagingTemplate'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: templateManagement
      x-order: 3
      x-meta:
        title: Update template | Template Management
        description: >-
          Update a single message template by type, method and id, using a valid
          management key.
        keywords: api, template management
    post:
      tags: []
      summary: Create template
      description: >-
        Create a message template for an auth method and delivery channel, using
        a valid management key. The created template is returned with its
        server-generated id.
      operationId: CreateMessagingTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessagingTemplate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessagingTemplate'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: templateManagement
      x-order: 1
      x-meta:
        title: Create template | Template Management
        description: >-
          Create a message template for an auth method and delivery channel,
          using a valid management key. The created template is returned with
          its server-generated id.
        keywords: api, template management
    delete:
      tags: []
      summary: Delete template
      description: >-
        Delete a single message template by type, method and id, using a valid
        management key. Deleting the active template resets the auth method's
        selection to the built-in System template.
      operationId: DeleteMessagingTemplate
      parameters:
        - name: type
          in: query
          schema:
            type: string
          required: true
        - name: method
          in: query
          schema:
            type: string
          required: true
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: templateManagement
      x-order: 4
      x-meta:
        title: Delete template | Template Management
        description: >-
          Delete a single message template by type, method and id, using a valid
          management key. Deleting the active template resets the auth method's
          selection to the built-in System template.
        keywords: api, template management
  /v1/mgmt/tenant/all:
    get:
      tags: []
      summary: Load All Tenants
      description: >-
        ### Load all tenants, using a valid management key.


        This API endpoint returns details of all configured tenants within the
        Descope instance. The response includes an array of the tenants and
        these details for each tenant:

        - id

        - name

        - selfProvisioningDomains


        ### Next Steps


        - Once you have this data, you can utilize the response to add users to
        the tenant via [Update User](/api/management/users/update-user) or
        [Create User](/api/management/users/create-user)

        - You can also apply sso configurations to the tenant via the [SSO
        Management API](/api/ssomanagement/)


        ### See also


        - See [Tenant Management](/management/tenant-management) for further
        details on managing tenants.
      operationId: LoadAllTenants
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllTenantsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Load All Tenants | Tenant Management
        description: Load all tenants, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/create/batch:
    post:
      tags: []
      summary: Create Tenants Batch
      description: >-
        Create multiple tenants in a single batch, using a valid management key.
        Each tenant is created independently; per-tenant failures are returned
        in the response body.
      operationId: CreateTenantsBatch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTenantsBatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTenantsBatchResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 1.1
      x-sdk: true
      x-meta:
        title: Create Tenants Batch | Tenant Management
        description: >-
          Create multiple tenants in a single batch, using a valid management
          key. Each tenant is created independently; per-tenant failures are
          returned in the response body.
        keywords: api, tenant management
  /v1/mgmt/tenant:
    get:
      tags: []
      summary: Load Tenant By ID
      description: >-
        ### Load tenant by ID, using a valid management key.


        This API endpoint returns details of the tenant within the Descope
        instance that matches the ID provided. The response includes an array of
        the tenants and these details for each tenant:

        - id

        - name

        - selfProvisioningDomains


        ### Next Steps


        - Once you have this data, you can utilize the response to add users to
        the tenant via [Update User](/api/management/users/update-user) or
        [Create User](/api/management/users/create-user)

        - You can also apply sso configurations to the tenant via the [SSO
        Management API](/api/ssomanagement/)


        ### See also


        - See [Tenant Management](/management/tenant-management) for further
        details on managing tenants.
      operationId: LoadTenant
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadTenantResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Load Tenant By ID | Tenant Management
        description: Load tenant by ID, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/update/batch:
    post:
      tags: []
      summary: Update Tenants Batch
      description: >-
        Update multiple tenants in a single batch, using a valid management key.
        Each tenant is updated independently; per-tenant failures are returned
        in the response body.
      operationId: UpdateTenantsBatch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTenantsBatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateTenantsBatchResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 2.1
      x-sdk: true
      x-meta:
        title: Update Tenants Batch | Tenant Management
        description: >-
          Update multiple tenants in a single batch, using a valid management
          key. Each tenant is updated independently; per-tenant failures are
          returned in the response body.
        keywords: api, tenant management
  /v1/mgmt/tenant/patch:
    patch:
      tags: []
      summary: Patch Tenant
      description: >-
        Patch a tenant, using a valid management key. Only the fields that are
        provided in the request are updated, any other field keeps its current
        value.
      operationId: PatchTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 2.2
      x-sdk: true
      x-meta:
        title: Patch Tenant | Tenant Management
        description: >-
          Patch a tenant, using a valid management key. Only the fields that are
          provided in the request are updated, any other field keeps its current
          value.
        keywords: api, tenant management
  /v1/mgmt/tenant/search:
    post:
      tags: []
      summary: Search Tenants
      description: >-
        ### Search all tenants, using a valid management key.


        This API endpoint returns details of configured tenants within the
        Descope instance that match the search parameters. The response includes
        an array of the tenants and these details for each tenant:

        - id

        - name

        - selfProvisioningDomains


        ### Next Steps


        - Once you have this data, you can utilize the response to add users to
        the tenant via [Update User](/api/management/users/update-user) or
        [Create User](/api/management/users/create-user)

        - You can also apply sso configurations to the tenant via the [SSO
        Management API](/api/ssomanagement/)


        ### See also


        - See [Tenant Management](/management/tenant-management) for further
        details on managing tenants.
      operationId: SearchTenants
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchTenantsRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LoadAllTenantsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Search Tenants | Tenant Management
        description: Search all tenants, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/delete/batch:
    post:
      tags: []
      summary: Delete Tenants Batch
      description: >-
        Delete multiple tenants in a single batch, using a valid management key.
        Each tenant is deleted independently; per-tenant failures are returned
        in the response body.
      operationId: DeleteTenantsBatch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteTenantsBatchRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteTenantsBatchResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 3.1
      x-sdk: true
      x-meta:
        title: Delete Tenants Batch | Tenant Management
        description: >-
          Delete multiple tenants in a single batch, using a valid management
          key. Each tenant is deleted independently; per-tenant failures are
          returned in the response body.
        keywords: api, tenant management
  /v1/mgmt/tenant/updateDefaultRoles:
    post:
      tags: []
      summary: Update Tenant Default Roles
      description: Update tenant default roles, using a valid management key.
      operationId: UpdateTenantDefaultRoles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTenantDefaultRolesRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 3.5
      x-sdk: true
      x-meta:
        title: Update Tenant Default Roles | Tenant Management
        description: Update tenant default roles, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/create:
    post:
      tags: []
      summary: Create Tenant
      description: >-
        ### Create a new tenant, using a valid management key.


        This API endpoint will create a new tenant utilizing a valid management
        key.


        Creation of a new tenant can set the name, id, and
        selfProvisioningDomains. The id and selfProvisioningDomains are not
        mandatory. The id will be autogenerated if not provided. The response
        will always include the tenantId.


        ### Next Steps


        - You can then add users to the tenant via [Update
        User](/api/management/users/update-user) or [Create
        User](/api/management/users/create-user)

        - You can also apply sso configurations to the tenant via the [SSO
        Management API](/api/ssomanagement/)


        ### See also


        - See [Tenant Management](/management/tenant-management) for further
        details on managing tenants.
      operationId: CreateTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTenantResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Create Tenant | Tenant Management
        description: Create a new tenant, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/update:
    post:
      tags: []
      summary: Update Tenant
      description: >-
        ### Update a tenant, using a valid management key.


        This API endpoint will update a tenant utilizing a valid management key.
        Utilizing this API endpoint will allow you to update the name or
        selfProvisioningDomains settings of the tenant.


        ### Next Steps


        - You can then add users to the tenant via [Update
        User](/api/management/users/update-user) or [Create
        User](/api/management/users/create-user)

        - You can also apply sso configurations to the tenant via the [SSO
        Management API](/api/ssomanagement/)


        ### See also


        - See [Tenant Management](/management/tenant-management) for further
        details on managing tenants.
      operationId: UpdateTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 5
      x-sdk: true
      x-meta:
        title: Update Tenant | Tenant Management
        description: Update a tenant, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/delete:
    post:
      tags: []
      summary: Delete Tenant
      description: >-
        ### Delete a tenant, using a valid management key.


        This API endpoint will delete a tenant utilizing a valid management key
        based on the provided user tenandId.


        ### See also


        - See [Tenant Management](/management/tenant-management) for further
        details on managing tenants.
      operationId: DeleteTenant
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteTenantRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 6
      x-sdk: true
      x-meta:
        title: Delete Tenant | Tenant Management
        description: Delete a tenant, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/sso-user-remove:
    post:
      tags: []
      summary: Remove SSO User from Tenant
      description: >-
        ### Remove an SSO user from a tenant, using a valid management key.


        This API endpoint removes an SSO user's association with a tenant.


        ### See also


        - See [Tenant Management](/management/tenant-management) for further
        details on managing tenants.
      operationId: RemoveSSOSuffixFromExternalId
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemoveSSOSuffixFromExternalIdRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 7
      x-meta:
        title: Remove SSO User from Tenant | Tenant Management
        description: Remove an SSO user from a tenant, using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/attribute:
    get:
      tags: []
      summary: Get tenant attribute
      description: >-
        Get a single tenant custom attribute definition by machine name, using a
        valid management key.
      operationId: GetTenantAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/managementv1.CustomAttribute'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 50
      x-meta:
        title: Get tenant attribute | Tenant Management
        description: >-
          Get a single tenant custom attribute definition by machine name, using
          a valid management key.
        keywords: api, tenant management
    post:
      tags: []
      summary: Set tenant attribute
      description: >-
        Create or update a single tenant custom attribute definition (upsert by
        machine name), using a valid management key. Tenant attributes do not
        support edit permissions.
      operationId: SetTenantAttribute
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/managementv1.CustomAttribute'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 51
      x-meta:
        title: Set tenant attribute | Tenant Management
        description: >-
          Create or update a single tenant custom attribute definition (upsert
          by machine name), using a valid management key. Tenant attributes do
          not support edit permissions.
        keywords: api, tenant management
    delete:
      tags: []
      summary: Delete tenant attribute
      description: >-
        Delete a single tenant custom attribute definition by machine name
        (no-op if absent), using a valid management key.
      operationId: DeleteTenantAttribute
      parameters:
        - name: name
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantManagement
      x-order: 52
      x-meta:
        title: Delete tenant attribute | Tenant Management
        description: >-
          Delete a single tenant custom attribute definition by machine name
          (no-op if absent), using a valid management key.
        keywords: api, tenant management
  /v1/mgmt/tenant/adminlinks/sso/authenticated:
    post:
      tags: []
      summary: Authenticated SSO Admin Link
      description: >-
        ### Authenticated SSO admin link for a tenant, using a valid management
        key.


        This API endpoint handles authenticated SSO admin link requests for a
        tenant.
      operationId: GetTenantAdminLinkSSOForAuthenticatedUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/GetTenantAdminLinkSSOForAuthenticateUsersRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateTenantAdminLinkResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAdminLinkManagement
      x-order: 4
      x-meta:
        title: Authenticated SSO Admin Link | Tenant Admin Link Management
        description: >-
          Authenticated SSO admin link for a tenant, using a valid management
          key.
        keywords: api, tenant admin link management
  /v1/mgmt/tenant/adminlinks/sso/authenticated/batch:
    post:
      tags: []
      summary: Generate tenant admin SSO configuration links (batch)
      description: >-
        Get default SSO admin link plus per-ssoId admin links for authenticated
        users only, using a valid management key
      operationId: GetTenantAdminLinksSSOForAuthenticatedUsers
      requestBody:
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/GetTenantAdminLinksSSOForAuthenticateUsersRequest
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetTenantAdminLinksSSOForAuthenticateUsersResponse
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenatManagement
      x-order: 8
      x-meta:
        title: >-
          Generate tenant admin SSO configuration links (batch) | Tenat
          Management
        description: >-
          Get default SSO admin link plus per-ssoId admin links for
          authenticated users only, using a valid management key
        keywords: api, tenat management
  /v2/mgmt/tenant/adminlinks/sso/generate:
    post:
      tags: []
      summary: Generate SSO Admin Link
      description: >-
        ### Generate an SSO admin link for a tenant, using a valid management
        key.


        This API endpoint generates an SSO admin link that allows a tenant
        administrator to configure SSO settings.
      operationId: GenerateTenantAdminLinkSSO
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateTenantAdminLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateTenantAdminLinkResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAdminLinkManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Generate SSO Admin Link | Tenant Admin Link Management
        description: Generate an SSO admin link for a tenant, using a valid management key.
        keywords: api, tenant admin link management
  /v1/mgmt/tenant/adminlinks/sso/revoke:
    post:
      tags: []
      summary: Revoke SSO Admin Link
      description: |-
        ### Revoke an SSO admin link for a tenant, using a valid management key.

        This API endpoint revokes an existing SSO admin link for a tenant.
      operationId: RevokeTenantAdminLinkSSO
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeTenantAdminLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAdminLinkManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Revoke SSO Admin Link | Tenant Admin Link Management
        description: Revoke an SSO admin link for a tenant, using a valid management key.
        keywords: api, tenant admin link management
  /v1/mgmt/tenant/adminlinks/sso/send:
    post:
      tags: []
      summary: Send SSO Admin Link
      description: >-
        ### Send an SSO admin link to a tenant administrator, using a valid
        management key.


        This API endpoint sends an SSO admin link via email to the specified
        tenant administrator.
      operationId: SendTenantAdminLinkSSO
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendTenantAdminLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendTenantAdminLinkResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantAdminLinkManagement
      x-order: 3
      x-meta:
        title: Send SSO Admin Link | Tenant Admin Link Management
        description: >-
          Send an SSO admin link to a tenant administrator, using a valid
          management key.
        keywords: api, tenant admin link management
  /v1/mgmt/tenant/adminlinks/sso/generate:
    post:
      tags: []
      summary: Generate Tenant Admin SSO Link (Deprecated)
      description: >-
        Generate tenant admin SSO configuration link, using a valid management
        key. Deprecated: use the v2 endpoint at
        /v2/mgmt/tenant/adminlinks/sso/generate instead.
      operationId: GenerateTenantAdminLinkSSODeprecated
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateTenantAdminLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenerateTenantAdminLinkResponse'
      deprecated: true
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: __NO_PUBLISH__
      x-order: 8
      x-meta:
        title: >-
          Generate Tenant Admin SSO Link (Deprecated) | Tenant Admin Link
          Management
        description: >-
          Generate tenant admin SSO configuration link, using a valid management
          key. Deprecated: use the v2 endpoint at
          /v2/mgmt/tenant/adminlinks/sso/generate instead.
        keywords: api, tenant admin link management
  /v1/mgmt/tenant/settings:
    get:
      tags: []
      summary: Get Tenant Session Settings
      description: >-
        ### Get session settings for a tenant


        This endpoint allows you to get the session settings of a given tenant.


        ### See Also

        - See [tenant session settings](/customize/tenant#session-management)
        for details about tenant session settings.
      operationId: GetTenantSettings
      parameters:
        - name: id
          in: query
          schema:
            type: string
          required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTenantSettingsResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantSessionManagement
      x-order: 7
      x-sdk: true
      x-meta:
        title: Get Tenant Session Settings | Tenant Session Management
        description: Get session settings for a tenant
        keywords: api, tenant session management
    post:
      tags: []
      summary: Update Tenant Session Settings
      description: >-
        ### Update session settings for a tenant


        This endpoint allows you to update the session settings of a given
        tenant.


        ### See Also

        - See [tenant session settings](/customize/tenant#session-management)
        for details about tenant session settings.
      operationId: ConfigureTenantSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConfigureTenantSettingsRequest'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: tenantSessionManagement
      x-order: 8
      x-sdk: true
      x-meta:
        title: Update Tenant Session Settings | Tenant Session Management
        description: Update session settings for a tenant
        keywords: api, tenant session management
  /v1/mgmt/tests/generate/otp:
    post:
      tags: []
      summary: Generate OTP
      description: >-
        ### Generate an OTP verification code for a test user.


        This endpoint is used to generate an OTP verification code for a test
        user. You can define whether this is sent via email or sms.


        Once you generate the OTP code, you must verify the OTP code via [verify
        OTP email](/api/otp/email/verify-otp) or [verify OTP
        sms](/api/otp/sms/verify-otp)


        ### See Also

        - See [OTP Authentication](/api/otp/) for details about implementing
        OTP.

        - See [Create a user](/api/management/users/create-user) with the `test`
        flag set to true to set it as a test user.

        - See [Manage Test Users](/manage/testusers/) for more information on
        test users.
      operationId: GenerateOTPForTestUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestUserGenerateOTPRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestUserGenerateOTPResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: testUserManagement
      x-order: 1
      x-sdk: true
      x-meta:
        title: Generate OTP | Test User Management
        description: Generate an OTP verification code for a test user.
        keywords: api, test user management
  /v1/mgmt/tests/generate/magiclink:
    post:
      tags: []
      summary: Generate Magic Link
      description: >-
        ### Generate a Magic Link for a test user.


        This endpoint is used to generate a Magic Link for a test user. You can
        define whether this is sent via email or sms.


        Once you generate the Magic Link Token must be verified via [verify
        token](/api/magic-link/verification/verify-token)


        ### See Also

        - See [Magic link Authentication](/api/magiclink/) for details about
        implementing magic links.

        - See [Create a user](/api/management/users/create-user) with the `test`
        flag set to true to set it as a test user.

        - See [Manage Test Users](/manage/testusers/) for more information on
        test users.
      operationId: GenerateMagicLinkForTestUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestUserGenerateMagicLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestUserGenerateMagicLinkResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: testUserManagement
      x-order: 2
      x-sdk: true
      x-meta:
        title: Generate Magic Link | Test User Management
        description: Generate a Magic Link for a test user.
        keywords: api, test user management
  /v1/mgmt/tests/generate/enchantedlink:
    post:
      tags: []
      summary: Generate Enchanted Link
      description: >-
        ### Generate a Enchanted Link for a test user.


        This endpoint is used to generate a Enchanted Link for a test user. You
        can define whether this is sent via email or sms.


        Once you generate the Enchanted Link Token must be verified via [verify
        token](/api/enchanted-link/verify-token)


        ### See Also

        - See [Enchanted link Authentication](/api/enchantedlink/) for details
        about implementing enchanted links.

        - See [Create a user](/api/management/users/create-user) with the `test`
        flag set to true to set it as a test user.

        - See [Manage Test Users](/manage/testusers/) for more information on
        test users.
      operationId: GenerateEnchantedLinkForTestUser
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TestUserGenerateEnchantedLinkRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestUserGenerateEnchantedLinkResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: testUserManagement
      x-order: 3
      x-sdk: true
      x-meta:
        title: Generate Enchanted Link | Test User Management
        description: Generate a Enchanted Link for a test user.
        keywords: api, test user management
  /v1/mgmt/user/test/delete/all:
    delete:
      tags: []
      summary: Delete All Test Users
      description: >-
        ### Delete all test users


        This endpoint is used to delete all test users from a project. This
        action will delete these users forever and they will not be recoverable.


        ### See Also

        - See [Manage Test Users](/manage/testusers/) for more information on
        test users.
      operationId: DeleteAllTestUsers
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAllTestUsersResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: testUserManagement
      x-order: 4
      x-sdk: true
      x-meta:
        title: Delete All Test Users | Test User Management
        description: Delete all test users
        keywords: api, test user management
  /v1/mgmt/totp/settings:
    get:
      tags: []
      summary: Get TOTP settings
      description: Get the project's TOTP settings, using a valid management key.
      operationId: GetTOTPSettings
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TOTPSettings'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: totpManagement
      x-order: 1
      x-meta:
        title: Get TOTP settings | Totp Management
        description: Get the project's TOTP settings, using a valid management key.
        keywords: api, totp management
    post:
      tags: []
      summary: Set TOTP settings
      description: Set the project's TOTP settings, using a valid management key.
      operationId: SetTOTPSettings
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TOTPSettings'
        required: true
      responses:
        '200':
          description: OK
          content: {}
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: totpManagement
      x-order: 2
      x-meta:
        title: Set TOTP settings | Totp Management
        description: Set the project's TOTP settings, using a valid management key.
        keywords: api, totp management
  /v1/mgmt/user/signin/embeddedlink:
    post:
      tags:
        - Embedded Link
      summary: Generate Embedded Link
      description: >-
        ### Generate an embedded link for an existing user


        Initiate a sign-in process by generating an embdedded link for an
        existing user utilizing a management key.


        The endpoint will return a token which can then be verified using the
        Magic Link [Verify Token](/api/magic-link/verification/verify-token)
        endpoint.


        ### Next Steps

        Verify the embedded link token using the [Verify
        Token](/api/magic-link/verification/verify-token) endpoint.


        ### See Also

        - See [Embedded link Authentication](/customize/auth/embeddedlink/) for
        details about implementing embedded links.

        - See [The User Object](/api/overview#the-user-object) for further
        details on how to identify users and their contact information such as
        email addresses and phone number.
      operationId: EmbeddedLinkSignin
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmbeddedLinkSignInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddedLinkSignInResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: MagicLink
      x-order: 1
      x-sdk: true
      x-meta:
        title: Generate Embedded Link | Embedded Link
        description: Generate an embedded link for an existing user
        keywords: api, embedded link
  /v1/mgmt/user/signup/embeddedlink:
    post:
      tags: []
      summary: Generate a token for user sign up, later can be verified with magiclink
      description: Generate a token for user sign up
      operationId: EmbeddedLinkSignup
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmbeddedLinkSignUpOrInRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddedLinkSignInResponse'
      security:
        - Descope Project ID and Management Key: []
      x-publishYaml: embeddedLink
      x-order: 2
      x-sdk: true
      x-meta:
        title: >-
          Generate a token for user sign up, later can be verified with
          magiclink | Embedded Link
        description: Generate a token for user sign up
        keywords: api, embedded link
components:
  schemas:
    google.protobuf.ListValue:
      type: object
      properties:
        values:
          type: array
          items:
            $ref: '#/components/schemas/google.protobuf.Value'
          description: Repeated field of dynamically typed values.
      description: |-
        `ListValue` is a wrapper around a repeated field of values.

         The JSON representation for `ListValue` is JSON array.
    google.protobuf.Value:
      description: >-
        Represents a dynamically typed value which can be either null, a number,
        a string, a boolean, a recursive struct value, or a list of values.
    AccessKeyLoginOptions:
      type: object
      properties:
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        selectedTenant:
          type: string
    CIBAAuthRequest:
      type: object
      properties:
        client_id:
          type: string
          minLength: 1
          maxLength: 200
        client_secret:
          type: string
          maxLength: 1000
        scope:
          type: string
          maxLength: 10000
        login_hint:
          type: string
          minLength: 1
          maxLength: 1000
        binding_message:
          type: string
          maxLength: 256
        requested_expiry:
          type: integer
          format: uint32
        audience:
          type: string
          maxLength: 1000
        project_id:
          type: string
        dpop_jkt:
          type: string
          maxLength: 1000
        resource:
          type: string
          description: |-
            RFC 8707 - OAuth 2.0 Resource Indicators
             Scalar, matching ThirdPartyApplicationTokenEndpointRequest: the form-encoded body CIBA Core
             mandates is flattened to scalars before it reaches the decoder, so a repeated field is unparseable
             on this route. descope/etc#17675 tracks lifting that limitation.
          maxLength: 1000
        authorization_details:
          type: string
          description: >-
            Outer bound only, so an oversized body is rejected before it is
            parsed. The authoritative caps
             (element count, 4KB serialized size, nesting depth) are enforced after parsing in the service.
          maxLength: 8192
        client_assertion_type:
          type: string
          maxLength: 200
        client_assertion:
          type: string
          maxLength: 10000
      required:
        - client_id
        - login_hint
    CIBAAuthResponse:
      type: object
      properties:
        auth_req_id:
          type: string
        expires_in:
          type: integer
          format: uint32
        interval:
          type: integer
          format: uint32
    EmailMagicLinkResponse:
      type: object
      properties:
        maskedEmail:
          type: string
    EmailOperationResponse:
      type: object
      properties:
        maskedEmail:
          type: string
        verificationAttempts:
          type: integer
          format: int32
    EmailVerificationStartRequest:
      type: object
      properties: {}
    EmailVerificationStartResponse:
      type: object
      properties:
        nonce:
          type: string
    EnchantedLinkResponse:
      type: object
      properties:
        pendingRef:
          type: string
        linkId:
          type: string
        maskedEmail:
          type: string
    EnchantedLinkSignInRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        providerId:
          type: string
        ssoAppId:
          type: string
        useRecovery:
          type: boolean
      required:
        - loginId
    EnchantedLinkSignUpEmailRequest:
      type: object
      properties:
        email:
          type: string
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        redirectUrl:
          type: string
        providerId:
          type: string
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
    EnchantedLinkSignUpPhoneRequest:
      type: object
      properties:
        phone:
          type: string
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        redirectUrl:
          type: string
        providerId:
          type: string
          maxLength: 254
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
    ExchangeAccessKeyRequest:
      type: object
      properties:
        loginOptions:
          $ref: '#/components/schemas/AccessKeyLoginOptions'
    ExchangeAccessKeyResponse:
      type: object
      properties:
        keyId:
          type: string
        sessionJwt:
          type: string
    ExchangeOAuthCodeRequest:
      type: object
      properties:
        code:
          type: string
          maxLength: 16384
        state:
          type: string
          minLength: 1
        provider:
          type: string
          maxLength: 254
        user:
          type: string
          maxLength: 1000
        error:
          type: string
          maxLength: 1000
        projectId:
          type: string
        tenantId:
          type: string
        id_token:
          type: string
          maxLength: 16384
        error_description:
          type: string
          maxLength: 4096
        ssoId:
          type: string
      required:
        - state
    ExchangeOneTapIDTokenRequest:
      type: object
      properties:
        provider:
          type: string
          minLength: 1
          maxLength: 254
        idToken:
          type: string
          minLength: 1
          maxLength: 4096
        nonce:
          type: string
          minLength: 1
          maxLength: 254
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
      required:
        - provider
        - idToken
        - nonce
    ExchangeTokenRequest:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - code
    ExportedAuthHistory:
      type: object
      properties:
        userId:
          type: string
        loginTime:
          type: integer
          format: int32
        city:
          type: string
        country:
          type: string
        ip:
          type: string
        selectedTenant:
          type: string
    FedCMAccount:
      type: object
      properties:
        id:
          type: string
        givenName:
          type: string
        name:
          type: string
        email:
          type: string
        picture:
          type: string
        approvedClients:
          type: array
          items:
            type: string
        loginHints:
          type: array
          items:
            type: string
        domainHints:
          type: array
          items:
            type: string
      description: >-
        Accroding to
        https://developers.google.com/privacy-sandbox/3pcd/fedcm-developer-guide#accounts-list-endpoint
    FedCMAccountsResponse:
      type: object
      properties:
        accounts:
          type: array
          items:
            $ref: '#/components/schemas/FedCMAccount'
    FedCMAssertionRequest:
      type: object
      properties:
        accountId:
          type: string
        clientId:
          type: string
        nonce:
          type: string
        disclosureTextShown:
          type: string
        isAutoSelected:
          type: string
        projectId:
          type: string
      description: >-
        According to
        https://developers.google.com/privacy-sandbox/3pcd/fedcm-developer-guide#id-assertion-endpoint
    FedCMAssertionResponse:
      type: object
      properties:
        token:
          type: string
    GenerateUserRecoveryCodesRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
      required:
        - loginId
    GenerateUserRecoveryCodesResponse:
      type: object
      properties:
        codes:
          type: array
          items:
            $ref: '#/components/schemas/RecoveryCode'
    GetEnchantedLinkSessionRequest:
      type: object
      properties:
        pendingRef:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - pendingRef
    GetNOTPSessionRequest:
      type: object
      properties:
        pendingRef:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - pendingRef
    GetOneTapClientIDResponse:
      type: object
      properties:
        clientId:
          type: string
    GetUserSecurityVerifyQuestionsResponse:
      type: object
      properties:
        questions:
          type: array
          items:
            $ref: '#/components/schemas/SecurityQuestion'
    IDPResponse:
      type: object
      properties:
        samlResponse:
          type: string
        samlGeneratedUser:
          type: string
        samlGeneratedRoles:
          type: string
        oidcResponse:
          type: string
        oidcGeneratedUser:
          type: string
        oidcGeneratedRoles:
          type: string
        idpGroups:
          type: array
          items:
            type: string
        idpSAMLAttributes:
          type: object
          default: false
        idpOIDCClaims:
          type: object
    IDPSSOLogoutRequest:
      type: object
      properties:
        app:
          type: string
          maxLength: 100
        SAMLRequest:
          type: string
          description: >-
            SAML Single Logout (descope/etc#19980): a LogoutRequest from the SP,
            or a LogoutResponse from an SP Descope
             sent a LogoutRequest to, over the HTTP-Redirect or HTTP-POST binding
          maxLength: 100000
          default: false
        SAMLResponse:
          type: string
          maxLength: 100000
          default: false
        RelayState:
          type: string
          maxLength: 100000
        SigAlg:
          type: string
          maxLength: 1000
        Signature:
          type: string
          maxLength: 10000
    IDPSSOLogoutResponse:
      type: object
      properties:
        value:
          type: string
          description: >-
            The HTML page that carries a SAML message over the HTTP-POST
            binding, empty for a redirect
    JWTResponse:
      type: object
      properties:
        sessionJwt:
          type: string
        refreshJwt:
          type: string
        cookieDomain:
          type: string
        cookiePath:
          type: string
        cookieMaxAge:
          type: integer
          format: int32
        cookieExpiration:
          type: integer
          format: int32
        user:
          $ref: '#/components/schemas/ResponseUser'
        firstSeen:
          type: boolean
        idpResponse:
          $ref: '#/components/schemas/IDPResponse'
        sessionExpiration:
          type: integer
          format: int32
        externalToken:
          type: string
        claims:
          type: object
        tenantSSOID:
          type: string
        trustedDeviceJwt:
          type: string
        nextRefreshSeconds:
          type: integer
          format: int32
        cookieName:
          type: string
        sessionCookieName:
          type: string
        sessionCookieDomain:
          type: string
        unsavedSSO:
          type: boolean
        knownDeviceJwt:
          type: string
        ssoAuthenticationOnly:
          type: boolean
          description: >-
            Set only when the login went through an SSO configuration classified
            authentication only: the
             person was verified, no user was created, updated or signed in, and no session was issued.
             Lets a flow branch on what kind of login it just completed. Optional so it stays absent for
             every ordinary auth response rather than adding a field nobody asked for.
        userCreationDeferred:
          type: boolean
      description: >-
        NOTE: if you add a new field to this message, also add it to the
        OptionalJWTResponse message
    LoginOptions:
      type: object
      properties:
        stepup:
          type: boolean
          default: false
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        mfa:
          type: boolean
          default: false
        ssoAppId:
          type: string
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        pkceChallenge:
          type: string
          description: >-
            relevant only for enchanted links in the point in time - other
            methods will ignore this field
          format: bytes
        revokeOtherSessions:
          type: boolean
        revokeOtherSessionsTypes:
          type: array
          items:
            type: string
            maxLength: 100
        tenantId:
          type: string
    LogoutRequest:
      type: object
      properties:
        logoutType:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
    MagicLinkSignInRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        providerId:
          type: string
        ssoAppId:
          type: string
        useRecovery:
          type: boolean
      required:
        - loginId
    MagicLinkSignUpEmailRequest:
      type: object
      properties:
        email:
          type: string
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        redirectUrl:
          type: string
        providerId:
          type: string
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
    MagicLinkSignUpPhoneRequest:
      type: object
      properties:
        phone:
          type: string
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        redirectUrl:
          type: string
        providerId:
          type: string
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
    MeAuthHistoryResponse:
      type: object
      properties:
        authHistory:
          type: array
          items:
            $ref: '#/components/schemas/ExportedAuthHistory'
    MeTenantsRequest:
      type: object
      properties:
        dct:
          type: boolean
        ids:
          type: array
          items:
            type: string
            minLength: 1
    MeTenantsResponse:
      type: object
      properties:
        tenants:
          type: array
          items:
            $ref: '#/components/schemas/Tenant'
    NOTPLinkResponse:
      type: object
      properties:
        pendingRef:
          type: string
          description: Pending ref is the reference to the pending operation
        redirectUrl:
          type: string
          description: >-
            Link to the app (e.g. 
            https://wa.me/1234567890?text=My%20authentication%20code%20is%20999999)
        image:
          type: string
          description: QR code image
    NOTPSignInRequest:
      type: object
      properties:
        provider:
          type: string
          description: Whatsapp, IMessage, etc
          minLength: 1
          maxLength: 254
        loginId:
          type: string
          description: Optional, becasue can be retrived from the provider webhook
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        providerId:
          type: string
        templates:
          $ref: '#/components/schemas/NOTPTemplateIDs'
        ssoAppId:
          type: string
    NOTPSignUpRequest:
      type: object
      properties:
        provider:
          type: string
          description: Whatsapp, IMessage, etc
          minLength: 1
          maxLength: 254
        phone:
          type: string
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        providerId:
          type: string
        templates:
          $ref: '#/components/schemas/NOTPTemplateIDs'
        ssoAppId:
          type: string
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
    NOTPTemplateIDs:
      type: object
      properties:
        verifyTemplateId:
          type: string
        successTemplateId:
          type: string
        errorTemplateId:
          type: string
      description: NOTP Requests & Responses
    OAuthAppConnectRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        projectId:
          type: string
        tenantId:
          type: string
        tenantLevel:
          type: boolean
        options:
          $ref: '#/components/schemas/OAuthAppOptions'
      required:
        - appId
    OAuthNativeFinishRequest:
      type: object
      properties:
        provider:
          type: string
          minLength: 1
          maxLength: 254
        stateId:
          type: string
          minLength: 1
        user:
          type: string
          maxLength: 1000
        code:
          type: string
          maxLength: 4096
        idToken:
          type: string
          maxLength: 4096
      required:
        - provider
        - stateId
    OAuthNativeStartRequest:
      type: object
      properties:
        provider:
          type: string
          minLength: 1
          maxLength: 254
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        implicit:
          type: boolean
        rawResponse:
          type: boolean
      required:
        - provider
    OAuthNativeStartResponse:
      type: object
      properties:
        clientId:
          type: string
        stateId:
          type: string
        nonce:
          type: string
        implicit:
          type: boolean
        errorId:
          type: string
    OAuthRedirectResponse:
      type: object
      properties:
        url:
          type: string
        errorId:
          type: string
    OIDCAuthZEndpointFinishRequest:
      type: object
      properties:
        state_id:
          type: string
          minLength: 1
          maxLength: 100
        sso_app_id:
          type: string
          maxLength: 100
        error_redirect_uri:
          type: string
      required:
        - state_id
    OIDCAuthZEndpointRequest:
      type: object
      properties:
        response_type:
          type: string
          description: >-
            response_type, scope and state are required for OIDC but marked
            optional so a PAR client may omit
             them from the outer authorize request and carry them via request_uri (RFC 9126 §4). The resolved
             values are enforced in OIDCService.OIDCAuthZEndpointStart (after applyPARToOIDCAuthZRequest):
             response_type and state must be present, scope must contain "openid". The PAR push
             (handleOIDCPAR) requires the same fields up front for fail-fast.
        scope:
          type: string
          maxLength: 10000
        client_id:
          type: string
          maxLength: 200
        state:
          type: string
          maxLength: 100000
        redirect_uri:
          type: string
        code_challenge_method:
          type: string
          description: PKCE
        code_challenge:
          type: string
          maxLength: 5000
        dynamic_val:
          type: string
          maxLength: 5000
        nonce:
          type: string
          maxLength: 5000
        ssoAppId:
          type: string
          maxLength: 100
        loginHint:
          type: string
          maxLength: 1000
        prompt:
          type: string
          maxLength: 254
        flow:
          type: string
          maxLength: 254
        flow_token:
          type: string
          maxLength: 254
        tenant:
          type: string
          maxLength: 100
        style:
          type: string
          maxLength: 254
        dpop_jkt:
          type: string
          maxLength: 100
        request_uri:
          type: string
          maxLength: 200
        project_id:
          type: string
        bg:
          type: string
          maxLength: 2048
        theme:
          type: string
          maxLength: 254
    OIDCAuthZEntraMFAEndpointRequest:
      type: object
      properties:
        response_type:
          type: string
          minLength: 1
        scope:
          type: string
          minLength: 1
        client_id:
          type: string
        state:
          type: string
          minLength: 1
          maxLength: 100000
        redirect_uri:
          type: string
          minLength: 1
        nonce:
          type: string
          minLength: 1
          maxLength: 5000
        id_token_hint:
          type: string
          minLength: 1
          maxLength: 10000
        claims:
          type: string
          minLength: 1
          maxLength: 10000
        ssoAppId:
          type: string
          maxLength: 100
        style:
          type: string
          maxLength: 254
      required:
        - response_type
        - scope
        - state
        - redirect_uri
        - nonce
        - id_token_hint
        - claims
    OIDCDeviceEndpointRequest:
      type: object
      properties:
        ssoAppId:
          type: string
          maxLength: 100
        client_id:
          type: string
          minLength: 1
          maxLength: 200
        scope:
          type: string
          maxLength: 10000
        audience:
          type: string
          maxLength: 1000
        project_id:
          type: string
        dpop_jkt:
          type: string
          maxLength: 1000
        authorization_details:
          type: string
          maxLength: 8192
        client_secret:
          type: string
          maxLength: 1000
        client_assertion_type:
          type: string
          maxLength: 200
        client_assertion:
          type: string
          maxLength: 10000
        login_hint:
          type: string
          maxLength: 1000
      required:
        - client_id
    OIDCDeviceEndpointResponse:
      type: object
      properties:
        device_code:
          type: string
        user_code:
          type: string
        verification_uri:
          type: string
        verification_uri_complete:
          type: string
        expires_in:
          type: integer
          format: uint32
        interval:
          type: integer
          format: uint32
    OIDCEndSessionEndpointRequest:
      type: object
      properties:
        id_token_hint:
          type: string
          maxLength: 10000
        client_id:
          type: string
          description: >-
            Legacy apps send the projectID (a descope_id); dedicated clients
            send a caller-imported custom
             client_id, so this is capped by length (matching the authorize/token endpoints) rather than the
             descope_id format, and resolved/validated at the Controller level.
          maxLength: 200
        post_logout_redirect_uri:
          type: string
        state:
          type: string
          maxLength: 100000
        ssoAppId:
          type: string
          maxLength: 100
        project_id:
          type: string
    OIDCIntrospectionEndpointRequest:
      type: object
      properties:
        token:
          type: string
          minLength: 1
          maxLength: 10000
        token_type_hint:
          type: string
        ssoAppId:
          type: string
          maxLength: 100
        client_id:
          type: string
          description: >-
            Client credentials for the caller (the protected resource). RFC 7662
            requires client authentication;
             credentials may arrive here in the body (client_secret_post) or via the Authorization Basic header
             (client_secret_basic, extracted by the OIDC gateway middleware like the token endpoint).
          maxLength: 200
        client_secret:
          type: string
          maxLength: 1000
      required:
        - token
    OIDCIntrospectionEndpointResponse:
      type: object
      properties:
        result:
          type: object
          description: >-
            RFC 7662 introspection response, flattened to the top-level JSON
            body via response_body="result".
    OIDCRevocationEndpointRequest:
      type: object
      properties:
        token:
          type: string
          minLength: 1
          maxLength: 10000
        token_type_hint:
          type: string
          minLength: 1
        ssoAppId:
          type: string
          maxLength: 100
      required:
        - token
        - token_type_hint
    OIDCSelectTenantRequest:
      type: object
      properties:
        tenant:
          type: string
          minLength: 1
          maxLength: 100
        client_id:
          type: string
          minLength: 1
          maxLength: 200
        client_secret:
          type: string
          maxLength: 1000
      required:
        - tenant
        - client_id
    OIDCTokenEndpointRequest:
      type: object
      properties:
        grant_type:
          type: string
        code:
          type: string
          maxLength: 1000
        redirect_uri:
          type: string
        client_id:
          type: string
          maxLength: 200
        client_secret:
          type: string
          maxLength: 1000
        code_verifier:
          type: string
          maxLength: 5000
        refresh_token:
          type: string
          maxLength: 10000
        scope:
          type: string
          maxLength: 10000
        ssoAppId:
          type: string
          maxLength: 100
        audience:
          type: string
          maxLength: 1000
        username:
          type: string
          maxLength: 1000
        password:
          type: string
          maxLength: 1000
        assertion:
          type: string
          maxLength: 1000000
        client_assertion_type:
          type: string
        client_assertion:
          type: string
          maxLength: 1000000
        device_code:
          type: string
          maxLength: 1000
        project_id:
          type: string
    OIDCTokenEndpointResponse:
      type: object
      properties:
        access_token:
          type: string
        token_type:
          type: string
        refresh_token:
          type: string
        id_token:
          type: string
        expires_in:
          type: integer
          format: uint32
        scope:
          type: string
        error:
          type: string
          description: >-
            Those fields are in use just in case of error of device flow
            scenario (where device polling on the specific error response)
        description:
          type: string
        issued_token_type:
          type: string
        authorization_details:
          $ref: '#/components/schemas/google.protobuf.ListValue'
    OIDCUserInfoEndpointRequest:
      type: object
      properties:
        ssoAppId:
          type: string
          description: Can be empty as data arrived on the Authorization header token
          maxLength: 100
    OIDCUserInfoEndpointResponse:
      type: object
      properties:
        userInfoClaims:
          type: object
    OTPSignInRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        providerId:
          type: string
        ssoAppId:
          type: string
        useRecovery:
          type: boolean
      required:
        - loginId
    OTPSignUpEmailRequest:
      type: object
      properties:
        email:
          type: string
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/EmailSignUpUserObject'
        providerId:
          type: string
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
    OTPSignUpPhoneRequest:
      type: object
      properties:
        phone:
          type: string
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/PhoneSignUpUserObject'
        providerId:
          type: string
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
    OTPVerifyCodeRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        code:
          type: string
          minLength: 6
          maxLength: 6
      required:
        - loginId
        - code
    OperationResponse:
      type: object
      properties: {}
    OptionalJWTResponse:
      type: object
      properties:
        sessionJwt:
          type: string
        refreshJwt:
          type: string
        cookieDomain:
          type: string
        cookiePath:
          type: string
        cookieMaxAge:
          type: integer
          format: int32
        cookieExpiration:
          type: integer
          format: int32
        sessionExpiration:
          type: integer
          description: |-
            For convenience, we use the same field numbers as in JWTResponse
             optional userv1.ResponseUser user = 7;
             optional bool firstSeen = 8;
             optional IDPResponse idpResponse = 11;
          format: int32
        externalToken:
          type: string
        claims:
          type: object
        tenantSSOID:
          type: string
        trustedDeviceJwt:
          type: string
        nextRefreshSeconds:
          type: integer
          format: int32
        cookieName:
          type: string
        sessionCookieName:
          type: string
        sessionCookieDomain:
          type: string
        knownDeviceJwt:
          type: string
        ssoAuthenticationOnly:
          type: boolean
      description: |-
        This is a copy of JWTResponse with all fields optional
         This is used so in case an empty response is returned, it won't send zero values
    PasskeyOptions:
      type: object
      properties:
        authenticatorSelection:
          allOf:
            - $ref: >-
                #/components/schemas/PasskeyOptions_WebauthnAuthenticatorSelectionCriteria
          description: attestation only (sign up)
        attestation:
          enum:
            - none
            - indirect
            - direct
          type: string
          format: enum
          default: false
        userVerification:
          enum:
            - preferred
            - required
            - discouraged
          type: string
          description: assertion only (sign in)
          format: enum
        extensionsJSON:
          type: string
          description: shared
    PasskeyOptions_WebauthnAuthenticatorSelectionCriteria:
      type: object
      properties:
        authenticatorAttachment:
          enum:
            - any
            - platform
            - crossplatform
          type: string
          format: enum
        requireResidentKey:
          enum:
            - unspecified
            - 'true'
            - 'false'
          type: string
          format: enum
        residentKey:
          enum:
            - discouraged
            - preferred
            - required
          type: string
          format: enum
        userVerification:
          enum:
            - preferred
            - required
            - discouraged
          type: string
          format: enum
        extensionsJSON:
          type: string
    PasswordPolicyResponse:
      type: object
      properties:
        minLength:
          type: integer
          format: int32
        lowercase:
          type: boolean
        uppercase:
          type: boolean
        number:
          type: boolean
        nonAlphanumeric:
          type: boolean
        strengthScoreEnabled:
          type: boolean
        strengthScore:
          type: integer
          format: int32
    PasswordReplaceRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        oldPassword:
          type: string
          minLength: 1
        newPassword:
          type: string
          minLength: 1
        revokeOtherSessions:
          type: boolean
        revokeOtherSessionsTypes:
          type: array
          items:
            type: string
            maxLength: 100
      required:
        - loginId
        - oldPassword
        - newPassword
    PasswordResetSendRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        providerId:
          type: string
          maxLength: 254
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        useRecovery:
          type: boolean
      required:
        - loginId
    PasswordResetSendResponse:
      type: object
      properties:
        resetMethod:
          type: string
        pendingRef:
          type: string
        linkId:
          type: string
        maskedEmail:
          type: string
    PasswordSignInRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        password:
          type: string
          minLength: 1
        ssoAppId:
          type: string
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
      required:
        - loginId
        - password
    PasswordSignUpRequest:
      type: object
      properties:
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        password:
          type: string
          minLength: 1
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
      required:
        - password
    PasswordUpdateRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        newPassword:
          type: string
          minLength: 1
      required:
        - loginId
        - newPassword
    PhoneEnchantedLinkResponse:
      type: object
      properties:
        pendingRef:
          type: string
        linkId:
          type: string
        maskedPhone:
          type: string
    PhoneMagicLinkResponse:
      type: object
      properties:
        maskedPhone:
          type: string
    PhoneOperationResponse:
      type: object
      properties:
        maskedPhone:
          type: string
        verificationAttempts:
          type: integer
          format: int32
    PushEnrollDeviceRequest:
      type: object
      properties:
        provider:
          type: string
          minLength: 1
        token:
          type: string
          minLength: 1
          maxLength: 16384
        device:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - provider
        - token
        - device
    PushGetSessionRequest:
      type: object
      properties:
        pendingRef:
          type: string
          minLength: 29
          maxLength: 29
      required:
        - pendingRef
    PushSignInFinishRequest:
      type: object
      properties:
        transactionId:
          type: string
          minLength: 45
          maxLength: 45
        result:
          type: string
          minLength: 1
      required:
        - transactionId
        - result
    PushSignInStartRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
      required:
        - loginId
    PushSignInStartResponse:
      type: object
      properties:
        pendingRef:
          type: string
    RecoveryCode:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          maxLength: 20
      required:
        - code
    RefreshSessionRequest:
      type: object
      properties:
        externalToken:
          type: string
          maxLength: 1000000
    SAMLIDPFinishEndpointRequest:
      type: object
      properties:
        state_id:
          type: string
          minLength: 1
          maxLength: 100
        sso_app_id:
          type: string
          minLength: 1
          maxLength: 100
        additionalSAMLAttributes:
          type: object
          default: false
      required:
        - state_id
        - sso_app_id
    SAMLIDPFinishEndpointResponse:
      type: object
      properties:
        url:
          type: string
        samlResponse:
          type: string
        relayState:
          type: string
        error:
          type: boolean
    SAMLIDPInitiateAdapter1RequestPOST:
      type: object
      properties:
        SPID:
          type: string
          minLength: 1
          maxLength: 100
        RelayState:
          type: string
          maxLength: 100000
        LoginHint:
          type: string
          maxLength: 2000
        tenant:
          type: string
          maxLength: 100
        flow_token:
          type: string
          maxLength: 254
        fp:
          type: string
          maxLength: 2000
        dpid:
          type: string
      required:
        - SPID
    SAMLIDPInitiateRequestPOST:
      type: object
      properties:
        app:
          type: string
          minLength: 1
          maxLength: 100
        RelayState:
          type: string
          maxLength: 100000
        LoginHint:
          type: string
          maxLength: 2000
        tenant:
          type: string
          maxLength: 100
        flow_token:
          type: string
          maxLength: 254
        login_hint:
          type: string
          maxLength: 2000
      required:
        - app
    SAMLIDPMetadataResponse:
      type: object
      properties:
        xml:
          type: string
    SAMLIDPSSORequestPOSTData:
      type: object
      properties:
        SAMLRequest:
          type: string
          maxLength: 100000
          default: false
        RelayState:
          type: string
          maxLength: 100000
        SamlRequest:
          type: string
          maxLength: 100000
        LoginHint:
          type: string
          maxLength: 2000
        tenant:
          type: string
          maxLength: 100
        flow_token:
          type: string
          maxLength: 254
        login_hint:
          type: string
          maxLength: 2000
    SAMLMetadataResponse:
      type: object
      properties:
        xml:
          type: string
    SAMLRedirectResponse:
      type: object
      properties:
        url:
          type: string
        errorId:
          type: string
    SecurityQuestion:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        text:
          type: string
          minLength: 1
          maxLength: 254
      description: >-
        Same as service service's SecurityQuestion, but we don't want to depend
        on project service
      required:
        - id
        - text
    SecurityQuestionAnswer:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        answer:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
        - answer
    SelectFamilyRequest:
      type: object
      properties:
        familyId:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - familyId
    SelectTenantRequest:
      type: object
      properties:
        tenant:
          type: string
    SetupUserSecurityQuestionsRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        answers:
          type: array
          items:
            $ref: '#/components/schemas/SecurityQuestionAnswer'
          minItems: 1
      description: Setup Questions
      required:
        - loginId
        - answers
    SetupUserSecurityQuestionsResponse:
      type: object
      properties: {}
    SignInRecoveryCodeRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        code:
          type: string
          minLength: 1
          maxLength: 20
      required:
        - loginId
        - code
    SignUpUser:
      type: object
      properties:
        loginId:
          type: string
        name:
          type: string
          maxLength: 254
        phone:
          type: string
        email:
          type: string
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
        recoveryEmail:
          type: string
        recoveryPhone:
          type: string
    SignupLoginOptions:
      type: object
      properties:
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        pkceChallenge:
          type: string
          description: >-
            relevant only for enchanted links in the point in time - other
            methods will ignore this field
          format: bytes
        tenantId:
          type: string
    TOTPResponse:
      type: object
      properties:
        provisioningURL:
          type: string
          description: >-
            Clickable URL containing the TOTP key that will open an installed
            authenticator app
        image:
          type: string
          description: >-
            QR code of the TOTP key (as a Base64 image) that can be scanned from
            an authenticator app
        key:
          type: string
          description: TOTP key that can be manually pasted into the authenticator app
    TOTPSignUpRequest:
      type: object
      properties:
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        ssoAppId:
          type: string
    TOTPUpdateRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
      required:
        - loginId
    TOTPVerifyCodeRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        code:
          type: string
          minLength: 6
          maxLength: 6
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
      required:
        - loginId
        - code
    Tenant:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        selfProvisioningDomains:
          type: array
          items:
            type: string
        authType:
          type: string
        domains:
          type: array
          items:
            type: string
        createdTime:
          type: integer
          format: int32
        disabled:
          type: boolean
        enforceSSO:
          type: boolean
        enforceSSOExclusions:
          type: array
          items:
            type: string
        federatedAppIds:
          type: array
          items:
            type: string
        parent:
          type: string
        successors:
          type: array
          items:
            type: string
        defaultRoles:
          type: array
          items:
            type: string
        roleInheritance:
          type: string
        additionalSSOConfigs:
          type: array
          items:
            $ref: '#/components/schemas/AdditionalSSOConfiguration'
        approvedDomains:
          type: array
          items:
            type: string
          description: >-
            The tenant's vanity hostname (e.g. surveys.example.com), unique
            across the project's tenants. Requests that reach the project
            through its trusted proxy on this hostname are bound to this tenant.
            One item for now
        enforceSSOExclusionPermissions:
          type: array
          items:
            type: string
          description: >-
            Permission names or IDs whose holders in the tenant may sign in
            without SSO while enforceSSO is on (break-glass accounts)
    ThirdPartyApplicationAuthZEndpointRequest:
      type: object
      properties:
        response_type:
          type: string
          description: >-
            RFC 9101 §6.3: when a JAR `request` parameter is present,
            response_type and
             redirect_uri may be omitted from the outer query and carried inside the JWT.
             The controller validates the resolved values after JAR processing.
        scope:
          type: string
          maxLength: 10000
        client_id:
          type: string
          maxLength: 200
        state:
          type: string
          maxLength: 100000
        redirect_uri:
          type: string
        code_challenge_method:
          type: string
          description: PKCE
        code_challenge:
          type: string
          maxLength: 5000
        nonce:
          type: string
          maxLength: 5000
        loginHint:
          type: string
          maxLength: 1000
        prompt:
          type: string
          maxLength: 254
        flow:
          type: string
          maxLength: 254
        flow_token:
          type: string
          maxLength: 254
        resource:
          type: array
          items:
            type: string
            maxLength: 1000
          description: RFC 8707 - OAuth 2.0 Resource Indicators
          maxItems: 50
        project_id:
          type: string
        tenant:
          type: string
          maxLength: 100
        mcp_server_id:
          type: string
          maxLength: 100
        style:
          type: string
          maxLength: 254
        dpop_jkt:
          type: string
          maxLength: 1000
        request:
          type: string
          maxLength: 10000
        request_uri:
          type: string
          maxLength: 200
        authorization_details:
          type: string
          maxLength: 8192
        dynamic_val:
          type: string
          maxLength: 5000
        bg:
          type: string
          maxLength: 2048
        theme:
          type: string
          maxLength: 254
    ThirdPartyApplicationFinishEndpointRequest:
      type: object
      properties:
        state_id:
          type: string
          minLength: 1
          maxLength: 100
        app_id:
          type: string
          minLength: 1
          maxLength: 100
        error_redirect_uri:
          type: string
          minLength: 1
        consent_id:
          type: string
          maxLength: 100
      required:
        - state_id
        - app_id
        - error_redirect_uri
    ThirdPartyApplicationIntrospectionEndpointRequest:
      type: object
      properties:
        token:
          type: string
          minLength: 1
          maxLength: 10000
        token_type_hint:
          type: string
        client_id:
          type: string
          description: >-
            The caller's (protected resource's) client credentials, RFC 7662
            §2.1. They may arrive here
             (client_secret_post) or via the Authorization Basic header (client_secret_basic).
          maxLength: 1000
        client_secret:
          type: string
          maxLength: 1000
        project_id:
          type: string
      required:
        - token
    ThirdPartyApplicationPARRequest:
      type: object
      properties:
        client_id:
          type: string
          maxLength: 200
        client_secret:
          type: string
          maxLength: 10000
        response_type:
          type: string
        scope:
          type: string
          maxLength: 10000
        redirect_uri:
          type: string
        code_challenge:
          type: string
          maxLength: 5000
        code_challenge_method:
          type: string
        state:
          type: string
          maxLength: 100000
        nonce:
          type: string
          maxLength: 5000
        dpop_jkt:
          type: string
          maxLength: 1000
        request:
          type: string
          maxLength: 10000
        request_uri:
          type: string
          maxLength: 200
        project_id:
          type: string
        client_assertion:
          type: string
          maxLength: 10000
        client_assertion_type:
          type: string
          maxLength: 200
        ssoAppId:
          type: string
          maxLength: 100
      description: >-
        ThirdPartyApplicationPARRequest is the body of the PAR endpoint (RFC
        9126 §2.1).
    ThirdPartyApplicationPARResponse:
      type: object
      properties:
        request_uri:
          type: string
        expires_in:
          type: integer
          format: int32
    ThirdPartyApplicationRevocationEndpointRequest:
      type: object
      properties:
        token:
          type: string
          minLength: 1
          maxLength: 10000
        token_type_hint:
          type: string
          maxLength: 100
        client_id:
          type: string
          maxLength: 1000
        client_secret:
          type: string
          maxLength: 1000
        project_id:
          type: string
        client_assertion:
          type: string
          maxLength: 10000
        client_assertion_type:
          type: string
          maxLength: 200
      required:
        - token
    ThirdPartyApplicationTokenEndpointRequest:
      type: object
      properties:
        grant_type:
          type: string
        code:
          type: string
          maxLength: 1000
        client_id:
          type: string
          maxLength: 200
        client_secret:
          type: string
          maxLength: 1000
        code_verifier:
          type: string
          maxLength: 5000
        scope:
          type: string
          maxLength: 10000
        refresh_token:
          type: string
          maxLength: 10000
        tenantId:
          type: string
        resource:
          type: string
          description: >-
            RFC 8707 - OAuth 2.0 Resource Indicators - Token Endpoint only
            supports receiving a single resource
          maxLength: 1000
        audience:
          type: string
          maxLength: 1000
        assertion:
          type: string
          maxLength: 1000000
        client_assertion_type:
          type: string
          description: >-
            jwt-spiffe (draft-ietf-oauth-spiffe-client-auth) is accepted only
            from workloadIdentity apps; the service enforces that.
        client_assertion:
          type: string
          maxLength: 1000000
        device_code:
          type: string
          maxLength: 1000
        project_id:
          type: string
        mcp_server_id:
          type: string
          maxLength: 100
        subject_token:
          type: string
          maxLength: 100000
        subject_token_type:
          type: string
        auth_req_id:
          type: string
          maxLength: 1000
        requested_token_type:
          type: string
          description: >-
            RFC 8693 requested_token_type. Empty/access_token => access token
            (default). id-jag => issue a Cross-App Access Identity Assertion
            Authorization Grant.
        authorization_details:
          type: string
          maxLength: 8192
        redirect_uri:
          type: string
          maxLength: 10000
    ThirdPartyApplicationUserInfoEndpointRequest:
      type: object
      properties:
        project_id:
          type: string
          description: Can be empty as data arrived on the Authorization header token
    ThirdPartyApplicationUserInfoEndpointResponse:
      type: object
      properties:
        userInfoClaims:
          type: object
    UpdateUserEmailEnchantedLinkRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        email:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        addToLoginIDs:
          type: boolean
          default: false
        onMergeUseExisting:
          type: boolean
          default: false
        providerId:
          type: string
          maxLength: 254
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        failOnConflict:
          type: boolean
      required:
        - loginId
        - email
    UpdateUserEmailMagicLinkRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        email:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        addToLoginIDs:
          type: boolean
          default: false
        onMergeUseExisting:
          type: boolean
          default: false
        providerId:
          type: string
          maxLength: 254
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        failOnConflict:
          type: boolean
      required:
        - loginId
        - email
    UpdateUserEmailOTPRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        email:
          type: string
          minLength: 1
        addToLoginIDs:
          type: boolean
          default: false
        onMergeUseExisting:
          type: boolean
          default: false
        providerId:
          type: string
          maxLength: 254
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        failOnConflict:
          type: boolean
        mfa:
          type: boolean
          description: >-
            When true, the existing refresh token's auth methods are preserved
            and the verified email is added to them (MFA), instead of replacing
            the amr with a single factor. Requires a valid refresh token on the
            request.
      required:
        - loginId
        - email
    UpdateUserNOTPRequest:
      type: object
      properties:
        provider:
          type: string
          minLength: 1
          maxLength: 254
        loginId:
          type: string
          minLength: 1
        phone:
          type: string
        addToLoginIDs:
          type: boolean
          default: false
        onMergeUseExisting:
          type: boolean
          default: false
        providerId:
          type: string
        templates:
          $ref: '#/components/schemas/NOTPTemplateIDs'
        templateOptions:
          type: object
          additionalProperties:
            type: string
        ssoAppId:
          type: string
        locale:
          type: string
          maxLength: 254
        failOnConflict:
          type: boolean
      required:
        - loginId
    UpdateUserPhoneEnchantedLinkRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        phone:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        addToLoginIDs:
          type: boolean
          default: false
        onMergeUseExisting:
          type: boolean
          default: false
        providerId:
          type: string
          maxLength: 254
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        failOnConflict:
          type: boolean
      required:
        - loginId
        - phone
    UpdateUserPhoneMagicLinkRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        phone:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        addToLoginIDs:
          type: boolean
          default: false
        onMergeUseExisting:
          type: boolean
          default: false
        providerId:
          type: string
          maxLength: 254
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        failOnConflict:
          type: boolean
      required:
        - loginId
        - phone
    UpdateUserPhoneOTPRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        phone:
          type: string
          minLength: 1
        addToLoginIDs:
          type: boolean
          default: false
        onMergeUseExisting:
          type: boolean
          default: false
        providerId:
          type: string
          maxLength: 254
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        failOnConflict:
          type: boolean
        mfa:
          type: boolean
          description: >-
            When true, the existing refresh token's auth methods are preserved
            and the verified phone is added to them (MFA), instead of replacing
            the amr with a single factor. Requires a valid refresh token on the
            request.
      required:
        - loginId
        - phone
    ValidateSessionRequest:
      type: object
      properties: {}
    ValidateSessionResponse:
      type: object
      properties:
        parsedJWT:
          type: object
    VerifyEnchantedLinkRequest:
      type: object
      properties:
        token:
          type: string
          minLength: 1
          maxLength: 254
        pkceVerifier:
          type: string
          format: bytes
      required:
        - token
    VerifyEnchantedLinkResponse:
      type: object
      properties: {}
    VerifyMagicLinkRequest:
      type: object
      properties:
        token:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - token
    VerifyOneTapIDTokenResponse:
      type: object
      properties:
        code:
          type: string
    VerifyUserSecurityQuestionsRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        answers:
          type: array
          items:
            $ref: '#/components/schemas/SecurityQuestionAnswer'
          minItems: 1
        stepup:
          type: boolean
      description: Verify Questions
      required:
        - loginId
        - answers
    WSFedIDPFinishEndpointRequest:
      type: object
      properties:
        state_id:
          type: string
          minLength: 1
          maxLength: 100
        sso_app_id:
          type: string
          minLength: 1
          maxLength: 100
      required:
        - state_id
        - sso_app_id
    WSFedIDPFinishEndpointResponse:
      type: object
      properties:
        replyURL:
          type: string
        wresult:
          type: string
        wctx:
          type: string
        error:
          type: boolean
    WSFedIDPInitiateRequest:
      type: object
      properties:
        app:
          type: string
          minLength: 1
          maxLength: 100
        tenant:
          type: string
          maxLength: 100
        login_hint:
          type: string
          maxLength: 2000
      required:
        - app
    WSFedIDPMetadataResponse:
      type: object
      properties:
        xml:
          type: string
    WSFedIDPPassiveRequest:
      type: object
      properties:
        app:
          type: string
          maxLength: 100
        wa:
          type: string
          maxLength: 100
        wtrealm:
          type: string
          maxLength: 10000
        wreply:
          type: string
          maxLength: 10000
        wctx:
          type: string
          maxLength: 100000
        whr:
          type: string
          maxLength: 1000
        tenant:
          type: string
          maxLength: 100
        login_hint:
          type: string
          maxLength: 2000
    WalletFinishRequest:
      type: object
      properties:
        transactionId:
          type: string
          minLength: 1
        protocol:
          type: string
          minLength: 1
          maxLength: 64
        response:
          type: string
          minLength: 1
          maxLength: 262144
      required:
        - transactionId
        - protocol
        - response
    WalletFinishResponse:
      type: object
      properties:
        walletId:
          type: string
        docType:
          type: string
        jurisdiction:
          type: string
        protocol:
          type: string
        claims:
          type: object
        missing:
          type: array
          items:
            $ref: '#/components/schemas/WalletMissingClaim'
        origin:
          type: string
        encrypted:
          type: boolean
        verifiedAt:
          type: integer
          format: int32
    WalletMissingClaim:
      type: object
      properties:
        path:
          type: array
          items:
            type: string
    WalletPresentationRequest:
      type: object
      properties:
        protocol:
          type: string
        data:
          type: object
    WalletRequestedClaim:
      type: object
      properties:
        path:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          minItems: 1
          maxItems: 8
        intentToRetain:
          type: boolean
      required:
        - path
    WalletSignInStartRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        origin:
          type: string
        protocols:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 64
          maxItems: 4
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
      required:
        - loginId
    WalletStartResponse:
      type: object
      properties:
        transactionId:
          type: string
        requests:
          type: array
          items:
            $ref: '#/components/schemas/WalletPresentationRequest'
    WalletUpdateStartRequest:
      type: object
      properties:
        origin:
          type: string
        protocols:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 64
          maxItems: 4
        claims:
          type: array
          items:
            $ref: '#/components/schemas/WalletRequestedClaim'
          maxItems: 16
    WalletVerifyStartRequest:
      type: object
      properties:
        origin:
          type: string
        protocols:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 64
          maxItems: 4
        claims:
          type: array
          items:
            $ref: '#/components/schemas/WalletRequestedClaim'
          maxItems: 16
    WebauthnAddDeviceFinishRequest:
      type: object
      properties:
        transactionId:
          type: string
          minLength: 1
        response:
          type: string
          minLength: 1
          maxLength: 16384
      required:
        - transactionId
        - response
    WebauthnAddDeviceFinishResponse:
      type: object
      properties:
        jwt:
          allOf:
            - $ref: '#/components/schemas/JWTResponse'
          description: >-
            Populated only when the matching update/start set mfa and a valid
            refresh token was provided:
             carries a session token whose amr merges the prior factors with the new passkey.
             Empty for the default enrollment flow (backward compatible).
    WebauthnAddDeviceStartRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        origin:
          type: string
        passkeyOptions:
          $ref: '#/components/schemas/PasskeyOptions'
        mfa:
          type: boolean
          description: >-
            When mfa is true together with a valid refresh token, finishing the
            enrollment returns a session
             token whose amr merges the previously-passed auth factors with the newly-enrolled passkey, in a
             single ceremony. Otherwise enrollment only registers the credential.
        displayName:
          type: string
          description: >-
            Optional label for the new passkey (WebAuthn user.displayName),
            shown by the browser prompt and
             kept by the OS keychain. When empty it is derived from the user's profile, as before.
          maxLength: 254
      required:
        - loginId
    WebauthnSignInFinishRequest:
      type: object
      properties:
        transactionId:
          type: string
          minLength: 1
        response:
          type: string
          minLength: 1
          maxLength: 16384
      required:
        - transactionId
        - response
    WebauthnSignInStartRequest:
      type: object
      properties:
        loginId:
          type: string
        origin:
          type: string
        passkeyOptions:
          $ref: '#/components/schemas/PasskeyOptions'
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
    WebauthnSignUpFinishRequest:
      type: object
      properties:
        transactionId:
          type: string
          minLength: 1
        response:
          type: string
          minLength: 1
          maxLength: 16384
      required:
        - transactionId
        - response
    WebauthnSignUpOrInStartRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        origin:
          type: string
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        ssoAppId:
          type: string
        passkeyOptions:
          $ref: '#/components/schemas/PasskeyOptions'
        displayName:
          type: string
          description: >-
            Optional label for the passkey (WebAuthn user.displayName), used
            only when this resolves to a sign up.
             Ignored on the sign-in branch, where no credential is created.
          maxLength: 254
      required:
        - loginId
    WebauthnSignUpStartRequest:
      type: object
      properties:
        loginId:
          type: string
        user:
          $ref: '#/components/schemas/SignUpUser'
        origin:
          type: string
        passkeyOptions:
          $ref: '#/components/schemas/PasskeyOptions'
        loginOptions:
          $ref: '#/components/schemas/SignupLoginOptions'
        displayName:
          type: string
          description: >-
            Optional label for the new passkey (WebAuthn user.displayName),
            shown by the browser prompt and kept
             by the OS keychain. It does not change the user's profile name. When empty the label is derived from
             the signed-up user's name, email or phone, as before.
          maxLength: 254
    WebauthnStartResponse:
      type: object
      properties:
        transactionId:
          type: string
        options:
          type: string
        create:
          type: boolean
    WhatsappChange:
      type: object
      properties:
        value:
          $ref: '#/components/schemas/WhatsappValue'
        field:
          type: string
    WhatsappContact:
      type: object
      properties:
        profile:
          $ref: '#/components/schemas/WhatsappProfile'
        wa_id:
          type: string
    WhatsappConversation:
      type: object
      properties:
        id:
          type: string
        expirationTimestamp:
          type: string
        origin:
          $ref: '#/components/schemas/WhatsappOrigin'
    WhatsappEntry:
      type: object
      properties:
        id:
          type: string
        changes:
          type: array
          items:
            $ref: '#/components/schemas/WhatsappChange'
    WhatsappMessage:
      type: object
      properties:
        from:
          type: string
        id:
          type: string
        timestamp:
          type: string
        text:
          $ref: '#/components/schemas/WhatsappText'
        type:
          type: string
    WhatsappMetadata:
      type: object
      properties:
        display_phone_number:
          type: string
        phone_number_id:
          type: string
    WhatsappOrigin:
      type: object
      properties:
        type:
          type: string
    WhatsappPricing:
      type: object
      properties:
        billable:
          type: boolean
        pricingModel:
          type: string
        category:
          type: string
    WhatsappProfile:
      type: object
      properties:
        name:
          type: string
    WhatsappStatus:
      type: object
      properties:
        id:
          type: string
        status:
          type: string
        timestamp:
          type: string
        recipientId:
          type: string
        conversation:
          $ref: '#/components/schemas/WhatsappConversation'
        pricing:
          $ref: '#/components/schemas/WhatsappPricing'
    WhatsappText:
      type: object
      properties:
        body:
          type: string
    WhatsappValue:
      type: object
      properties:
        messaging_product:
          type: string
        metadata:
          $ref: '#/components/schemas/WhatsappMetadata'
        contacts:
          type: array
          items:
            $ref: '#/components/schemas/WhatsappContact'
        messages:
          type: array
          items:
            $ref: '#/components/schemas/WhatsappMessage'
        statuses:
          type: array
          items:
            $ref: '#/components/schemas/WhatsappStatus'
    WhatsappWebhookNotifyRequest:
      type: object
      properties:
        object:
          type: string
        entry:
          type: array
          items:
            $ref: '#/components/schemas/WhatsappEntry'
        signatureData:
          $ref: '#/components/schemas/WhatsappWebhookSignatureData'
    WhatsappWebhookSignatureData:
      type: object
      properties:
        xHubSignature256:
          type: string
        payload:
          type: string
          format: bytes
    OAuthAppConnectResponse:
      type: object
      properties:
        url:
          type: string
    OAuthAppOptions:
      type: object
      properties:
        redirectUrl:
          type: string
        scopes:
          type: array
          items:
            type: string
        prompt:
          type: array
          items:
            type: string
            minLength: 1
        useNonce:
          type: boolean
        loginHint:
          type: string
          maxLength: 10000
        resources:
          type: array
          items:
            type: string
            minLength: 1
        externalIdentifier:
          type: string
          maxLength: 254
      description: OAuth App Requests & Responses
    ResponseUser:
      type: object
      properties:
        loginIds:
          type: array
          items:
            type: string
        userId:
          type: string
        name:
          type: string
        email:
          type: string
        phone:
          type: string
        verifiedEmail:
          type: boolean
        verifiedPhone:
          type: boolean
        roleNames:
          type: array
          items:
            type: string
        userTenants:
          type: array
          items:
            $ref: '#/components/schemas/UserTenants'
        status:
          type: string
        externalIds:
          type: array
          items:
            type: string
        picture:
          type: string
        test:
          type: boolean
          default: false
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        createdTime:
          type: integer
          format: int32
        TOTP:
          type: boolean
          default: false
        SAML:
          type: boolean
          default: false
        OAuth:
          type: object
          additionalProperties:
            type: boolean
            default: false
        webauthn:
          type: boolean
        password:
          type: boolean
        ssoAppIds:
          type: array
          items:
            type: string
        givenName:
          type: string
        middleName:
          type: string
        familyName:
          type: string
        editable:
          type: boolean
        SCIM:
          type: boolean
        push:
          type: boolean
        permissions:
          type: array
          items:
            type: string
        OIDC:
          type: boolean
        consentExpiration:
          type: integer
          format: int32
        recoveryEmail:
          type: string
        verifiedRecoveryEmail:
          type: boolean
        recoveryPhone:
          type: string
        verifiedRecoveryPhone:
          type: boolean
        modifiedTime:
          type: integer
          format: int32
        roleIds:
          type: array
          items:
            type: string
          description: >-
            roleIds holds the IDs of this entry's roles. Order is NOT guaranteed
            to match
             roleNames — do not pair them by index. Use roleIds or roleNames independently.
        recoveryCodes:
          type: boolean
          description: whether the user has set up recovery codes
        dependent:
          type: boolean
        userFamilies:
          type: array
          items:
            $ref: '#/components/schemas/UserFamilies'
        lockReason:
          type: string
        tempLockExpiration:
          type: integer
          format: int32
        scimTenantId:
          type: string
          description: >-
            scimTenantId is the tenant whose SCIM connection provisioned the
            user, empty when none or ambiguous.
        samlTenantId:
          type: string
          description: >-
            samlTenantId is the tenant whose SAML SSO created the user or merged
            the user's login into it, empty when none or ambiguous.
        oidcTenantId:
          type: string
          description: >-
            oidcTenantId is the tenant whose OIDC SSO created the user or merged
            the user's login into it, empty when none or ambiguous.
        consentTenantId:
          type: string
        lastLoginTime:
          type: integer
          description: >-
            lastLoginTime is the epoch time (in seconds) of the last time this
            user authenticated, 0 when the user has never logged in.
             On a response that completes a sign-in - a flow, an OTP or password verification, an SSO exchange - this is the sign-in BEFORE
             the current one, and it is 0 for a user signing in for the first time: the sign-in in progress is recorded after the response is
             produced. Read the user again through Load User or My Details to get the sign-in that just completed.
          format: int32
    UserFamilies:
      type: object
      properties:
        familyId:
          type: string
        roleNames:
          type: array
          items:
            type: string
        permissions:
          type: array
          items:
            type: string
        familyScopedAttributes:
          type: object
    UserTenants:
      type: object
      properties:
        tenantId:
          type: string
        roleNames:
          type: array
          items:
            type: string
        tenantName:
          type: string
        permissions:
          type: array
          items:
            type: string
        roleIds:
          type: array
          items:
            type: string
          description: >-
            roleIds holds the IDs of this entry's roles. Order is NOT guaranteed
            to match
             roleNames — do not pair them by index. Use roleIds or roleNames independently.
    EmailSignUpUserObject:
      type: object
      properties:
        username:
          type: string
          description: Username Username
        name:
          type: string
          description: Name Name
        phone:
          type: string
          description: Phone Phone
        icon:
          type: string
    PhoneSignUpUserObject:
      type: object
      properties:
        username:
          type: string
          description: Username Username
        name:
          type: string
          description: Name Name
        email:
          type: string
          description: Email Email
        icon:
          type: string
    FedCMBranding:
      type: object
      properties:
        background_color:
          type: string
        color:
          type: string
        icons:
          type: array
          items:
            $ref: '#/components/schemas/FedCMIcon'
    FedCMClientMetadataResponse:
      type: object
      properties:
        privacy_policy_url:
          type: string
        terms_of_service_url:
          type: string
    FedCMConfigResponse:
      type: object
      properties:
        accounts_endpoint:
          type: string
        client_metadata_endpoint:
          type: string
        id_assertion_endpoint:
          type: string
        disconnect_endpoint:
          type: string
        login_url:
          type: string
        branding:
          $ref: '#/components/schemas/FedCMBranding'
      description: >-
        According to
        https://developers.google.com/privacy-sandbox/3pcd/fedcm-developer-guide#idp-config-file
    FedCMIcon:
      type: object
      properties:
        url:
          type: string
        size:
          type: integer
          format: int32
    WellKnownAuthZenConfigurationResponse:
      type: object
      properties:
        policy_decision_point:
          type: string
        access_evaluation_endpoint:
          type: string
        access_evaluations_endpoint:
          type: string
        search_subject_endpoint:
          type: string
        search_resource_endpoint:
          type: string
        search_action_endpoint:
          type: string
      description: >-
        OpenID AuthZEN (Authorization API 1.0 §9) Policy Decision Point
        metadata.
         Only the endpoints Descope currently supports are advertised; absent endpoints
         signal to a PEP that the corresponding API is unsupported (spec §9.1.1).
    WellKnownProjectConfigurationResponse:
      type: object
      properties:
        allowAuthHostingIframeEmbedding:
          type: boolean
    sessionv1.JWKSResponse:
      type: object
      properties:
        alg:
          type: string
        e:
          type: string
        kid:
          type: string
        kty:
          type: string
        'n':
          type: string
        use:
          type: string
    sessionv1.JWKSResponseV2:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/sessionv1.JWKSResponse'
    sessionv1.MtlsEndpointAliases:
      type: object
      properties:
        token_endpoint:
          type: string
        revocation_endpoint:
          type: string
    sessionv1.WellKnownConfigurationResponse:
      type: object
      properties:
        issuer:
          type: string
        jwks_uri:
          type: string
        authorization_endpoint:
          type: string
        response_types_supported:
          type: array
          items:
            type: string
        subject_types_supported:
          type: array
          items:
            type: string
        id_token_signing_alg_values_supported:
          type: array
          items:
            type: string
        token_endpoint:
          type: string
        userinfo_endpoint:
          type: string
        scopes_supported:
          type: array
          items:
            type: string
        claims_supported:
          type: array
          items:
            type: string
        end_session_endpoint:
          type: string
        revocation_endpoint:
          type: string
        token_endpoint_auth_methods_supported:
          type: array
          items:
            type: string
        registration_endpoint:
          type: string
        code_challenge_methods_supported:
          type: array
          items:
            type: string
        backchannel_logout_supported:
          type: boolean
        device_authorization_endpoint:
          type: string
        client_id_metadata_document_supported:
          type: boolean
        backchannel_token_delivery_modes_supported:
          type: array
          items:
            type: string
        backchannel_authentication_endpoint:
          type: string
        dpop_signing_alg_values_supported:
          type: array
          items:
            type: string
        request_parameter_supported:
          type: boolean
        request_object_signing_alg_values_supported:
          type: array
          items:
            type: string
        request_uri_parameter_supported:
          type: boolean
        grant_types_supported:
          type: array
          items:
            type: string
        id_token_encryption_alg_values_supported:
          type: array
          items:
            type: string
        id_token_encryption_enc_values_supported:
          type: array
          items:
            type: string
        pushed_authorization_request_endpoint:
          type: string
        require_pushed_authorization_requests:
          type: boolean
        authorization_response_iss_parameter_supported:
          type: boolean
        introspection_endpoint:
          type: string
        introspection_endpoint_auth_methods_supported:
          type: array
          items:
            type: string
        tls_client_certificate_bound_access_tokens:
          type: boolean
        mtls_endpoint_aliases:
          $ref: '#/components/schemas/sessionv1.MtlsEndpointAliases'
        authorization_grant_profiles_supported:
          type: array
          items:
            type: string
        token_endpoint_auth_signing_alg_values_supported:
          type: array
          items:
            type: string
        protected_resources:
          type: array
          items:
            type: string
    Analytic:
      type: object
      properties:
        projectId:
          type: string
        action:
          type: string
        created:
          type: string
          format: int64
        device:
          type: string
        method:
          type: string
        geo:
          type: string
        tenant:
          type: string
        cnt:
          type: string
          format: int64
        referrer:
          type: string
    Audit:
      type: object
      properties:
        ID:
          type: string
        projectId:
          type: string
        userId:
          type: string
        action:
          type: string
        occurred:
          type: string
          format: int64
        device:
          type: string
        method:
          type: string
        geo:
          type: string
        remoteAddress:
          type: string
        externalIds:
          type: array
          items:
            type: string
        tenants:
          type: array
          items:
            type: string
        data:
          type: object
        type:
          type: string
        actorId:
          type: string
    SearchAnalyticsRequest:
      type: object
      properties:
        from:
          type: string
          format: int64
        to:
          type: string
          format: int64
        actions:
          type: array
          items:
            type: string
        devices:
          type: array
          items:
            type: string
        methods:
          type: array
          items:
            type: string
        geos:
          type: array
          items:
            type: string
        tenants:
          type: array
          items:
            type: string
        groupByAction:
          type: boolean
        groupByDevice:
          type: boolean
        groupByMethod:
          type: boolean
        groupByGeo:
          type: boolean
        groupByTenant:
          type: boolean
        groupByCreated:
          type: string
        excludedActions:
          type: array
          items:
            type: string
        groupByReferrer:
          type: boolean
    SearchAnalyticsResponse:
      type: object
      properties:
        analytics:
          type: array
          items:
            $ref: '#/components/schemas/Analytic'
    SearchAuditRequest:
      type: object
      properties:
        from:
          type: string
          format: int64
        to:
          type: string
          format: int64
        userIds:
          type: array
          items:
            type: string
        actions:
          type: array
          items:
            type: string
        devices:
          type: array
          items:
            type: string
        methods:
          type: array
          items:
            type: string
        geos:
          type: array
          items:
            type: string
        remoteAddresses:
          type: array
          items:
            type: string
        externalIds:
          type: array
          items:
            type: string
        tenants:
          type: array
          items:
            type: string
        noTenants:
          type: boolean
        text:
          type: string
        excludedActions:
          type: array
          items:
            type: string
        actorIds:
          type: array
          items:
            type: string
        size:
          type: integer
          format: int32
        page:
          type: integer
          format: int32
        searchFields:
          type: array
          items:
            $ref: '#/components/schemas/SearchField'
        oldestFirst:
          type: boolean
        loginIdsContain:
          type: array
          items:
            type: string
        loginIdsNotContain:
          type: array
          items:
            type: string
        excludedExternalIds:
          type: array
          items:
            type: string
        auditTypes:
          type: array
          items:
            type: string
        levels:
          type: array
          items:
            type: string
    SearchAuditResponse:
      type: object
      properties:
        audits:
          type: array
          items:
            $ref: '#/components/schemas/Audit'
        total:
          type: integer
          format: int32
    AuthZenAction:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
      required:
        - name
    AuthZenActionSearchRequest:
      type: object
      properties:
        subject:
          $ref: '#/components/schemas/AuthZenSubject'
        resource:
          $ref: '#/components/schemas/AuthZenResource'
        context:
          type: object
      required:
        - subject
        - resource
    AuthZenActionSearchResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/AuthZenAction'
    AuthZenEvaluationItem:
      type: object
      properties:
        subject:
          $ref: '#/components/schemas/AuthZenSubject'
        resource:
          $ref: '#/components/schemas/AuthZenResource'
        action:
          $ref: '#/components/schemas/AuthZenAction'
        context:
          type: object
      description: >-
        A single evaluation entry in a batch request (spec §7.1). Any omitted
        subject/resource/action/context
         inherits the corresponding top-level default from AuthZenEvaluationsRequest.
    AuthZenEvaluationRequest:
      type: object
      properties:
        subject:
          $ref: '#/components/schemas/AuthZenSubject'
        resource:
          $ref: '#/components/schemas/AuthZenResource'
        action:
          $ref: '#/components/schemas/AuthZenAction'
        context:
          type: object
          description: Optional flat key-value context map for evaluating ABAC conditions
      required:
        - subject
        - resource
        - action
    AuthZenEvaluationResponse:
      type: object
      properties:
        decision:
          type: boolean
        context:
          type: object
          description: >-
            Optional context; carries an informational "reason" when the
            decision is denied
    AuthZenEvaluationsOptions:
      type: object
      properties:
        evaluations_semantic:
          type: string
          description: >-
            One of: "execute_all" (default), "deny_on_first_deny",
            "permit_on_first_permit".
          maxLength: 100
      description: >-
        Options controlling how a batch of evaluations is executed (spec
        §7.1.2).
    AuthZenEvaluationsRequest:
      type: object
      properties:
        subject:
          allOf:
            - $ref: '#/components/schemas/AuthZenSubject'
          description: >-
            Top-level default subject/resource/action/context applied to each
            evaluation when omitted there.
        resource:
          $ref: '#/components/schemas/AuthZenResource'
        action:
          $ref: '#/components/schemas/AuthZenAction'
        context:
          type: object
        evaluations:
          type: array
          items:
            $ref: '#/components/schemas/AuthZenEvaluationItem'
        options:
          $ref: '#/components/schemas/AuthZenEvaluationsOptions'
    AuthZenEvaluationsResponse:
      type: object
      properties:
        evaluations:
          type: array
          items:
            $ref: '#/components/schemas/AuthZenEvaluationResponse'
          description: >-
            For "execute_all", one decision per request evaluation in order. For
            the ordered semantics
             ("deny_on_first_deny"/"permit_on_first_permit"), a single combined decision.
    AuthZenResource:
      type: object
      properties:
        type:
          type: string
          minLength: 1
          maxLength: 100
        id:
          type: string
          description: >-
            optional: the searched entity in Resource Search omits its id (spec
            §8), so id is not required.
          maxLength: 1000
      required:
        - type
    AuthZenResourceSearchRequest:
      type: object
      properties:
        subject:
          $ref: '#/components/schemas/AuthZenSubject'
        action:
          $ref: '#/components/schemas/AuthZenAction'
        resource:
          allOf:
            - $ref: '#/components/schemas/AuthZenResource'
          description: >-
            Required (spec §8.5.1): MUST carry a type (selects the namespace,
            echoed onto each result); the id is omitted/ignored.
        context:
          type: object
      required:
        - subject
        - action
        - resource
    AuthZenResourceSearchResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/AuthZenResource'
    AuthZenSubject:
      type: object
      properties:
        type:
          type: string
          minLength: 1
          maxLength: 100
        id:
          type: string
          description: >-
            optional: the searched entity in Subject Search omits its id (spec
            §8), so id is not required.
          maxLength: 1000
      required:
        - type
    AuthZenSubjectSearchRequest:
      type: object
      properties:
        subject:
          allOf:
            - $ref: '#/components/schemas/AuthZenSubject'
          description: >-
            Required (spec §8.4.1): MUST carry a type (echoed onto each result);
            the id is omitted/ignored.
        action:
          $ref: '#/components/schemas/AuthZenAction'
        resource:
          $ref: '#/components/schemas/AuthZenResource'
        context:
          type: object
      required:
        - subject
        - action
        - resource
    AuthZenSubjectSearchResponse:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/AuthZenSubject'
    Backup:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        status:
          type: string
        schemaVersion:
          type: integer
          format: int32
        tupleCount:
          type: integer
          format: int32
        createdAt:
          type: integer
          format: int32
        completedAt:
          type: integer
          format: int32
        errorMessage:
          type: string
    CheckPath:
      type: object
      properties:
        steps:
          type: array
          items:
            $ref: '#/components/schemas/CheckPathStep'
    CheckPathStep:
      type: object
      properties:
        stepType:
          enum:
            - UNKNOWN
            - RELATION
            - INTERSECTION
          type: string
          format: enum
        tuple:
          $ref: '#/components/schemas/Tuple'
        permission:
          type: string
        subPaths:
          type: array
          items:
            $ref: '#/components/schemas/CheckPath'
    CheckRequest:
      type: object
      properties:
        tuples:
          type: array
          items:
            $ref: '#/components/schemas/Tuple'
          description: 'Deprecated: prefer checkTuples; kept for backwards compatibility.'
        computePaths:
          type: boolean
        context:
          type: object
          description: >-
            Optional flat key-value context map for evaluating ABAC conditions;
            applies to all tuples unless a
             checkTuples entry carries its own context.
        checkTuples:
          type: array
          items:
            $ref: '#/components/schemas/CheckTuple'
          description: >-
            Optional per-tuple-context variant. Set either tuples or checkTuples
            (not both); each checkTuple's
             context overrides the request-level context above.
        listConditions:
          type: boolean
          description: >-
            When true, include per-tuple evaluated conditions and their results
            in the response
    CheckResponse:
      type: object
      properties:
        tuples:
          type: array
          items:
            $ref: '#/components/schemas/CheckResponseTuple'
        schemaVersion:
          type: string
    CheckResponseError:
      type: object
      properties:
        status:
          type: integer
          format: int32
        message:
          type: string
    CheckResponseInfo:
      type: object
      properties:
        direct:
          type: boolean
          description: >-
            A relation is considered "direct" if, based solely on the schema,
            its "allowed" state can only be
             changed by creating or deleting relations involving its resource, its target, or both (including itself)
        path:
          allOf:
            - $ref: '#/components/schemas/CheckPath'
          description: >-
            if the check succeeded, includes the full path of intermediate
            relations between the target and the resource
        conditional:
          type: boolean
          description: true if the result was determined by evaluating a CEL condition
        missingContext:
          type: array
          items:
            type: string
          description: >-
            when the condition could not be fully evaluated, lists the missing
            context variable names
        conditionalErr:
          type: string
          description: >-
            when CEL condition evaluation failed (e.g. invalid context value
            type), contains the error message;
             the check still returns 200 with allowed=false
        error:
          allOf:
            - $ref: '#/components/schemas/CheckResponseError'
          description: >-
            per-tuple error when the tuple is invalid; currently surfaced via
            AuthZEN's context.error (spec §7.2.1)
        factUsed:
          type: boolean
          description: true if a fact participated
        trueConditions:
          type: array
          items:
            type: integer
            format: int32
          description: Condition.id lists of conditions that evaluated true/false
        falseConditions:
          type: array
          items:
            type: integer
            format: int32
    CheckResponseTuple:
      type: object
      properties:
        allowed:
          type: boolean
        tuple:
          $ref: '#/components/schemas/Tuple'
        info:
          $ref: '#/components/schemas/CheckResponseInfo'
    CheckTuple:
      type: object
      properties:
        tuple:
          $ref: '#/components/schemas/Tuple'
        context:
          type: object
      description: >-
        A tuple paired with an optional per-tuple ABAC context, for Check
        requests that need a distinct
         context per tuple. When context is unset, the request-level CheckRequest.context applies.
      required:
        - tuple
    Condition:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        params:
          type: array
          items:
            $ref: '#/components/schemas/ConditionParam'
        expression:
          type: string
          maxLength: 10000
        builtin:
          type: boolean
          description: >-
            true for conditions auto-expanded from built-in constraint
            declarations
        checkedExpr:
          type: string
          description: Serialized CEL format (exprpb.CheckedExpr)
          format: bytes
        id:
          type: integer
          description: Short ID; renumbered on schema change
          format: int32
      required:
        - name
    ConditionParam:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        type:
          type: string
          minLength: 1
          maxLength: 50
      required:
        - name
        - type
    CreateBackupRequest:
      type: object
      properties: {}
    CreateBackupResponse:
      type: object
      properties:
        backupId:
          type: string
    CreateRelationsRequest:
      type: object
      properties:
        relations:
          type: array
          items:
            $ref: '#/components/schemas/Relation'
    CreateRelationsResponse:
      type: object
      properties: {}
    CreateTuplesRequest:
      type: object
      properties:
        tuples:
          type: array
          items:
            $ref: '#/components/schemas/Tuple'
    CreateTuplesResponse:
      type: object
      properties: {}
    DeleteAllTuplesResponse:
      type: object
      properties: {}
    DeleteBackupResponse:
      type: object
      properties: {}
    DeleteNamespaceRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        schemaName:
          type: string
          description: optional upgrade to the schema name
          maxLength: 100
      required:
        - name
    DeleteNamespaceResponse:
      type: object
      properties: {}
    DeleteRelationDefinitionRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        namespace:
          type: string
          minLength: 1
          maxLength: 100
        schemaName:
          type: string
          description: optional upgrade to the schema name
          maxLength: 100
      required:
        - name
        - namespace
    DeleteRelationDefinitionResponse:
      type: object
      properties: {}
    DeleteRelationsForResourcesRequest:
      type: object
      properties:
        resources:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
    DeleteRelationsForResourcesResponse:
      type: object
      properties: {}
    DeleteRelationsRequest:
      type: object
      properties:
        relations:
          type: array
          items:
            $ref: '#/components/schemas/Relation'
    DeleteRelationsResponse:
      type: object
      properties: {}
    DeleteResourceRelationsForResourcesRequest:
      type: object
      properties:
        resources:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
    DeleteResourceRelationsForResourcesResponse:
      type: object
      properties: {}
    DeleteSchemaRequest:
      type: object
      properties: {}
    DeleteSchemaResponse:
      type: object
      properties: {}
    DeleteTuplesRequest:
      type: object
      properties:
        tuples:
          type: array
          items:
            $ref: '#/components/schemas/Tuple'
    DeleteTuplesResponse:
      type: object
      properties: {}
    GetBackupResponse:
      type: object
      properties:
        backup:
          $ref: '#/components/schemas/Backup'
    GetMappableSchemaResponse:
      type: object
      properties:
        schema:
          $ref: '#/components/schemas/Schema'
        mappableResources:
          type: array
          items:
            $ref: '#/components/schemas/MappableResources'
    GetModifiedRequest:
      type: object
      properties:
        since:
          type: string
          description: >-
            Changed since given milli epoch UTC time - optional, default to max
            changelog (change events) TTL
          format: int64
    GetModifiedResponse:
      type: object
      properties:
        targets:
          type: array
          items:
            type: string
        resources:
          type: array
          items:
            type: string
        schemaChanged:
          type: boolean
    HasRelationsRequest:
      type: object
      properties:
        relationQueries:
          type: array
          items:
            $ref: '#/components/schemas/RelationQuery'
    HasRelationsResponse:
      type: object
      properties:
        relationQueries:
          type: array
          items:
            $ref: '#/components/schemas/RelationQuery'
        directRelations:
          type: array
          items:
            type: boolean
    ListBackupsResponse:
      type: object
      properties:
        backups:
          type: array
          items:
            $ref: '#/components/schemas/Backup'
    LoadDSLSchemaResponse:
      type: object
      properties:
        dsl:
          type: string
        schema:
          $ref: '#/components/schemas/Schema'
        version:
          type: string
    LoadResourcesDetailsRequest:
      type: object
      properties:
        resourceIdentifiers:
          type: array
          items:
            $ref: '#/components/schemas/ResourceIdentifier'
          minItems: 1
          maxItems: 2000
      description: Request message for loading details for resources
      required:
        - resourceIdentifiers
    LoadResourcesDetailsResponse:
      type: object
      properties:
        resourcesDetails:
          type: array
          items:
            $ref: '#/components/schemas/ResourceDetails'
      description: Response message for loading details for resources
    LoadSchemaRequest:
      type: object
      properties: {}
    LoadSchemaResponse:
      type: object
      properties:
        schema:
          $ref: '#/components/schemas/Schema'
    MappableResource:
      type: object
      properties:
        resource:
          type: string
        displayName:
          type: string
    MappableResourceQuery:
      type: object
      properties:
        type:
          type: string
        queries:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
    MappableResources:
      type: object
      properties:
        type:
          type: string
        resources:
          type: array
          items:
            $ref: '#/components/schemas/MappableResource'
    Namespace:
      type: object
      properties:
        name:
          type: string
          description: Name of the namespace (entity type)
          minLength: 1
          maxLength: 100
        relationDefinitions:
          type: array
          items:
            $ref: '#/components/schemas/RelationDefinition'
          description: The relation definitions belonging to the namespace
      required:
        - name
    Node:
      type: object
      properties:
        nType:
          type: string
          description: Node type can be either child, union, intersect or sub
          minLength: 1
          maxLength: 30
        children:
          type: array
          items:
            $ref: '#/components/schemas/Node'
          description: For union, intersect or sub, the children nodes
        expression:
          allOf:
            - $ref: '#/components/schemas/NodeExpression'
          description: The expression for child nodes
      required:
        - nType
    NodeExpression:
      type: object
      properties:
        neType:
          type: string
          description: >-
            Expression type can be either self, userSet, relationLeft,
            relationRight
          minLength: 1
          maxLength: 30
        relationDefinition:
          type: string
          description: The name of the relation definition for self and relationLeft/Right
          maxLength: 100
        relationDefinitionNamespace:
          type: string
          description: The namespace of the relation definition
          maxLength: 100
        targetRelationDefinition:
          type: string
          description: >-
            The name of the relation definition for targetSet as well as type of
            relation for target relationLeft/Right
          maxLength: 100
        targetRelationDefinitionNamespace:
          type: string
          description: The namespace of the target relation definition
          maxLength: 100
      required:
        - neType
    Relation:
      type: object
      properties:
        resource:
          type: string
          description: Relation is defined on the resource
          minLength: 1
          maxLength: 1000
        relationDefinition:
          type: string
          description: The name of the relation definition
          minLength: 1
          maxLength: 100
        namespace:
          type: string
          description: The namespace of the relation definition
          minLength: 1
          maxLength: 100
        target:
          type: string
          description: The target for given the relation
          maxLength: 1000
        targetNamespace:
          type: string
          description: The target namespace for the relation
          maxLength: 100
        targetSetResource:
          type: string
          description: The targetSet target resource for the relation
          maxLength: 1000
        targetSetRelationDefinition:
          type: string
          description: The targetSet target relation definition for the relation
          maxLength: 100
        targetSetRelationDefinitionNamespace:
          type: string
          description: The targetSet target relation definition namespace for the relation
          maxLength: 100
        query:
          allOf:
            - $ref: '#/components/schemas/UserQuery'
          description: User query for a list of users target
      description: >-
        Relation is specified between resource and target where target can be
        direct target (user or related resource), targetSet (anyone who has
        another relation), and list of users matching query
      required:
        - resource
        - relationDefinition
        - namespace
    RelationDefinition:
      type: object
      properties:
        name:
          type: string
          description: Name of the relation definition
          minLength: 1
          maxLength: 100
        complexDefinition:
          allOf:
            - $ref: '#/components/schemas/Node'
          description: >-
            Optional complex definition for complex (union, intersect, sub)
            relation definitions
        conditionExpr:
          type: string
          description: >-
            DEPRECATED — DO NOT USE. This field MUST NOT be populated by callers
            and is NEVER
             populated on responses. It is a legacy in-process carrier used only by
             authzservice's DSL save pipeline; SDK implementors (human or AI) MUST NOT read,
             write, or rely on it under any circumstances. Author and read condition
             expressions exclusively through the DSL-based RPCs (SaveDSLSchema / LoadDSLSchema)
             using the `with` clause. This field will be removed in a future release.
             JSON shape, documented only for historical context: {"name":"DuringShift"} or
             {"op":"and","children":[...]}.
          maxLength: 10000
      required:
        - name
    RelationQuery:
      type: object
      properties:
        resource:
          type: string
          minLength: 1
          maxLength: 1000
        relationDefinition:
          type: string
          minLength: 1
          maxLength: 100
        namespace:
          type: string
          minLength: 1
          maxLength: 100
        target:
          type: string
          minLength: 1
          maxLength: 1000
        hasRelation:
          type: boolean
      description: Query if the given resource has the given relation to the given user
      required:
        - resource
        - relationDefinition
        - namespace
        - target
    ResourceDetails:
      type: object
      properties:
        resourceId:
          type: string
          minLength: 1
          maxLength: 1000
        resourceType:
          type: string
          minLength: 1
          maxLength: 100
        displayName:
          type: string
          minLength: 1
          maxLength: 1000
      required:
        - resourceId
        - resourceType
        - displayName
    ResourceIdentifier:
      type: object
      properties:
        resourceId:
          type: string
          minLength: 1
          maxLength: 1000
        resourceType:
          type: string
          minLength: 1
          maxLength: 100
      required:
        - resourceId
        - resourceType
    ResourceRelationsRequest:
      type: object
      properties:
        resource:
          type: string
          minLength: 1
          maxLength: 1000
        ignoreTargetSetRelations:
          type: boolean
      required:
        - resource
    ResourceRelationsResponse:
      type: object
      properties:
        relations:
          type: array
          items:
            $ref: '#/components/schemas/Relation'
    RestoreBackupRequest:
      type: object
      properties:
        backupId:
          type: string
    RestoreBackupResponse:
      type: object
      properties:
        autoBackupId:
          type: string
    SaveDSLSchemaRequest:
      type: object
      properties:
        dsl:
          type: string
          minLength: 1
          maxLength: 100000
      description: New API
      required:
        - dsl
    SaveDSLSchemaResponse:
      type: object
      properties: {}
    SaveNamespaceRequest:
      type: object
      properties:
        namespace:
          $ref: '#/components/schemas/Namespace'
        oldName:
          type: string
          description: Old name if we are renaming the namespace
          maxLength: 100
        schemaName:
          type: string
          description: optional upgrade to the schema name
          maxLength: 100
    SaveNamespaceResponse:
      type: object
      properties: {}
    SaveRelationDefinitionRequest:
      type: object
      properties:
        relationDefinition:
          $ref: '#/components/schemas/RelationDefinition'
        namespace:
          type: string
          minLength: 1
          maxLength: 100
        oldName:
          type: string
          description: Old name if we are renaming the relation definition
          maxLength: 100
        schemaName:
          type: string
          description: optional upgrade to the schema name
          maxLength: 100
      required:
        - namespace
    SaveRelationDefinitionResponse:
      type: object
      properties: {}
    SaveResourcesDetailsRequest:
      type: object
      properties:
        resourcesDetails:
          type: array
          items:
            $ref: '#/components/schemas/ResourceDetails'
          minItems: 1
          maxItems: 2000
      description: Request message for saving details for resources
      required:
        - resourcesDetails
    SaveResourcesDetailsResponse:
      type: object
      properties: {}
      description: Response message for saving details for resources
    SaveSchemaDryDeletes:
      type: object
      properties:
        hasDeletes:
          type: boolean
        relations:
          type: array
          items:
            type: string
        types:
          type: array
          items:
            type: string
        deletedTupleCount:
          type: integer
          description: >-
            Number of relation tuples that would be deleted for the dropped
            relations/types (clamped to the cap)
          format: int32
        tupleCountCapped:
          type: boolean
          description: >-
            True when the real count reached/exceeded the cap; deletedTupleCount
            then holds the cap
    SaveSchemaDryRunResponse:
      type: object
      properties:
        deletesPreview:
          $ref: '#/components/schemas/SaveSchemaDryDeletes'
    SaveSchemaRequest:
      type: object
      properties:
        schema:
          $ref: '#/components/schemas/Schema'
        upgrade:
          type: boolean
    SaveSchemaResponse:
      type: object
      properties: {}
    Schema:
      type: object
      properties:
        namespaces:
          type: array
          items:
            $ref: '#/components/schemas/Namespace'
          description: List of namespaces in the schema
        name:
          type: string
          maxLength: 100
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/Condition'
          description: Conditions defined in the schema
    SearchMappableResourcesResponse:
      type: object
      properties:
        mappableResources:
          type: array
          items:
            $ref: '#/components/schemas/MappableResources'
    TargetsRelationsRequest:
      type: object
      properties:
        targets:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        includeTargetSetRelations:
          type: boolean
    TargetsRelationsResponse:
      type: object
      properties:
        relations:
          type: array
          items:
            $ref: '#/components/schemas/Relation'
    Tuple:
      type: object
      properties:
        resource:
          type: string
          minLength: 1
          maxLength: 1000
          description: The resource identifier.
          example: document-123
        resourceType:
          type: string
          minLength: 1
          maxLength: 100
          description: The type of the resource.
          example: doc
        relation:
          type: string
          minLength: 1
          maxLength: 100
          description: The relation between the resource and the target.
          example: editor
        target:
          type: string
          minLength: 1
          maxLength: 1000
          description: The target identifier (user, group, etc.).
          example: user-456
        targetType:
          type: string
          maxLength: 100
          description: The type of the target.
          example: user
      required:
        - resource
        - resourceType
        - relation
        - target
      example:
        resource: document-123
        resourceType: doc
        relation: editor
        target: user-456
        targetType: user
    UserQuery:
      type: object
      properties:
        tenants:
          type: array
          items:
            type: string
          description: >-
            If not empty then users must be members of at least one of these
            tenants
        roles:
          type: array
          items:
            type: string
            maxLength: 254
          description: If not empty then users must have one of the specified roles
        text:
          type: string
          description: >-
            Full text search across relevant columns (displayName, email,
            tenants, status)
          maxLength: 100
        statuses:
          type: array
          items:
            type: string
            maxLength: 254
          description: If not empty then users must be in one of the given statuses
        ssoOnly:
          type: boolean
          description: Return only users that have SSO external IDs
          default: false
        withTestUser:
          type: boolean
          description: Return also users which are test users
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
    WhatCanTargetAccessRequest:
      type: object
      properties:
        target:
          type: string
          minLength: 1
          maxLength: 1000
        context:
          type: object
          description: >-
            Optional flat key-value context for evaluating ABAC conditions and
            facts. Relations gated by a
             condition are returned only when this context satisfies it (same semantics as Check).
      required:
        - target
    WhatCanTargetAccessResponse:
      type: object
      properties:
        relations:
          type: array
          items:
            $ref: '#/components/schemas/Relation'
    WhatCanTargetAccessWithRelationRequest:
      type: object
      properties:
        target:
          type: string
          minLength: 1
          maxLength: 1000
        relationDefinition:
          type: string
          minLength: 1
          maxLength: 100
        namespace:
          type: string
          minLength: 1
          maxLength: 100
        ParentTarget:
          type: string
          maxLength: 100
        ParentRelationDefinition:
          type: string
          maxLength: 100
        context:
          type: object
          description: >-
            Optional flat key-value context for evaluating ABAC conditions and
            facts. Resources reachable only
             through a condition-gated relation are returned only when this context satisfies it (same as Check).
      required:
        - target
        - relationDefinition
        - namespace
    WhatCanTargetAccessWithRelationResponse:
      type: object
      properties:
        resources:
          type: array
          items:
            type: string
    WhoCanAccessRequest:
      type: object
      properties:
        resource:
          type: string
          minLength: 1
          maxLength: 1000
        relationDefinition:
          type: string
          minLength: 1
          maxLength: 100
        namespace:
          type: string
          minLength: 1
          maxLength: 100
        targetType:
          type: string
          description: >-
            Optional: when set, only targets of this type (namespace) are
            returned. Empty returns all targets.
          maxLength: 100
        context:
          type: object
          description: >-
            Optional flat key-value context for evaluating ABAC conditions and
            facts. Targets whose relation
             is gated by a condition are returned only when this context satisfies it (same semantics as Check).
      description: Query the list of users who have the relation to the resource
      required:
        - resource
        - relationDefinition
        - namespace
    WhoCanAccessResponse:
      type: object
      properties:
        targets:
          type: array
          items:
            type: string
    ReBACGroupsMapping:
      type: object
      properties:
        relations:
          type: array
          items:
            $ref: '#/components/schemas/ReBACGroupsMappingRelation'
    ReBACGroupsMappingRelation:
      type: object
      properties:
        resource:
          type: string
          description: Resource identifier of the relation
          minLength: 1
          maxLength: 254
        relationDefinition:
          type: string
          description: The name of the relation definition
          minLength: 1
          maxLength: 254
        namespace:
          type: string
          description: The namespace of the relation definition
          minLength: 1
          maxLength: 254
      required:
        - resource
        - relationDefinition
        - namespace
    customattributesv1.CustomAttribute:
      type: object
      properties:
        name:
          type: string
          minLength: 1
        type:
          type: integer
          format: int32
        options:
          type: array
          items:
            $ref: '#/components/schemas/CustomAttributeOption'
        displayName:
          type: string
          maxLength: 254
        defaultValue:
          $ref: '#/components/schemas/google.protobuf.Any'
        viewPermissions:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        editPermissions:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        editable:
          type: boolean
          description: this is to know if this specific user can edit this specific field
      description: |-
        this object is used in project exports, make sure any changes here
         are also applied in managementservice
      required:
        - name
        - type
    CustomAttributeOption:
      type: object
      properties:
        value:
          type: string
        label:
          type: string
      description: Custom Attributes
    CustomAttributesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/customattributesv1.CustomAttribute'
        total:
          type: string
          format: int64
    DeleteCustomAttributesRequest:
      type: object
      properties:
        names:
          type: array
          items:
            type: string
            minLength: 1
    ImportCustomAttributesRequest:
      type: object
      properties:
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/customattributesv1.CustomAttribute'
    google.protobuf.Any:
      type: object
      properties:
        '@type':
          type: string
          description: The type of the serialized message.
      additionalProperties: true
      description: >-
        Contains an arbitrary serialized message along with a @type that
        describes the type of the serialized message.
    AccessKey:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        roleNames:
          type: array
          items:
            type: string
        keyTenants:
          type: array
          items:
            $ref: '#/components/schemas/AssociatedTenantAK'
        status:
          type: string
        createdTime:
          type: integer
          format: int32
        expireTime:
          type: integer
          format: int32
        createdBy:
          type: string
        clientId:
          type: string
        boundUserId:
          type: string
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        editable:
          type: boolean
        description:
          type: string
        permittedIps:
          type: array
          items:
            type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
    AccessKeyBatchRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
    AccessKeyRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
      required:
        - id
    AccessKeyResponse:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/AccessKey'
    AccessKeysResponse:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/AccessKey'
    ActivateSCIMAccessKeysRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          description: >-
            The SSO configuration the keys belong to. Omit it to target the
            tenant's default
             configuration - it does NOT mean "every configuration".
          maxLength: 254
        keyIds:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            The keys to activate, from LoadSCIMAccessKeys. Required and explicit
            on purpose: activating
             a whole configuration would silently restore a key an operator had deactivated because its
             secret leaked. Ids that are not SCIM keys of this tenant and configuration are rejected.
          minItems: 1
          maxItems: 100
      required:
        - tenantId
        - keyIds
    ActivateSCIMAccessKeysResponse:
      type: object
      properties:
        activatedKeyIds:
          type: array
          items:
            type: string
    AddIPsToListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        ips:
          type: array
          items:
            type: string
          minItems: 1
      required:
        - id
        - ips
    AddSSOApplicationSecretRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 100
        expireTime:
          type: integer
          format: int32
      required:
        - appId
        - name
    AddSSOApplicationSecretResponse:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/ClientSecretMeta'
        cleartext:
          type: string
    AddTextsToListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        texts:
          type: array
          items:
            type: string
          minItems: 1
      required:
        - id
        - texts
    AddThirdPartyApplicationSecretRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 100
        expireTime:
          type: integer
          format: int32
      required:
        - id
        - name
    AddThirdPartyApplicationSecretResponse:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/ClientSecretMeta'
        cleartext:
          type: string
    AdditionalSSOConfiguration:
      type: object
      properties:
        ssoId:
          type: string
        name:
          type: string
        authType:
          type: string
    AdminPortalSettings:
      type: object
      properties:
        enabled:
          type: boolean
        styleId:
          type: string
          maxLength: 254
        widgets:
          $ref: '#/components/schemas/google.protobuf.Value'
      description: |-
        Admin portal settings (Terraform: descope_admin_portal).
         Patch semantics: omitted fields are left untouched; present fields are written.
    AgenticGovernanceSettings:
      type: object
      properties:
        configured:
          type: boolean
          description: >-
            Whether the Agentic Governance Suite has been activated for the
            project.
        autoApproval:
          type: boolean
          description: >-
            When true, a new access request that the current policies already
            permit
             (every requested target is covered by an enabled policy) is approved and
             its agent client provisioned at creation.
        suiteDisabled:
          type: boolean
          description: |-
            When true, the suite is switched off: no new access requests can be
             created and none are auto-approved. Existing requests can still be
             searched, loaded and resolved.
      description: |-
        Agentic Governance Suite settings for the project.
         Patch semantics: an omitted field keeps its stored value. The developer
         portal logo is not managed through this API, and a write leaves it untouched.
    AgenticIdentity:
      type: object
      properties:
        consent:
          $ref: '#/components/schemas/ThirdPartyApplicationConsent'
        agentName:
          type: string
        resourceId:
          type: string
        clientId:
          type: string
        createdBy:
          type: string
    AnonymousJWTResponse:
      type: object
      properties:
        sessionJwt:
          type: string
        refreshJwt:
          type: string
        cookieDomain:
          type: string
        cookiePath:
          type: string
        cookieMaxAge:
          type: integer
          format: int32
        cookieExpiration:
          type: integer
          format: int32
    AnonymousUserRequest:
      type: object
      properties:
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        selectedTenant:
          type: string
        refreshDuration:
          type: integer
          format: int32
        roles:
          type: array
          items:
            type: string
            minLength: 1
    AppScopeClaimMappingEntry:
      type: object
      properties:
        scope:
          type: string
        claims:
          type: object
          additionalProperties:
            type: string
          description: >-
            claims is consulted only when useProjectMapping is false. When
            useProjectMapping is true,
             the project-wide mapping's entry for `scope` provides the claims and this field is ignored.
        description:
          type: string
        useProjectMapping:
          type: boolean
          description: >-
            useProjectMapping, when true, reuses the project-wide
            ScopeClaimMapping's entry for this
             scope (the app's `claims` field is ignored). Default false uses the app's own `claims`.
        mandatory:
          type: boolean
          description: >-
            mandatory, when true, means the scope is always granted and cannot
            be deselected by the
             user on the consent screen. Mirrors the inverse of the legacy ApplicationScope.optional.
        claimTargets:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ClaimTokenTargets'
          description: >-
            claimTargets narrows which tokens a claim is written to, keyed by
            the claim name.
             Consulted only when useProjectMapping is false — when it is true the project-wide
             entry supplies both the claims and their targets. Empty means every token.
      description: >-
        AppScopeClaimMappingEntry is the per-app variant of
        ScopeClaimMappingEntry. It is used by
         SSOApplicationOIDCSettings.scopeClaimMapping and by ThirdPartyApplication.scopeClaimMapping
         (inbound/OAuth apps), and carries an extra useProjectMapping flag that lets an entry inherit
         the project-wide mapping's claims for its scope without restating them. Keeping a dedicated
         message keeps the project-wide ScopeClaimMappingEntry API clean (no useProjectMapping field
         where it has no meaning).
    managementv1.ApplicationScope:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 1000
        description:
          type: string
          maxLength: 100000
        optional:
          type: boolean
        values:
          type: array
          items:
            type: string
      description: Keep this message synchronized with the matching one in ProjectService
      required:
        - name
    ApplyJwtTemplateFromLibraryRequest:
      type: object
      properties:
        libraryEntryId:
          type: string
          minLength: 1
          maxLength: 254
        nameOverride:
          type: string
          description: Optional overrides applied on top of the library entry before save.
          maxLength: 254
        descriptionOverride:
          type: string
          maxLength: 500
        tagsOverride:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        templateOverride:
          type: object
      required:
        - libraryEntryId
    AssociatedFamily:
      type: object
      properties:
        familyId:
          type: string
          minLength: 1
          maxLength: 254
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        familyScopedAttributes:
          type: object
          description: >-
            familyScopedAttributes - this family's custom attribute values for
            the user (attrName -> value).
             Nested here (not a separate top-level map keyed by familyId) so a caller never has to keep two
             parallel structures' keys in sync.
      description: >-
        AssociatedFamily is placed at the end of the file rather than next to
        AssociatedTenant (which it
         otherwise mirrors) - inserting a new message earlier in the file shifts every subsequent message's
         generated index in management.pb.go, producing a multi-thousand-line diff of pure index churn.
      required:
        - familyId
    managementv1.AssociatedTenant:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
      required:
        - tenantId
    AssociatedTenantAK:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        tenantName:
          type: string
      required:
        - tenantId
    AttributeMapping:
      type: object
      properties:
        name:
          type: string
          maxLength: 254
        email:
          type: string
          maxLength: 254
        group:
          type: string
          maxLength: 254
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
        picture:
          type: string
          maxLength: 254
        customAttributes:
          type: object
          additionalProperties:
            type: string
    AuditFilters:
      type: object
      properties:
        filterType:
          type: string
          minLength: 1
        operator:
          type: string
        values:
          type: array
          items:
            type: string
            maxLength: 254
      required:
        - filterType
    AuthAccessRule:
      type: object
      properties:
        id:
          type: string
          description: Server-generated, rejected on create and required on update.
          maxLength: 254
        name:
          type: string
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        enabled:
          type: boolean
          description: Defaults to true on create.
        effect:
          type: string
          description: Required on create. Evaluation is first-match.
        conditions:
          $ref: '#/components/schemas/google.protobuf.Value'
        createdTime:
          type: integer
          description: >-
            int32 epoch seconds: proto3 emits int64 as JSON string. See
            .claude/rules/proto-files.md.
          format: int32
        modifiedTime:
          type: integer
          format: int32
        evaluationOrder:
          type: integer
          description: >-
            1-based position in the evaluation order, set through the reorder
            and settings endpoints.
          format: int32
        expireTime:
          type: integer
          description: >-
            Epoch seconds after which the rule is no longer evaluated. 0 means
            never.
          format: int32
      description: >-
        conditions is a list of {key, operator, values} objects, all of which
        must match. key is one of request.ip,
         request.country, user.email, user.emailDomain, user.loginId and user.phone. operator is one of equal, notEqual, in,
         notIn, inCidr and notInCidr, where equal, notEqual, inCidr and notInCidr take exactly one value. Values must be in
         canonical form: lowercase emails and domains, uppercase countries, E.164 phones and compressed IP addresses. With
         equal and notEqual the value may instead be a reference of the form {{jwtClaims.<name>}}, which compares the
         attribute against the named top-level custom claim of the token the caller presented. An absent claim never
         matches, notEqual included.
    AuthAccessRules:
      type: object
      properties:
        rules:
          type: array
          items:
            $ref: '#/components/schemas/AuthAccessRule'
    AuthAccessSettings:
      type: object
      properties:
        defaultAction:
          type: string
        ruleIds:
          $ref: '#/components/schemas/google.protobuf.Value'
      description: >-
        defaultAction decides the verdict when no rule matches. ruleIds is the
        full evaluation order as a list of rule ids.
    AuthenticationSchemes:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        primary:
          type: boolean
        specUri:
          type: string
        type:
          type: string
    Bulk:
      type: object
      properties:
        supported:
          type: boolean
        maxOperations:
          type: integer
          format: int32
        maxPayloadSize:
          type: integer
          format: int32
    CheckIPInListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        ip:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
        - ip
    CheckIPInListResponse:
      type: object
      properties:
        exists:
          type: boolean
    CheckTextInListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        text:
          type: string
          maxLength: 254
        texts:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          maxItems: 100
        matchAll:
          type: boolean
          description: >-
            When true, exists is true only if every text is in the list,
            otherwise if any is
      required:
        - id
    CheckTextInListResponse:
      type: object
      properties:
        exists:
          type: boolean
    ClaimTokenTargets:
      type: object
      properties:
        tokens:
          type: array
          items:
            type: string
            minLength: 1
      description: >-
        ClaimTokenTargets lists the tokens a single mapped claim is written to.
        An empty
         list means every token, which is the default for claims with no entry.

         Values are plain strings rather than an enum because this field is served over two
         JSON surfaces with different enum encodings: the management API marshals via protojson
         (enum names) while the console API marshals the proto with encoding/json (enum numbers).
         A string renders identically on both. Unknown values are dropped on write, so a claim
         with no valid target falls back to the "every token" default.

         Wrapper message because proto3 map values cannot be `repeated`.
    ClearListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    ClientSecretMeta:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
        expireTime:
          type: integer
          format: int32
        createdTime:
          type: integer
          format: int32
    CloneProjectAsyncResponse:
      type: object
      properties:
        processId:
          type: string
    CloneProjectRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        environment:
          type: string
        tags:
          type: array
          items:
            type: string
            minLength: 1
      required:
        - name
    CloneProjectResponse:
      type: object
      properties:
        projectId:
          type: string
        projectName:
          type: string
        tag:
          type: string
        environment:
          type: string
        tags:
          type: array
          items:
            type: string
    ConfigurePasswordSettingsRequest:
      type: object
      properties:
        minLength:
          type: integer
          format: int32
        lowercase:
          type: boolean
        uppercase:
          type: boolean
        number:
          type: boolean
        nonAlphanumeric:
          type: boolean
        expiration:
          type: boolean
        expirationWeeks:
          type: integer
          format: int32
        reuse:
          type: boolean
        reuseAmount:
          type: integer
          format: int32
        lock:
          type: boolean
        lockAttempts:
          type: integer
          format: int32
        tenantId:
          type: string
        enabled:
          type: boolean
        tempLock:
          type: boolean
        tempLockAttempts:
          type: integer
          format: int32
        tempLockDuration:
          type: integer
          format: int32
        enablePasswordStrength:
          type: boolean
        passwordStrengthScore:
          type: integer
          format: int32
        anyLetter:
          type: boolean
        disallowedCharacters:
          type: string
        disallowEmailMatch:
          type: boolean
      required:
        - minLength
        - expirationWeeks
        - reuseAmount
        - lockAttempts
    ConfigureSSOAuthTypeRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        authType:
          type: string
          minLength: 1
        ssoId:
          type: string
          maxLength: 254
      description: >-
        Sets the authentication type of a single SSO configuration, without
        touching its stored
         SAML/OIDC settings, domains or mappings. none disables the configuration, saml/oidc enable
         it on that protocol.
      required:
        - tenantId
        - authType
    ConfigureSSOMappingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        roleMappings:
          type: array
          items:
            $ref: '#/components/schemas/RoleMapping'
        attributeMapping:
          $ref: '#/components/schemas/AttributeMapping'
        defaultSSORoles:
          type: array
          items:
            type: string
            maxLength: 254
        groupsPriority:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        replaceDefaultSSORoles:
          type: boolean
          description: >-
            When true, defaultSSORoles replaces the stored default SSO roles
            even when it is empty, which is
             how a caller clears them. When false, an empty defaultSSORoles keeps what is stored: over proto3 an
             empty list cannot be told apart from an omitted one.
      required:
        - tenantId
    ConfigureSSOMetadataRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        idpMetadataURL:
          type: string
          minLength: 1
        redirectURL:
          type: string
          maxLength: 16384
        domains:
          type: array
          items:
            type: string
            minLength: 1
        domain:
          type: string
          description: Deprecated - use domains instead
      required:
        - tenantId
        - idpMetadataURL
    ConfigureSSOOIDCSettingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        settings:
          $ref: '#/components/schemas/SSOOIDCSettings'
        domains:
          type: array
          items:
            type: string
            minLength: 1
        ssoId:
          type: string
          maxLength: 254
      required:
        - tenantId
        - settings
    ConfigureSSORedirectURLRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        samlRedirectUrl:
          type: string
          maxLength: 16384
        oauthRedirectUrl:
          type: string
        ssoId:
          type: string
          maxLength: 254
      required:
        - tenantId
    ConfigureSSOSAMLSettingsByMetadataRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        settings:
          $ref: '#/components/schemas/SSOSAMLByMetadataSettings'
        redirectUrl:
          type: string
          maxLength: 16384
        domains:
          type: array
          items:
            type: string
            minLength: 1
        ssoId:
          type: string
          maxLength: 254
      required:
        - tenantId
        - settings
    ConfigureSSOSAMLSettingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        settings:
          $ref: '#/components/schemas/SSOSAMLSettings'
        redirectUrl:
          type: string
          maxLength: 16384
        domains:
          type: array
          items:
            type: string
            minLength: 1
        ssoId:
          type: string
          maxLength: 254
      required:
        - tenantId
        - settings
    ConfigureSSOSettingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        idpURL:
          type: string
          minLength: 1
        entityId:
          type: string
          minLength: 1
          maxLength: 1000
        idpCert:
          type: string
          minLength: 1
          maxLength: 1000000
        redirectURL:
          type: string
          maxLength: 16384
        domains:
          type: array
          items:
            type: string
            minLength: 1
        domain:
          type: string
          description: Deprecated - use domains instead
      required:
        - tenantId
        - idpURL
        - entityId
        - idpCert
    ConfigureTenantSettingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        domains:
          type: array
          items:
            type: string
        selfProvisioningDomains:
          type: array
          items:
            type: string
        authType:
          type: string
        enabled:
          type: boolean
        refreshTokenExpiration:
          type: integer
          format: int32
        refreshTokenExpirationUnit:
          type: string
        sessionTokenExpiration:
          type: integer
          format: int32
        sessionTokenExpirationUnit:
          type: string
        stepupTokenExpiration:
          type: integer
          format: int32
        stepupTokenExpirationUnit:
          type: string
        enableInactivity:
          type: boolean
        inactivityTime:
          type: integer
          format: int32
        inactivityTimeUnit:
          type: string
        JITDisabled:
          type: boolean
        ssoSetupSuiteSettings:
          $ref: '#/components/schemas/SSOSetupSuiteSettings'
      required:
        - tenantId
    ConfigureXAASettingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          maxLength: 254
        enabled:
          type: boolean
        settings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            Trusted-issuer + grant configuration for Cross-App Access (ID-JAG)
            on this SSO configuration.
        roleMappings:
          type: array
          items:
            $ref: '#/components/schemas/RoleMapping'
          description: >-
            Config-level shared group->role / FGA / default-role / priority
            mapping for this SSO configuration.
             Shared across SAML / OIDC / SCIM / XAA for the sso_id (NOT a per-issuer mapping). Role references are
             by name and resolved to role ids; these reuse the same mgmt-side types the SSO SAML settings use.
        defaultSSORoles:
          type: array
          items:
            type: string
            maxLength: 254
        fgaMappings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ReBACGroupsMapping'
        groupsPriority:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        groupPriorityEnabled:
          type: boolean
        allowOverrideRoles:
          type: boolean
        providerID:
          type: string
          description: >-
            Selected IdP provider template id for this XAA configuration
            (mirrors SSOOIDCSettings.providerID).
             Purely display metadata so the suite can redisplay the chosen IdP; NOT part of the shared mapping.
        authenticationOnly:
          type: boolean
          description: >-
            Verify identity only: a login through this SSO configuration must
            not create, update or sign in
             a user. Optional, so a caller that does not send it keeps whatever is stored rather than
             clearing it. Setting it here applies to the whole configuration - its SAML, OIDC and Cross-App
             Access rows move together, since leaving one behind would leave a path that still provisions a
             user.
      description: >-
        XAA (Cross-App Access / ID-JAG) per-SSO-config management messages. XAA
        is stored per SSO configuration
         (keyed by ssoId, the reserved "default_ssoid" for the default config). The trusted-issuer configuration
         lives in JWTBearerSettings; the group/role mapping fields are the config-level shared mapping surface,
         identical to the one the SSO SAML/OIDC settings carry.
      required:
        - tenantId
    ConfigureXAASettingsResponse:
      type: object
      properties: {}
    ConnectOutboundAppOptions:
      type: object
      properties:
        redirectUrl:
          type: string
        scopes:
          type: array
          items:
            type: string
        prompt:
          type: array
          items:
            type: string
            minLength: 1
        loginHint:
          type: string
          maxLength: 10000
        resources:
          type: array
          items:
            type: string
            minLength: 1
        externalIdentifier:
          type: string
          maxLength: 254
    ConnectOutboundAppRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        options:
          $ref: '#/components/schemas/ConnectOutboundAppOptions'
      required:
        - appId
    ConnectOutboundAppResponse:
      type: object
      properties:
        url:
          type: string
    Connector:
      type: object
      properties:
        id:
          type: string
          description: >-
            The connector id, assigned by the server on create and required on
            update.
          maxLength: 254
        name:
          type: string
          description: The connector's display name.
          minLength: 1
          maxLength: 254
        type:
          type: string
          description: >-
            The connector template id, such as `http`, which cannot change after
            create. LoadAllConnectorTemplates lists the
             available templates.
          minLength: 1
          maxLength: 254
        status:
          type: string
          description: >-
            Either `enabled` or `disabled`, defaults to `enabled` on create. A
            disabled connector is not run by flows or
             automatic triggers; audit streaming ignores `status` and follows the template's `auditEnabled` configuration field
             if it has one, and is otherwise always on. While its secrets are placeholders, create a connector `disabled`, also
             set `auditEnabled: false` on an audit connector whose template has that field, and enable it once the real values
             are in.
        description:
          type: string
          description: A free text description of the connector.
          maxLength: 254
        configuration:
          type: object
          description: >-
            The template's configuration fields by name, as GetConnectorTemplate
            describes them. Checked against the template
             on create and update, with missing defaults filled in; not checked for messaging providers, which have no template.
             Secret values are returned as `PLACEHOLDER_VALUE`, and sending that value back keeps the stored secret.
      required:
        - name
        - type
    ConnectorHTTPAPIKeyAuthentication:
      type: object
      properties:
        key:
          type: string
          minLength: 1
          maxLength: 1024
        token:
          type: string
          minLength: 1
          maxLength: 1024
      required:
        - key
        - token
    ConnectorHTTPAuthentication:
      type: object
      properties:
        bearerToken:
          type: string
          maxLength: 1024
        basic:
          $ref: '#/components/schemas/ConnectorHTTPBasicAuthentication'
        apiKey:
          $ref: '#/components/schemas/ConnectorHTTPAPIKeyAuthentication'
    ConnectorHTTPBasicAuthentication:
      type: object
      properties:
        username:
          type: string
          minLength: 1
          maxLength: 1024
        password:
          type: string
          minLength: 1
          maxLength: 1024
      required:
        - username
        - password
    ConnectorTemplate:
      type: object
      properties:
        id:
          type: string
          description: >-
            The template id, which is the `type` of the connectors created from
            it, such as `http`.
        name:
          type: string
          description: The template's display name, such as `HTTP`.
        description:
          type: string
          description: What the connector does.
        categories:
          type: array
          items:
            type: string
          description: Categories for browsing templates, such as `Observability`.
        types:
          type: array
          items:
            type: string
          description: >-
            Where connectors made from this template can be used: `flows`,
            `messaging` or `audit`.
        requiredLicense:
          type: string
          description: >-
            The company license this template needs, or empty when it needs
            none.
        fields:
          type: array
          items:
            $ref: '#/components/schemas/ConnectorTemplateField'
          description: >-
            The configuration fields, in display order. Only returned by
            GetConnectorTemplate.
    ConnectorTemplateField:
      type: object
      properties:
        name:
          type: string
          description: The field's key in the connector's `configuration`.
        displayName:
          type: string
          description: The field's display name.
        description:
          type: string
          description: What the field is for and how to get its value.
        type:
          type: string
          description: >-
            The value's type: `string`, `number` and `boolean` are plain values;
            `secret`, `secret-file` and `secret-json-file`
             are secret strings; `secret-object` is a list of `{key, value, secret}` entries, where the values of entries with
             `secret: true` are stored encrypted and returned as `PLACEHOLDER_VALUE`; `httpAuth` is an authentication object
             with `method` and that method's settings, see GetConnectorTemplate, whose secret values (API key token, basic
             password, bearer token, OAuth client secret) are likewise returned as `PLACEHOLDER_VALUE` and kept when sent back;
             `readonly-string` is generated by Descope on create, returned in the connector's `configuration`, and
             may only be sent back unchanged; `cloudformation-link` is a console link to an AWS CloudFormation stack, not a
             value, and is never sent; other types such as `auditFilters` are objects specific to the template.
        required:
          type: boolean
          description: >-
            Whether a value is required when the field applies, see `dependsOn`.
            A missing field with a `defaultValue` is
             filled in.
        defaultValue:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            The value filled in when the field is missing on create or update,
            if any.
        options:
          type: array
          items:
            $ref: '#/components/schemas/ConnectorTemplateFieldOption'
          description: The allowed values, when the field has a fixed set of them.
        dependsOn:
          allOf:
            - $ref: '#/components/schemas/ConnectorTemplateFieldDependsOn'
          description: >-
            When set, the field applies only when another field has one of the
            given values.
        format:
          type: string
          description: A format the value must have, such as `email` or `url`, or empty.
        secret:
          type: boolean
          description: >-
            Whether the field holds secrets, which are stored encrypted and
            returned as `PLACEHOLDER_VALUE`: the whole value
             for `secret`, `secret-file` and `secret-json-file`, and the values of entries with `secret: true` for
             `secret-object`. Fields of type `httpAuth` also hold secrets inside their value, see `type`.
    ConnectorTemplateFieldDependsOn:
      type: object
      properties:
        name:
          type: string
          description: The name of the field this field depends on.
        values:
          type: array
          items:
            $ref: '#/components/schemas/google.protobuf.Value'
          description: The values of that field for which this field applies.
    ConnectorTemplateFieldOption:
      type: object
      properties:
        value:
          type: string
          description: The value to set.
        name:
          type: string
          description: The option's display name.
        description:
          type: string
          description: What the option means.
    ConnectorTemplates:
      type: object
      properties:
        templates:
          type: array
          items:
            $ref: '#/components/schemas/ConnectorTemplate'
          description: The available templates, without their fields.
    Connectors:
      type: object
      properties:
        connectors:
          type: array
          items:
            $ref: '#/components/schemas/Connector'
    CreateAccessKeyRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        expireTime:
          type: string
          format: int64
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        keyTenants:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.AssociatedTenant'
        userId:
          type: string
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        description:
          type: string
          maxLength: 100000
        permittedIps:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
      required:
        - name
    CreateAccessKeyResponse:
      type: object
      properties:
        cleartext:
          type: string
        key:
          $ref: '#/components/schemas/AccessKey'
    CreateAdditionalSignKeyRequest:
      type: object
      properties:
        algorithm:
          type: string
          minLength: 1
      required:
        - algorithm
    CreateAdditionalSignKeyResponse:
      type: object
      properties: {}
    CreateAuditRequest:
      type: object
      properties:
        userId:
          type: string
        action:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
          minLength: 1
        type:
          type: string
          minLength: 1
        actorId:
          type: string
          minLength: 1
          maxLength: 254
        data:
          type: object
      required:
        - action
        - tenantId
        - type
        - actorId
    CreateDescopersRequest:
      type: object
      properties:
        descopers:
          type: array
          items:
            $ref: '#/components/schemas/DescoperCreate'
          minItems: 1
      required:
        - descopers
    CreateDescopersResponse:
      type: object
      properties:
        descopers:
          type: array
          items:
            $ref: '#/components/schemas/Descoper'
        total:
          type: integer
          format: int32
    CreateEngineRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 10000
      required:
        - name
    CreateEngineResponse:
      type: object
      properties:
        engine:
          $ref: '#/components/schemas/Engine'
    CreateFamilyDependentRequest:
      type: object
      properties:
        familyId:
          type: string
          description: the family to create the dependent in
          minLength: 1
          maxLength: 254
        loginId:
          type: string
          description: >-
            when the login ID is missing it is derived from the name;
            email/phone are never used as the login ID
             (they are not unique - a dependent may share them with their guardian)
        name:
          type: string
          maxLength: 254
        email:
          type: string
        phone:
          type: string
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
        picture:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        familyScopedAttributes:
          type: object
          additionalProperties:
            type: object
      required:
        - familyId
    CreateFamilyDependentResponse:
      type: object
      properties:
        user:
          $ref: '#/components/schemas/ResponseUser'
    CreateFamilyRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        photo:
          type: string
        disabled:
          type: boolean
        familyId:
          type: string
          description: >-
            familyId - optional caller-supplied family ID; a random one is
            generated when omitted. Not
             validated as descope_id since a caller-supplied ID need not match Descope's own generated-ID
             format.
          maxLength: 254
      required:
        - name
    CreateFamilyResponse:
      type: object
      properties:
        family:
          $ref: '#/components/schemas/Family'
    CreateJwtTemplateRequest:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/JWTTemplate'
      required:
        - template
    CreateListRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 254
        type:
          type: string
        data:
          $ref: '#/components/schemas/google.protobuf.Value'
      required:
        - name
    CreateListResponse:
      type: object
      properties:
        list:
          $ref: '#/components/schemas/List'
    CreateManagementKeyRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        expiresIn:
          type: string
          format: uint64
        permittedIps:
          type: array
          items:
            type: string
        reBac:
          $ref: '#/components/schemas/ManagementKeyReBac'
        expireTime:
          type: string
          format: int64
        trustedIssuer:
          $ref: '#/components/schemas/WIFTrustedIssuer'
      required:
        - name
        - reBac
    CreateManagementKeyResponse:
      type: object
      properties:
        cleartext:
          type: string
        key:
          $ref: '#/components/schemas/ManagementKey'
    CreateMcpServerClientRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        mcpServerId:
          type: string
          minLength: 1
        approvedCallbackUrls:
          type: array
          items:
            type: string
        scopes:
          type: array
          items:
            type: string
            maxLength: 100
        tags:
          type: array
          items:
            type: string
            maxLength: 100
        logo:
          type: string
          maxLength: 2097152
        forceAddAllAuthorizationInfo:
          type: boolean
        allowedTenants:
          type: array
          items:
            type: string
      required:
        - name
        - mcpServerId
    CreateMcpServerClientResponse:
      type: object
      properties:
        id:
          type: string
        cleartext:
          type: string
        clientId:
          type: string
    CreateMcpServerRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        dynamicRegistration:
          $ref: '#/components/schemas/managementv1.McpServerDynamicClientRegistration'
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        approvedScopes:
          $ref: '#/components/schemas/DynamicClientRegistrationApprovedScopes'
        approvedCallbackUrls:
          type: array
          items:
            type: string
        loginPageURL:
          type: string
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        tags:
          type: array
          items:
            type: string
        logo:
          type: string
          maxLength: 2097152
        cimdSettings:
          $ref: '#/components/schemas/CIMDSettings'
        skipConsentScreen:
          type: boolean
        consentFlowId:
          type: string
          maxLength: 1000
        consentFlowHostingURL:
          type: string
        forceAddAllAuthorizationInfo:
          type: boolean
        wellKnownCustomization:
          allOf:
            - $ref: '#/components/schemas/WellKnownCustomization'
          description: Adjustments to this MCP server's discovery document
      description: Keep this message synchronized with the matching one in ProjectService
      required:
        - name
    CreateMcpServerResponse:
      type: object
      properties:
        server:
          $ref: '#/components/schemas/McpServer'
    CreateOutboundAppByDcrPresetRequest:
      type: object
      properties:
        dcrPresetId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
      required:
        - dcrPresetId
    CreateOutboundAppByDcrPresetResponse:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/OutboundApp'
    CreateOutboundAppByTemplateOverrides:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 254
        logo:
          type: string
        discoveryUrl:
          type: string
          maxLength: 254
        authorizationUrl:
          type: string
          maxLength: 254
        authorizationUrlParams:
          type: array
          items:
            $ref: '#/components/schemas/URLParam'
        tokenUrl:
          type: string
          maxLength: 254
        tokenUrlParams:
          type: array
          items:
            $ref: '#/components/schemas/URLParam'
        revocationUrl:
          type: string
          maxLength: 254
        defaultScopes:
          type: array
          items:
            type: string
            maxLength: 254
        defaultRedirectUrl:
          type: string
        callbackDomain:
          type: string
          maxLength: 254
        pkce:
          type: boolean
        accessType:
          type: string
          maxLength: 254
        prompt:
          type: array
          items:
            type: string
            minLength: 1
        useDcr:
          type: boolean
        dcrUrl:
          type: string
    CreateOutboundAppByTemplateRequest:
      type: object
      properties:
        clientId:
          type: string
          maxLength: 1000
        clientSecret:
          type: string
          maxLength: 1000
        tenantId:
          type: string
        id:
          type: string
          maxLength: 254
        overrides:
          $ref: '#/components/schemas/CreateOutboundAppByTemplateOverrides'
      required:
        - templateId
    CreateOutboundAppByTemplateResponse:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/OutboundApp'
    CreateOutboundAppRequest:
      type: object
      properties:
        id:
          type: string
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 254
        clientId:
          type: string
          description: >-
            string templateId = 4 [(validate).string = {std_len: true ,
            optional: true}]; - will always be custom
          maxLength: 1000
        clientSecret:
          type: string
          maxLength: 1000
        logo:
          type: string
        discoveryUrl:
          type: string
          maxLength: 254
        authorizationUrl:
          type: string
          maxLength: 254
        authorizationUrlParams:
          type: array
          items:
            $ref: '#/components/schemas/URLParam'
        tokenUrl:
          type: string
          maxLength: 254
        tokenUrlParams:
          type: array
          items:
            $ref: '#/components/schemas/URLParam'
        revocationUrl:
          type: string
          maxLength: 254
        defaultScopes:
          type: array
          items:
            type: string
            maxLength: 254
        defaultRedirectUrl:
          type: string
        callbackDomain:
          type: string
          maxLength: 254
        pkce:
          type: boolean
        accessType:
          type: string
          maxLength: 254
        prompt:
          type: array
          items:
            type: string
            minLength: 1
        appType:
          type: string
        useDcr:
          type: boolean
        dcrUrl:
          type: string
        tenantId:
          type: string
        tokenEndpointAuthMethod:
          type: string
          description: >-
            Token endpoint client authentication method. Empty or
            "client_secret" sends clientSecret as the client secret;
            "private_key_jwt" signs an RFC 7523 client assertion with the
            project signing key published in the project JWKS.
        tokenEndpointAuthSigningAlg:
          type: string
          description: >-
            Client assertion signing algorithm used with private_key_jwt. Empty
            means RS256.
        useNonce:
          type: boolean
          description: >-
            Send a nonce on the authorization request and require the token
            response to carry an id_token with the same nonce.
      required:
        - name
    CreateOutboundAppResponse:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/OutboundApp'
    CreateOutboundSCIMConfigurationRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        configuration:
          type: object
      required:
        - appId
        - configuration
    CreateOutboundSCIMConfigurationResponse:
      type: object
      properties:
        configuration:
          $ref: '#/components/schemas/OutboundSCIMConfiguration'
    CreatePermissionRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
        description:
          type: string
          maxLength: 1024
      required:
        - name
    CreatePermissionsRequest:
      type: object
      properties:
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/CreatePermissionRequest'
    CreateProjectRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        environment:
          type: string
        tags:
          type: array
          items:
            type: string
            minLength: 1
      required:
        - name
    CreateRoleRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
        description:
          type: string
          maxLength: 1024
        permissionNames:
          type: array
          items:
            type: string
            minLength: 1
        tenantId:
          type: string
        default:
          type: boolean
        private:
          type: boolean
      required:
        - name
    CreateRolesRequest:
      type: object
      properties:
        roles:
          type: array
          items:
            $ref: '#/components/schemas/CreateRoleRequest'
    CreateSCIMAccessKeyRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          description: >-
            The SSO configuration this key provisions into. Omit it to target
            the tenant's default
             configuration - it does NOT mean "every configuration".
          maxLength: 254
        name:
          type: string
          description: Defaults to a name derived from the tenant and SSO configuration.
          maxLength: 254
        description:
          type: string
          maxLength: 254
        expireTime:
          type: string
          description: >-
            Epoch seconds. 0, the default, means the key never expires. An
            expired SCIM key stops the
             identity provider from provisioning, so prefer 0 unless you have a rotation process.
          format: int64
      required:
        - tenantId
    CreateSSOApplicationResponse:
      type: object
      properties:
        id:
          type: string
    CreateTenantBatchFailureResponse:
      type: object
      properties:
        failure:
          type: string
        tenant:
          $ref: '#/components/schemas/CreateTenantRequest'
    CreateTenantRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        id:
          type: string
        selfProvisioningDomains:
          type: array
          items:
            type: string
            minLength: 1
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        authType:
          type: string
        disabled:
          type: boolean
        enforceSSO:
          type: boolean
        enforceSSOExclusions:
          type: array
          items:
            type: string
            minLength: 1
        federatedAppIds:
          type: array
          items:
            type: string
            minLength: 1
        parent:
          type: string
        roleInheritance:
          type: string
        approvedDomains:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            The tenant's vanity hostname (e.g. surveys.example.com), unique
            across the project's tenants. Requests that reach the project
            through its trusted proxy on this hostname are bound to this tenant.
            One item for now
          maxItems: 1
        enforceSSOExclusionPermissions:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            Permission names or IDs whose holders in the tenant may sign in
            without SSO while enforceSSO is on (break-glass accounts)
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for tenants returns error E111843 listing them: the request fails
            and nothing is saved. When false (default), those keys are ignored.
            An attribute declared in the last few seconds may still be ignored.
      required:
        - name
    CreateTenantResponse:
      type: object
      properties:
        id:
          type: string
    CreateTenantsBatchRequest:
      type: object
      properties:
        tenants:
          type: array
          items:
            $ref: '#/components/schemas/CreateTenantRequest'
          minItems: 1
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for tenants returns error E111843 listing them for every item in the
            batch: an item that sets one fails and the others are saved. When
            false (default), those keys are ignored. An attribute declared in
            the last few seconds may still be ignored.
      description: >-
        At most 100 tenants per call by default. A tenant whose fields break
        this request's validation rules fails the whole call; any other failure
        is returned for that tenant in the response.
      required:
        - tenants
    CreateTenantsBatchResponse:
      type: object
      properties:
        createdTenants:
          type: array
          items:
            $ref: '#/components/schemas/CreatedTenantResponse'
        failedTenants:
          type: array
          items:
            $ref: '#/components/schemas/CreateTenantBatchFailureResponse'
        additionalErrors:
          type: object
          additionalProperties:
            type: string
    CreateThirdPartyApplicationConsentRequest:
      type: object
      properties:
        appId:
          type: string
          description: The third party application ID
          minLength: 1
          maxLength: 10000
        userId:
          type: string
          description: The ID of the user who granted the consent
          minLength: 1
        scopes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 1000
          description: >-
            The consented scopes, each defined by the application, including all
            of its mandatory scopes
          maxItems: 1000
        tenantId:
          type: string
          description: >-
            Optional tenant the consent is bound to. The user must be a member
            of this tenant
        expireTime:
          type: integer
          description: >-
            Optional expiration time of the consent, in seconds since the epoch.
            Zero means the consent never expires
          format: int32
      required:
        - appId
        - userId
    CreateThirdPartyApplicationConsentResponse:
      type: object
      properties:
        consent:
          $ref: '#/components/schemas/ThirdPartyApplicationConsent'
    CreateThirdPartyApplicationRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        attributesScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        consentFlowId:
          type: string
          maxLength: 1000
        logoUrl:
          type: string
        jwtBearerSettings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            string backChannelLogoutUrl = 10 [(validate).string = {url: true,
            optional: true}];
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        nonConfidentialClient:
          type: boolean
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        clientId:
          type: string
          maxLength: 10000
        clientSecret:
          type: string
          maxLength: 10000
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
          description: >-
            scopeClaimMapping is the structured scope→claim model. Consumed by
            CreateThirdPartyApplicationV2
             (v2 write-replace: attributesScopes is ignored/cleared). v1 ignores this field.
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions are the private_key_jwt trust entries (JWKS URL or
            PEM public key per entry).
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions are the workload identity trust entries
            (SPIFFE trust domain or OIDC issuer per entry).
        forcePar:
          type: boolean
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        tags:
          type: array
          items:
            type: string
            maxLength: 100
          description: >-
            tags label the app, matched by policy rules through client.tags
            conditions. Up to 100 tags, each up to 100 bytes. Default empty.
          maxItems: 100
      required:
        - name
    CreateThirdPartyApplicationResponse:
      type: object
      properties:
        id:
          type: string
        cleartext:
          type: string
        clientId:
          type: string
    CreateThirdPartyApplicationV2Request:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        consentFlowId:
          type: string
          maxLength: 1000
        logoUrl:
          type: string
        jwtBearerSettings:
          $ref: '#/components/schemas/JWTBearerSettings'
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        nonConfidentialClient:
          type: boolean
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        clientId:
          type: string
          maxLength: 10000
        clientSecret:
          type: string
          maxLength: 10000
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions are the private_key_jwt trust entries (JWKS URL or
            PEM public key per entry).
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions are the workload identity trust entries
            (SPIFFE trust domain or OIDC issuer per entry).
        forcePar:
          type: boolean
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        tags:
          type: array
          items:
            type: string
            maxLength: 100
          description: >-
            tags label the app, matched by policy rules through client.tags
            conditions. Up to 100 tags, each up to 100 bytes. Default empty.
          maxItems: 100
      required:
        - name
    CreateUpdateSSOOIDCApplicationRequest:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        enabled:
          type: boolean
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        claims:
          type: array
          items:
            type: string
        forceAuthentication:
          type: boolean
        backChannelLogoutUrl:
          type: string
        jwtBearerSettings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            On update, omit to keep the app's current JWT bearer settings, or
            send {} to clear them.
        customIdpInitiatedLoginPageUrl:
          type: string
        sessionSettings:
          allOf:
            - $ref: >-
                #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
          description: >-
            The app's own token lifetimes and JWT templates. On update, omit to
            keep the app's current session
             settings, or send {"enabled": false} to use the project's.
        clientType:
          type: string
          description: >-
            How the app authenticates as an OAuth client. 'confidential': a
            dedicated client ID and client
             secret, for server-side apps. 'public': a dedicated client ID and PKCE with no secret, for native,
             mobile and single-page apps. These apps normally use the project-level issuer and discovery
             endpoints. On create, an empty clientType means the legacy Access Key type (the project ID is the
             client ID, and the issuer and discovery endpoints are per app); accounts that can't use the legacy
             type get 'confidential' instead. On update, an empty clientType keeps the app's current type.
        approvedRedirectUrls:
          type: array
          items:
            type: string
        authorizationCodeDisabled:
          type: boolean
        clientCredentialsDisabled:
          type: boolean
        refreshTokenDisabled:
          type: boolean
        jwtBearerDisabled:
          type: boolean
        deviceCodeDisabled:
          type: boolean
        forcePkce:
          type: boolean
        clientId:
          type: string
          description: >-
            Optional: import an existing OIDC client. Both are accepted on
            create only (immutable afterward);
             empty means the client_id is computed and the client_secret is generated server-side. The client_id
             must be unique within the project. The client_secret is returned once on the create response.
          maxLength: 200
        clientSecret:
          type: string
          maxLength: 1000
        defaultAudience:
          type: string
          description: >-
            Default audience policy for issued tokens. Applies only to modern
            apps (non-empty clientType):
             'projectId', 'clientId', 'appId', empty (both), or 'empty' (no aud at all). Legacy apps are
             unaffected. Mirrors third-party apps.
        trustedAppIds:
          type: array
          items:
            type: string
          description: >-
            trustedAppIds lists sibling SSO apps whose roles are included in
            this app's JWT under the
             `trustedApps` claim at login time. Apps where the user has no roles are silently omitted.
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        trustedAppsAudience:
          type: string
          description: >-
            Audience policy applied to trusted sibling apps' identifiers when
            appended to the issued token's
             `aud` (see trustedAppIds). Same value set as defaultAudience: 'projectId' / 'clientId' / 'appId' /
             empty (=both) / 'empty' (add none). Independent of defaultAudience.
        serviceAccountRoles:
          type: array
          items:
            $ref: '#/components/schemas/SSOAppServiceAccountRole'
          description: >-
            serviceAccountRoles assigns this app (when client_credentials is
            enabled) application-roles in its
             trusted apps; surfaced in its client_credentials token under the `app.trustedApps` claim.
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        darkLogo:
          type: string
          maxLength: 2097152
        wellKnownCustomization:
          $ref: '#/components/schemas/WellKnownCustomization'
        assignedRoleIds:
          type: array
          items:
            type: string
          description: >-
            assignedRoleIds lists project-level roles that grant access to this
            application. A user holding
             any of them can access it, in addition to users assigned directly or through their tenant.
             Additive: it never removes access, so it only changes the outcome for projects that deny
             applications by default. Tenant scoped roles are rejected.
        forceDpop:
          type: boolean
          description: >-
            Require a valid DPoP proof (RFC 9449) at the token endpoint. Applies
            to Confidential/Public clients;
             legacy apps (empty clientType) are exempt. Defaults to false.
        logoutPropagation:
          type: string
          description: >-
            How far a logout at the app's end-session endpoint reaches: 'none'
            (default) only ends the user's sessions
             and notifies no other app, 'allApps' also logs the user out of their other apps. An update without it sets
             it back to 'none'.
        notifyOnForceLogout:
          type: boolean
          description: >-
            Whether a Force Logout of the user (the Console's, or Logout User
            from All Devices in this API) sends the app a
             back-channel logout token. Needs backChannelLogoutUrl. Off (default): a force logout doesn't notify the app. A
             logout of all devices through the auth API is not affected.
      required:
        - name
    CreateUpdateSSOSAMLApplicationRequest:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        enabled:
          type: boolean
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        useMetadataInfo:
          type: boolean
        metadataUrl:
          type: string
        entityId:
          type: string
          maxLength: 10000
        acsUrl:
          type: string
        certificate:
          type: string
          maxLength: 1000000
        attributeMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPAttributeMappingInfo'
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPGroupsMappingInfo'
        acsAllowedCallbacks:
          type: array
          items:
            type: string
            maxLength: 300
        subjectNameIdType:
          type: string
          maxLength: 150
        subjectNameIdFormat:
          type: string
        defaultRelayState:
          type: string
          maxLength: 10000
        forceAuthentication:
          type: boolean
        logoutRedirectUrl:
          type: string
        errorRedirectUrl:
          type: string
        defaultSignatureAlgorithm:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        darkLogo:
          type: string
          maxLength: 2097152
        assignedRoleIds:
          type: array
          items:
            type: string
          description: >-
            assignedRoleIds lists project-level roles that grant access to this
            application. A user holding
             any of them can access it, in addition to users assigned directly or through their tenant.
             Additive: it never removes access, so it only changes the outcome for projects that deny
             applications by default. Tenant scoped roles are rejected.
        singleLogoutEnabled:
          type: boolean
          description: >-
            SAML Single Logout (SLO). When on, the app's SP can log the user out
            with a signed LogoutRequest, and the app
             is sent a LogoutRequest, naming the user by the app's NameID, when a logout reaches the user's apps (the
             user's own logout of all devices, a force logout when the app's notifyOnForceLogout is on, or another app's
             logout that propagates). Every app with single logout on that the user can sign in to is sent one, including
             apps the user hasn't signed in to; limit that with the user's app assignments. A logout without a browser
             (the user's own logout of all devices, a force logout) reaches only apps with the 'soap' binding. Off by
             default. An update without it turns single logout off.
        spSingleLogoutUrl:
          type: string
          description: >-
            The SP's SingleLogoutService URL. Required when single logout is on
            and the app is configured manually;
             empty takes it from the SP metadata.
        spSingleLogoutBinding:
          type: string
          description: >-
            The binding of spSingleLogoutUrl: 'redirect', 'post' or 'soap'
            (server to server, https only). Default (empty):
             with spSingleLogoutUrl, 'redirect'; without it, from the SP metadata ('soap' when it offers an https SOAP
             endpoint, else 'redirect', else 'post'). A binding set without spSingleLogoutUrl picks the SP metadata endpoint
             with that binding.
        singleLogoutPropagation:
          type: string
          description: >-
            What a logout the app's SP starts reaches: 'none' (default) only
            ends the user's session and notifies no
             other app, 'allApps' also logs the user out of their other apps (OIDC apps only when every session ended).
        singleLogoutScope:
          type: string
          description: >-
            Which Descope sessions a logout the app's SP starts ends: 'session'
            (default) the sessions the LogoutRequest's
             SessionIndex values name, 'allSessions' every session of the user. With 'session', a LogoutRequest with no
             SessionIndex, or with one Descope didn't issue, ends the browser's Descope session when the browser has one for
             the user, else every session of the user its NameID names; one with several SessionIndex values that aren't all
             Descope's ends every session of the user. A visit to the logout URL without a LogoutRequest always ends every
             session of the user.
        notifyOnForceLogout:
          type: boolean
          description: >-
            Whether a Force Logout of the user (the Console's, or Logout User
            from All Devices in this API) sends the app a
             LogoutRequest. Needs single logout with the 'soap' binding, since a force logout has no browser. Off (default):
             a force logout doesn't notify the app.
      required:
        - name
    CreateUpdateSSOWSFedApplicationRequest:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        enabled:
          type: boolean
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        realm:
          type: string
          maxLength: 10000
        replyUrl:
          type: string
        attributeMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPAttributeMappingInfo'
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPGroupsMappingInfo'
        forceAuthentication:
          type: boolean
        logoutRedirectUrl:
          type: string
        errorRedirectUrl:
          type: string
        replyAllowedCallbacks:
          type: array
          items:
            type: string
            maxLength: 300
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        darkLogo:
          type: string
          maxLength: 2097152
        assignedRoleIds:
          type: array
          items:
            type: string
          description: >-
            assignedRoleIds lists project-level roles that grant access to this
            application. A user holding
             any of them can access it, in addition to users assigned directly or through their tenant.
             Additive: it never removes access, so it only changes the outcome for projects that deny
             applications by default. Tenant scoped roles are rejected.
      required:
        - name
    CreateUserExportRequest:
      type: object
      properties:
        tenantId:
          type: string
          description: >-
            optional: omit to export all users in the project; when set, exports
            only that tenant's users
    CreateUserExportResponse:
      type: object
      properties:
        exportId:
          type: string
    CreateUserRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        email:
          type: string
        phone:
          type: string
        verifiedEmail:
          type: boolean
        verifiedPhone:
          type: boolean
        name:
          type: string
          maxLength: 254
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        userTenants:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.AssociatedTenant'
        invite:
          type: boolean
        test:
          type: boolean
          default: false
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        picture:
          type: string
        sendMail:
          type: boolean
        sendSMS:
          type: boolean
        additionalIdentifiers:
          type: array
          items:
            type: string
            minLength: 1
        inviteUrl:
          type: string
        password:
          type: string
        hashedPassword:
          $ref: '#/components/schemas/PasswordImport'
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
        ssoAppIds:
          type: array
          items:
            type: string
        templateOptions:
          type: object
          additionalProperties:
            type: string
        status:
          type: string
          minLength: 1
        recoveryEmail:
          type: string
        recoveryPhone:
          type: string
        verifiedRecoveryEmail:
          type: boolean
        verifiedRecoveryPhone:
          type: boolean
        locale:
          type: string
          maxLength: 254
        familyAssociations:
          type: array
          items:
            $ref: '#/components/schemas/AssociatedFamily'
          description: >-
            each AssociatedFamily carries its own roleNames and
            familyScopedAttributes
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for users returns error E111843 listing them: the request fails and
            nothing is saved. When false (default), those keys are ignored. An
            attribute declared in the last few seconds may still be ignored.
      required:
        - identifier
    CreateUsers:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        email:
          type: string
        phone:
          type: string
        verifiedEmail:
          type: boolean
        verifiedPhone:
          type: boolean
        name:
          type: string
          maxLength: 254
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        userTenants:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.AssociatedTenant'
        test:
          type: boolean
          default: false
        picture:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        password:
          type: string
        hashedPassword:
          $ref: '#/components/schemas/PasswordImport'
        additionalIdentifiers:
          type: array
          items:
            type: string
            minLength: 1
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
        ssoAppIds:
          type: array
          items:
            type: string
        seed:
          type: string
        status:
          type: string
          minLength: 1
        createdTime:
          type: integer
          format: int32
        recoveryEmail:
          type: string
        recoveryPhone:
          type: string
        verifiedRecoveryEmail:
          type: boolean
        verifiedRecoveryPhone:
          type: boolean
        familyAssociations:
          type: array
          items:
            $ref: '#/components/schemas/AssociatedFamily'
          description: >-
            each AssociatedFamily carries its own roleNames and
            familyScopedAttributes
        recoveryCodes:
          $ref: '#/components/schemas/RecoveryCodesImport'
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for users returns error E111843 listing them: this user fails and
            the others are saved. When false (default), those keys are ignored.
            Also set by the batch's own strict. An attribute declared in the
            last few seconds may still be ignored.
      required:
        - loginId
    CreateUsersFailureResponse:
      type: object
      properties:
        failure:
          type: string
        user:
          $ref: '#/components/schemas/ResponseUser'
    CreateUsersRequest:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/CreateUsers'
        invite:
          type: boolean
        sendMail:
          type: boolean
        sendSMS:
          type: boolean
        inviteUrl:
          type: string
        templateOptions:
          type: object
          additionalProperties:
            type: string
        locale:
          type: string
          maxLength: 254
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for users returns error E111843 listing them for every item in the
            batch: an item that sets one fails and the others are saved. When
            false (default), those keys are ignored. An attribute declared in
            the last few seconds may still be ignored.
    CreateUsersResponse:
      type: object
      properties:
        createdUsers:
          type: array
          items:
            $ref: '#/components/schemas/ResponseUser'
        failedUsers:
          type: array
          items:
            $ref: '#/components/schemas/CreateUsersFailureResponse'
        additionalErrors:
          type: object
          additionalProperties:
            type: string
    CreatedTenantResponse:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
    managementv1.CustomAttribute:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 20
        displayName:
          type: string
          minLength: 1
          maxLength: 254
        type:
          type: string
          minLength: 1
        options:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            JSON arrays of strings; Value makes empty and absent distinct:
            null/absent = keep, [] = clear, values = set. Validated in the
            service
        viewPermissions:
          $ref: '#/components/schemas/google.protobuf.Value'
        editPermissions:
          $ref: '#/components/schemas/google.protobuf.Value'
      description: >-
        Custom attribute definitions (Terraform: descope_user_attribute /
        descope_tenant_attribute / descope_access_key_attribute /
         descope_inbound_app_attribute). Shared across all entity types; the service converts type<->int32 and options<->{value,label}
         pairs. editPermissions is rejected for tenant attributes (view-only).
      required:
        - name
        - displayName
        - type
    DeleteDescoperResponse:
      type: object
      properties: {}
    DeleteEngineRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteEngineResponse:
      type: object
      properties: {}
    DeleteFamilyDependentRequest:
      type: object
      properties:
        userId:
          type: string
          description: >-
            the family is inferred from the dependent (dependents belong to a
            single family)
          minLength: 1
      required:
        - userId
    DeleteFamilyDependentResponse:
      type: object
      properties: {}
    DeleteFamilyRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteFamilyResponse:
      type: object
      properties: {}
    DeleteJWTEncryptionConfigRequest:
      type: object
      properties:
        kid:
          type: string
          maxLength: 64
    DeleteJwtTemplateRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteLogoutSessionsRangeRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteManagementKeysRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
          minItems: 1
      required:
        - ids
    DeleteManagementKeysResponse:
      type: object
      properties:
        total:
          type: integer
          format: int32
    DeleteMcpServerClientRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        mcpServerId:
          type: string
          minLength: 1
      required:
        - id
        - mcpServerId
    DeleteMcpServerClientResponse:
      type: object
      properties: {}
    DeleteMcpServerClientsRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 10000
        mcpServerId:
          type: string
          minLength: 1
      required:
        - mcpServerId
    DeleteMcpServerClientsResponse:
      type: object
      properties: {}
    DeleteMcpServerRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteMcpServerResponse:
      type: object
      properties: {}
    DeleteMcpServersRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
    DeleteMcpServersResponse:
      type: object
      properties: {}
    DeleteOutboundAppRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteOutboundAppResponse:
      type: object
      properties: {}
    DeleteOutboundSCIMConfigurationRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - appId
    DeletePermissionRequest:
      type: object
      properties:
        name:
          type: string
          description: Either name or id must be provided (not both).
        id:
          type: string
    DeletePermissionsRequest:
      type: object
      properties:
        names:
          type: array
          items:
            type: string
            minLength: 1
        ids:
          type: array
          items:
            type: string
            minLength: 1
          description: Permission IDs — can be combined with names or used alone.
    DeleteRoleRequest:
      type: object
      properties:
        name:
          type: string
          description: Either name or id must be provided (not both).
        tenantId:
          type: string
        id:
          type: string
    DeleteRolesRequest:
      type: object
      properties:
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        tenantId:
          type: string
        roleIds:
          type: array
          items:
            type: string
            minLength: 1
          description: Role IDs — can be combined with roleNames or used alone.
    DeleteSSOApplicationRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
      required:
        - id
    DeleteTenantBatchFailureResponse:
      type: object
      properties:
        failure:
          type: string
        id:
          type: string
    DeleteTenantRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        cascade:
          type: boolean
      required:
        - id
    DeleteTenantsBatchRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
          minItems: 1
        cascade:
          type: boolean
      description: >-
        At most 100 tenants per call by default. A tenant whose fields break
        this request's validation rules fails the whole call; any other failure
        is returned for that tenant in the response.
      required:
        - ids
    DeleteTenantsBatchResponse:
      type: object
      properties:
        deletedTenantIds:
          type: array
          items:
            type: string
        failedTenants:
          type: array
          items:
            $ref: '#/components/schemas/DeleteTenantBatchFailureResponse'
        additionalErrors:
          type: object
          additionalProperties:
            type: string
    DeleteThirdPartyApplicationConsentsRequest:
      type: object
      properties:
        consentIds:
          type: array
          items:
            type: string
        appId:
          type: string
          maxLength: 10000
        userIds:
          type: array
          items:
            type: string
        tenantId:
          type: string
    DeleteThirdPartyApplicationConsentsResponse:
      type: object
      properties: {}
    DeleteThirdPartyApplicationRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
      required:
        - id
    DeleteThirdPartyApplicationTenantConsentsRequest:
      type: object
      properties:
        consentIds:
          type: array
          items:
            type: string
        appId:
          type: string
          maxLength: 10000
        tenantId:
          type: string
          minLength: 1
      required:
        - tenantId
    DeleteThirdPartyApplicationsRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 10000
    DeleteUserRequest:
      type: object
      properties:
        loginId:
          type: string
        userId:
          type: string
    DeleteUsersRequest:
      type: object
      properties:
        userIds:
          type: array
          items:
            type: string
    DeleteXAASettingsResponse:
      type: object
      properties: {}
    Descoper:
      type: object
      properties:
        id:
          type: string
        attributes:
          $ref: '#/components/schemas/DescoperAttributes'
        rbac:
          $ref: '#/components/schemas/DescoperRBAC'
        status:
          type: string
          minLength: 1
        loginIDs:
          type: array
          items:
            type: string
      required:
        - attributes
        - rbac
        - status
    DescoperAttributes:
      type: object
      properties:
        displayName:
          type: string
          maxLength: 254
        email:
          type: string
        phone:
          type: string
      description: Descopers
    DescoperCreate:
      type: object
      properties:
        loginId:
          type: string
          description: >-
            loginId is email-only for descoper creation for now, even if the
            full loginIds can be other types too.
          minLength: 1
        attributes:
          $ref: '#/components/schemas/DescoperAttributes'
        sendInvite:
          type: boolean
        rbac:
          $ref: '#/components/schemas/DescoperRBAC'
      required:
        - loginId
        - rbac
    DescoperProjectRole:
      type: object
      properties:
        projectIds:
          type: array
          items:
            type: string
        role:
          type: string
          minLength: 1
      required:
        - role
    DescoperRBAC:
      type: object
      properties:
        isCompanyAdmin:
          type: boolean
        tags:
          type: array
          items:
            $ref: '#/components/schemas/DescoperTagRole'
        projects:
          type: array
          items:
            $ref: '#/components/schemas/DescoperProjectRole'
    DescoperTagRole:
      type: object
      properties:
        tags:
          type: array
          items:
            type: string
        role:
          type: string
          minLength: 1
      required:
        - role
    EmbeddedLinkSettings:
      type: object
      properties:
        enabled:
          type: boolean
        expirationTime:
          type: integer
          format: int32
        expirationTimeUnit:
          type: string
      description: >-
        Embedded link (Terraform: descope_embeddedlink_settings). Carries the
        same representation
         used in exported snapshots, and the Get response and Set request are the same message.
         Patch semantics: omitted fields are left untouched; present fields are written.
    EmbeddedLinkSignInRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        timeout:
          type: integer
          format: int32
      required:
        - loginId
    EmbeddedLinkSignUpOrInRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
        user:
          $ref: '#/components/schemas/SignUpUser'
        emailVerified:
          type: boolean
        phoneVerified:
          type: boolean
        timeout:
          type: integer
          format: int32
      required:
        - loginId
    EnchantedLinkSettings:
      type: object
      properties:
        enabled:
          type: boolean
        expirationTime:
          type: integer
          format: int32
        expirationTimeUnit:
          type: string
        redirectUrl:
          type: string
          maxLength: 1024
        emailConnectorId:
          type: string
          maxLength: 254
        emailTemplateId:
          type: string
          description: >-
            Active template selection by id. Absent = keep the current
            selection; "" = reset to the
             built-in System template; a template id = select that stored template.
          maxLength: 254
        textConnectorId:
          type: string
          maxLength: 254
        textTemplateId:
          type: string
          maxLength: 254
        externalEmailTemplateId:
          type: string
          maxLength: 254
      description: >-
        Enchanted link (Terraform: descope_enchantedlink_settings). Carries the
        same representation
         used in exported snapshots, and the Get response and Set request are the same message.
         Patch semantics: omitted fields are left untouched; present fields are written.
    Engine:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        secret:
          type: string
          description: >-
            secret is populated only in CreateEngine and RotateEngineSecret
            responses;
             it is always empty in LoadEngine / LoadEngines responses.
        createdTime:
          type: integer
          description: >-
            createdTime is epoch seconds (int32 so it serializes as a JSON
            number).
          format: int32
      description: >-
        Engine is the management-facing representation of an engine. It
        deliberately
         exposes only externally relevant fields; EngineService internal fields (row
         version, projectId, last-sync time, reported image/content versions) are omitted.
    ExpireUserPasswordRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
      required:
        - identifier
    ExportFlowLocalizationRequest:
      type: object
      properties:
        flowId:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - flowId
    ExportFlowLocalizationResponse:
      type: object
      properties:
        overrides:
          $ref: '#/components/schemas/FlowLocalizationOverrides'
    ExportMessagingLocalizationRequest:
      type: object
      properties: {}
      required:
        - templateId
    ExportMessagingLocalizationResponse:
      type: object
      properties:
        overrides:
          $ref: '#/components/schemas/TemplateLocalizationOverrides'
    ExportSnapshotRequest:
      type: object
      properties:
        format:
          type: string
    ExportSnapshotResponse:
      type: object
      properties:
        files:
          type: object
    ExternalAuthUserMappingItem:
      type: object
      properties:
        externalKey:
          type: string
          minLength: 1
          maxLength: 254
        descopeKey:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - externalKey
        - descopeKey
    FGACacheAPIMetrics:
      type: object
      properties:
        api:
          type: string
          minLength: 1
          maxLength: 254
        hitCount:
          type: string
          format: int64
        missCount:
          type: string
          format: int64
        totalCalls:
          type: string
          format: int64
        avgHitCandidates:
          type: number
          format: double
        avgHitFiltered:
          type: number
          format: double
        avgResultSize:
          type: number
          format: double
        avgDurationMs:
          type: string
          format: int64
        minDurationMs:
          type: string
          format: int64
        maxDurationMs:
          type: string
          format: int64
        avgDurationHitMs:
          type: string
          format: int64
        minDurationHitMs:
          type: string
          format: int64
        maxDurationHitMs:
          type: string
          format: int64
        avgDurationMissMs:
          type: string
          format: int64
        minDurationMissMs:
          type: string
          format: int64
        maxDurationMissMs:
          type: string
          format: int64
      required:
        - api
    Family:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        disabled:
          type: boolean
        photo:
          type: string
        createdTime:
          type: integer
          format: int32
    FetchLatestOutboundAppTenantTokenRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
          minLength: 1
        options:
          $ref: '#/components/schemas/FetchOutboundAppTokenOptions'
        externalIdentifier:
          type: string
          maxLength: 254
      required:
        - appId
        - tenantId
    FetchLatestOutboundAppTenantTokenResponse:
      type: object
      properties:
        token:
          $ref: '#/components/schemas/OutboundAppToken'
    FetchLatestOutboundAppUserTokenRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        userId:
          type: string
          maxLength: 254
        tenantId:
          type: string
        options:
          $ref: '#/components/schemas/FetchOutboundAppTokenOptions'
        externalIdentifier:
          type: string
          maxLength: 254
      required:
        - appId
    FetchLatestOutboundAppUserTokenResponse:
      type: object
      properties:
        token:
          $ref: '#/components/schemas/OutboundAppToken'
    FetchOutboundAppTenantTokenRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
          minLength: 1
        scopes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        options:
          $ref: '#/components/schemas/FetchOutboundAppTokenOptions'
        externalIdentifier:
          type: string
          maxLength: 254
      required:
        - appId
        - tenantId
    FetchOutboundAppTenantTokenResponse:
      type: object
      properties:
        token:
          $ref: '#/components/schemas/OutboundAppToken'
    FetchOutboundAppTokenOptions:
      type: object
      properties:
        withRefreshToken:
          type: boolean
        forceRefresh:
          type: boolean
    FetchOutboundAppUserTokenRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        userId:
          type: string
          maxLength: 254
        scopes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        options:
          $ref: '#/components/schemas/FetchOutboundAppTokenOptions'
        tenantId:
          type: string
        externalIdentifier:
          type: string
          maxLength: 254
      required:
        - appId
    FetchOutboundAppUserTokenResponse:
      type: object
      properties:
        token:
          $ref: '#/components/schemas/OutboundAppToken'
    Filter:
      type: object
      properties:
        supported:
          type: boolean
        maxResults:
          type: integer
          format: int32
    GenerateClientAssertionJWTRequest:
      type: object
      properties:
        issuer:
          type: string
          minLength: 1
          maxLength: 1000
        subject:
          type: string
          minLength: 1
          maxLength: 1000
        audience:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 1000
        expiresIn:
          type: integer
          format: int32
        flattenAudience:
          type: boolean
        algorithm:
          type: string
      required:
        - issuer
        - subject
    GenerateJWTEncryptionKeyRequest:
      type: object
      properties:
        algorithm:
          type: string
        forceRotation:
          type: boolean
    GenerateJWTEncryptionKeyResponse:
      type: object
      properties:
        kid:
          type: string
        key:
          type: string
    GenerateJWTSignInRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        stepup:
          type: boolean
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        mfa:
          type: boolean
        ssoAppId:
          type: string
        revokeOtherSessions:
          type: boolean
        jwt:
          type: string
        refreshDuration:
          type: integer
          format: int32
        selectedTenantId:
          type: string
        ignoreEnforceSSO:
          type: boolean
          description: >-
            Keep the tenants the user already belongs to that enforce SSO. They
            are left out of the JWT by default, because this endpoint does not
            authenticate through SSO. Applies to existing memberships only: a
            new user whose email domain would self-provision into a tenant that
            enforces SSO is still refused.
      required:
        - loginId
    GenerateSimpleJWTResponse:
      type: object
      properties:
        jwt:
          type: string
    GenerateTenantAdminLinkRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        expireTime:
          type: string
          format: int64
        email:
          type: string
        ssoId:
          type: string
          maxLength: 254
        actorId:
          type: string
          description: >-
            Optional: recorded as the audit actor for actions performed inside
            the SSO Setup Suite
             (instead of the temporary user). Used as-is for audit attribution and not validated.
          maxLength: 254
      required:
        - tenantId
    GenerateTenantAdminLinkResponse:
      type: object
      properties:
        adminSSOConfigurationLink:
          type: string
    GetAllListsResponse:
      type: object
      properties:
        lists:
          type: array
          items:
            $ref: '#/components/schemas/List'
    GetCloneProjectProcessResponse:
      type: object
      properties:
        projectId:
          type: string
        projectName:
          type: string
        error:
          type: string
    GetDescoperResponse:
      type: object
      properties:
        descoper:
          $ref: '#/components/schemas/Descoper'
    GetFamilySettingsResponse:
      type: object
      properties:
        enabled:
          type: boolean
        maxFamilyMembers:
          type: integer
          format: int32
        allowMultipleFamiliesUsers:
          type: boolean
    GetJWTEncryptionConfigResponse:
      type: object
      properties:
        config:
          $ref: '#/components/schemas/JWTEncryptionConfig'
    GetLicenseResponse:
      type: object
      properties:
        rateLimitTier:
          type: string
    GetListByNameResponse:
      type: object
      properties:
        list:
          $ref: '#/components/schemas/List'
    GetListResponse:
      type: object
      properties:
        list:
          $ref: '#/components/schemas/List'
    GetManagementKeyResponse:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/ManagementKey'
    GetMcpServerClientSecretRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        mcpServerId:
          type: string
          minLength: 1
      required:
        - id
        - mcpServerId
    GetMcpServerClientSecretResponse:
      type: object
      properties:
        cleartext:
          type: string
    GetPasswordSettingsResponse:
      type: object
      properties:
        minLength:
          type: integer
          format: int32
        lowercase:
          type: boolean
        uppercase:
          type: boolean
        number:
          type: boolean
        nonAlphanumeric:
          type: boolean
        expiration:
          type: boolean
        expirationWeeks:
          type: integer
          format: int32
        reuse:
          type: boolean
        reuseAmount:
          type: integer
          format: int32
        lock:
          type: boolean
        lockAttempts:
          type: integer
          format: int32
        tenantId:
          type: string
        enabled:
          type: boolean
        tempLock:
          type: boolean
        tempLockAttempts:
          type: integer
          format: int32
        tempLockDuration:
          type: integer
          format: int32
        enablePasswordStrength:
          type: boolean
        passwordStrengthScore:
          type: integer
          format: int32
        anyLetter:
          type: boolean
        disallowedCharacters:
          type: string
        disallowEmailMatch:
          type: boolean
    GetSSOApplicationSecretResponse:
      type: object
      properties:
        cleartext:
          type: string
    GetSSOSettingsResponse:
      type: object
      properties:
        tenantId:
          type: string
        idpEntityId:
          type: string
        idpSSOUrl:
          type: string
        idpCertificate:
          type: string
        idpMetadataUrl:
          type: string
        spEntityId:
          type: string
        spACSUrl:
          type: string
        spCertificate:
          type: string
        userMapping:
          $ref: '#/components/schemas/UserMapping'
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/GroupsMapping'
        redirectUrl:
          type: string
        domains:
          type: array
          items:
            type: string
        domain:
          type: string
          description: Deprecated - use domains instead
      description: deprecated
    GetScopeClaimMappingResponse:
      type: object
      properties:
        mappings:
          type: array
          items:
            $ref: '#/components/schemas/ScopeClaimMappingEntry'
          description: >-
            Ordered list of scope→claims entries. When two entries set the same
            claim
             name, the entry appearing later in the list wins.
    GetSubTenantRolesResponse:
      type: object
      properties:
        roles:
          type: array
          items:
            $ref: '#/components/schemas/TenantRoles'
    GetTenantAdminLinkSSOForAuthenticateUsersRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
      required:
        - tenantId
    GetTenantAdminLinksSSOForAuthenticateUsersRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      required:
        - tenantId
    GetTenantAdminLinksSSOForAuthenticateUsersResponse:
      type: object
      properties:
        defaultLink:
          type: string
        ssoIdToLink:
          type: object
          additionalProperties:
            type: string
        ssoIdToAuthenticationOnly:
          type: object
          additionalProperties:
            type: boolean
          description: >-
            Which of those configurations verify identity only. Reported here
            rather than on the tenant's
             configuration listing because the classification lives on the settings rows, and that listing is
             a multi-tenant path that never loads them. Keyed the same as ssoIdToLink, with the tenant's
             default configuration under the reserved default id. Absent means not classified.
    GetTenantSettingsResponse:
      type: object
      properties:
        domains:
          type: array
          items:
            type: string
        selfProvisioningDomains:
          type: array
          items:
            type: string
        authType:
          type: string
        enabled:
          type: boolean
        refreshTokenExpiration:
          type: integer
          format: int32
        refreshTokenExpirationUnit:
          type: string
        sessionTokenExpiration:
          type: integer
          format: int32
        sessionTokenExpirationUnit:
          type: string
        stepupTokenExpiration:
          type: integer
          format: int32
        stepupTokenExpirationUnit:
          type: string
        enableInactivity:
          type: boolean
        inactivityTime:
          type: integer
          format: int32
        inactivityTimeUnit:
          type: string
        JITDisabled:
          type: boolean
        ssoSetupSuiteSettings:
          $ref: '#/components/schemas/SSOSetupSuiteSettings'
    GetThirdPartyApplicationSecretResponse:
      type: object
      properties:
        cleartext:
          type: string
    GetUserAppRolesRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        ssoAppIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      required:
        - identifier
    GetUserAppRolesResponse:
      type: object
      properties:
        assignments:
          type: array
          items:
            $ref: '#/components/schemas/UserAppRolesAssignment'
    GetUserExportResponse:
      type: object
      properties:
        status:
          type: string
        tenantId:
          type: string
        error:
          type: string
        userCount:
          type: string
          format: int64
        downloadUrl:
          type: string
        createdTime:
          type: integer
          format: int32
        completedTime:
          type: integer
          format: int32
    Group:
      type: object
      properties:
        id:
          type: string
        display:
          type: string
        members:
          type: array
          items:
            $ref: '#/components/schemas/GroupMember'
        source:
          type: string
        ssoId:
          type: string
          description: >-
            The SSO configuration (ssoId) the group came from: the SSO config
            bound to the SCIM token that
             created it, or the SSO config used at the JIT login that persisted it. Groups from the tenant's
             default SSO configuration (and groups created before origin stamping existed) report the
             reserved id "default_ssoid".
    GroupMember:
      type: object
      properties:
        loginId:
          type: string
        userId:
          type: string
        display:
          type: string
    GroupsMapping:
      type: object
      properties:
        role:
          $ref: '#/components/schemas/RoleItem'
        groups:
          type: array
          items:
            type: string
    ImpersonateFamilyDependentRequest:
      type: object
      properties:
        impersonatorUserIdOrLoginId:
          type: string
          description: >-
            the impersonator (acting family admin), by user ID or login ID; must
            be a member of the dependent's
             family and hold the family impersonate-dependents permission there
          minLength: 1
          maxLength: 100
        dependentLoginId:
          type: string
          description: the target dependent, by login ID
          minLength: 1
        selectedFamily:
          type: string
          description: >-
            optional family to scope the impersonated session to (stamped as the
            current-family claim); when set it
             must be the dependent's family. Omitted -> the impersonated session carries no current-family claim
          maxLength: 254
      required:
        - impersonatorUserIdOrLoginId
        - dependentLoginId
    ImpersonateRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        impersonatorId:
          type: string
          minLength: 1
          maxLength: 100
        validateConsent:
          type: boolean
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        selectedTenant:
          type: string
        refreshDuration:
          type: integer
          format: int32
        sessionCookieName:
          type: string
          maxLength: 64
      required:
        - loginId
        - impersonatorId
    ImportAccessKeyRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        expireTime:
          type: string
          format: int64
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        keyTenants:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.AssociatedTenant'
        userId:
          type: string
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        description:
          type: string
          maxLength: 100000
        permittedIps:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cleartext:
          type: string
          minLength: 1
          maxLength: 4096
      required:
        - name
        - cleartext
    ImportAccessKeysRequest:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/ImportAccessKeyRequest'
          minItems: 1
      required:
        - keys
    ImportAccessKeysResponse:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/AccessKey'
    ImportFlowLocalizationRequest:
      type: object
      properties:
        flowId:
          type: string
          minLength: 1
          maxLength: 254
        overrides:
          $ref: '#/components/schemas/FlowLocalizationOverrides'
      required:
        - flowId
        - overrides
    ImportFlowLocalizationResponse:
      type: object
      properties:
        overrides:
          $ref: '#/components/schemas/FlowLocalizationOverrides'
    ImportListsRequest:
      type: object
      properties:
        lists:
          type: array
          items:
            $ref: '#/components/schemas/List'
    ImportMessagingLocalizationRequest:
      type: object
      properties:
        overrides:
          $ref: '#/components/schemas/TemplateLocalizationOverrides'
      required:
        - templateId
        - overrides
    ImportMessagingLocalizationResponse:
      type: object
      properties:
        overrides:
          $ref: '#/components/schemas/TemplateLocalizationOverrides'
    ImportSnapshotRequest:
      type: object
      properties:
        files:
          type: object
        excludes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        inputSecrets:
          $ref: '#/components/schemas/SnapshotSecrets'
      required:
        - files
    ImportUserPasskeysRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        devices:
          type: array
          items:
            $ref: '#/components/schemas/WebauthnImportDevice'
          minItems: 1
      required:
        - loginId
        - devices
    ImportUsersFailure:
      type: object
      properties:
        user:
          type: string
        reason:
          type: string
    ImportUsersRequest:
      type: object
      properties:
        source:
          type: string
          minLength: 1
          maxLength: 254
        dryrun:
          type: boolean
        users:
          type: string
          format: bytes
        hashes:
          type: string
          format: bytes
      required:
        - source
    ImportUsersResponse:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/ResponseUser'
        failures:
          type: array
          items:
            $ref: '#/components/schemas/ImportUsersFailure'
    InfraCreateRequest:
      type: object
      properties:
        entity:
          type: string
          minLength: 1
        data:
          type: object
      required:
        - entity
        - data
    InfraResponse:
      type: object
      properties:
        entity:
          type: string
        id:
          type: string
        data:
          type: object
    InfraUpdateRequest:
      type: object
      properties:
        entity:
          type: string
          minLength: 1
        id:
          type: string
          minLength: 1
          maxLength: 254
        data:
          type: object
      required:
        - entity
        - id
        - data
    IssuerSettings:
      type: object
      properties:
        jwksUri:
          type: string
        signAlgorithm:
          type: string
        userInfoUri:
          type: string
        externalIdFieldName:
          type: string
          maxLength: 100
        jitDisabled:
          type: boolean
          description: >-
            Cross-App Access JIT provisioning, per trusted issuer. jitDisabled:
            only sign in an already-
             provisioned user, do not create. attributeMapping maps assertion claims to user fields. Group->role /
             FGA / default-role / priority mapping is read from the tenant's shared SSO config, NOT per issuer.
        attributeMapping:
          $ref: '#/components/schemas/AttributeMapping'
    JWTBearerSettings:
      type: object
      properties:
        issuers:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IssuerSettings'
        jwtBearerGrantTypeAudienceToUse:
          type: string
          maxLength: 100
        jwtBearerGrantTypeScopeToUse:
          type: string
          maxLength: 100
        jwtBearerGrantTypeCustomClaimsToUse:
          type: string
          maxLength: 100
    JWTEncryptionConfig:
      type: object
      properties:
        kid:
          type: string
        previousKeys:
          type: array
          items:
            $ref: '#/components/schemas/JWTEncryptionPreviousKey'
        keyCreatedAt:
          type: integer
          format: int32
    JWTEncryptionPreviousKey:
      type: object
      properties:
        kid:
          type: string
        retiredAt:
          type: integer
          format: int32
    managementv1.JWTResponse:
      type: object
      properties:
        jwt:
          type: string
    JWTTemplate:
      type: object
      properties:
        id:
          type: string
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 500
        template:
          type: object
        source:
          type: string
          maxLength: 254
        tags:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        authSchema:
          type: string
        type:
          type: string
          minLength: 1
        conformanceIssuer:
          type: boolean
        autoDCT:
          type: boolean
        enforceIssuer:
          type: boolean
        emptyClaimPolicy:
          type: string
        overrideSubject:
          type: boolean
        issuerType:
          type: string
        omitCustomClaimsFromDSR:
          type: boolean
        addJti:
          type: boolean
        excludePermissions:
          type: boolean
      required:
        - name
        - type
    JWTTemplateLibraryEntry:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 500
        template:
          type: object
        tags:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        authSchema:
          type: string
        type:
          type: string
          minLength: 1
        conformanceIssuer:
          type: boolean
        autoDCT:
          type: boolean
        enforceIssuer:
          type: boolean
        emptyClaimPolicy:
          type: string
        overrideSubject:
          type: boolean
        issuerType:
          type: string
        omitCustomClaimsFromDSR:
          type: boolean
        addJti:
          type: boolean
        excludePermissions:
          type: boolean
        experimental:
          type: boolean
        logoLight:
          type: string
        logoDark:
          type: string
      description: |-
        Library entry — read-only starter shipped by Descope. Mirrors the `key`
         fields of JWTTemplate plus library-only metadata.
      required:
        - id
        - name
        - type
    JwtTemplateResponse:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/JWTTemplate'
    JwtTemplateValidationIssue:
      type: object
      properties:
        field:
          type: string
        code:
          type: string
        message:
          type: string
        hint:
          type: string
      description: |-
        Single validation failure produced by ValidateJwtTemplate. `code` is a
         stable identifier callers (e.g. MCP agents) can pattern-match on.
    List:
      type: object
      properties:
        id:
          type: string
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 254
        type:
          type: string
        data:
          $ref: '#/components/schemas/google.protobuf.Value'
      description: Lists
      required:
        - name
    ListDescopersRequest:
      type: object
      properties: {}
    ListDescopersResponse:
      type: object
      properties:
        descopers:
          type: array
          items:
            $ref: '#/components/schemas/Descoper'
        total:
          type: integer
          format: int32
    ListFlowTemplatesResponse:
      type: object
      properties:
        templates:
          type: array
          items:
            $ref: '#/components/schemas/FlowTemplate'
        total:
          type: integer
          format: int32
    ListFlowsResponse:
      type: object
      properties:
        flows:
          type: array
          items:
            $ref: '#/components/schemas/Flow'
        total:
          type: integer
          format: int32
    ListJwtTemplateLibraryRequest:
      type: object
      properties: {}
    ListJwtTemplateLibraryResponse:
      type: object
      properties:
        entries:
          type: array
          items:
            $ref: '#/components/schemas/JWTTemplateLibraryEntry'
    ListJwtTemplatesRequest:
      type: object
      properties: {}
    ListJwtTemplatesResponse:
      type: object
      properties:
        templates:
          type: array
          items:
            $ref: '#/components/schemas/JWTTemplate'
    ListLogoutSessionsRangesResponse:
      type: object
      properties:
        ranges:
          type: array
          items:
            $ref: '#/components/schemas/SessionsLogoutResponse'
    ListProjectsRequest:
      type: object
      properties: {}
    ListProjectsResponse:
      type: object
      properties:
        projects:
          type: array
          items:
            $ref: '#/components/schemas/Project'
    ListTrustedDevicesForUsersRequest:
      type: object
      properties:
        identifiers:
          type: array
          items:
            type: string
            minLength: 1
          description: The users' login identifiers (external ID or ID).
          maxItems: 100
    ListTrustedDevicesForUsersResponse:
      type: object
      properties:
        devices:
          type: array
          items:
            $ref: '#/components/schemas/TrustedDevice'
    ListUserOutboundAppsWithValidUserTokenResponse:
      type: object
      properties:
        appIds:
          type: array
          items:
            type: string
    ListUserPasskeysRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
      required:
        - loginId
    ListUserPasskeysResponse:
      type: object
      properties:
        passkeys:
          type: array
          items:
            $ref: '#/components/schemas/UserPasskey'
    ListWidgetsResponse:
      type: object
      properties:
        widgets:
          type: array
          items:
            $ref: '#/components/schemas/Widget'
    LoadAllFamiliesResponse:
      type: object
      properties:
        families:
          type: array
          items:
            $ref: '#/components/schemas/Family'
    LoadAllMcpServersRequest:
      type: object
      properties: {}
    LoadAllMcpServersResponse:
      type: object
      properties:
        servers:
          type: array
          items:
            $ref: '#/components/schemas/McpServer'
        total:
          type: integer
          format: int32
    LoadAllSSOApplicationsResponse:
      type: object
      properties:
        apps:
          type: array
          items:
            $ref: '#/components/schemas/SSOApplication'
    LoadAllSSOSettingsResponse:
      type: object
      properties:
        SSOSettings:
          type: array
          items:
            $ref: '#/components/schemas/LoadSSOSettingsResponse'
    LoadAllSessionClassificationsResponse:
      type: object
      properties:
        classifications:
          type: array
          items:
            $ref: '#/components/schemas/SessionClassification'
    LoadAllTenantsResponse:
      type: object
      properties:
        tenants:
          type: array
          items:
            $ref: '#/components/schemas/Tenant'
    LoadAllThirdPartyApplicationsRequest:
      type: object
      properties:
        page:
          type: integer
          format: int32
        limit:
          type: integer
          format: int32
    LoadAllThirdPartyApplicationsResponse:
      type: object
      properties:
        apps:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplication'
        total:
          type: integer
          format: int32
    LoadAllThirdPartyApplicationsV2Response:
      type: object
      properties:
        apps:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationV2'
        total:
          type: integer
          format: int32
    LoadAllXAASettingsResponse:
      type: object
      properties:
        XAASettings:
          type: array
          items:
            $ref: '#/components/schemas/LoadXAASettingsResponse'
    LoadEngineResponse:
      type: object
      properties:
        engine:
          $ref: '#/components/schemas/Engine'
    LoadEnginesResponse:
      type: object
      properties:
        engines:
          type: array
          items:
            $ref: '#/components/schemas/Engine'
    LoadGroupMembersRequest:
      type: object
      properties:
        tenantId:
          type: string
        groupId:
          type: string
        ssoId:
          type: string
          description: >-
            Optional: return the group only if it came from this SSO
            configuration (ssoId). Use the
             reserved id "default_ssoid" for the tenant's default SSO configuration.
          maxLength: 254
    LoadGroupMembersResponse:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: '#/components/schemas/Group'
    LoadGroupsRequest:
      type: object
      properties:
        tenantId:
          type: string
        ssoId:
          type: string
          description: >-
            Optional: return only groups from this SSO configuration (ssoId).
            Empty returns all the
             tenant's groups. Use the reserved id "default_ssoid" for the tenant's default SSO configuration.
          maxLength: 254
    LoadGroupsResponse:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: '#/components/schemas/Group'
    LoadJwtTemplateLibraryEntryRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    LoadJwtTemplateLibraryEntryResponse:
      type: object
      properties:
        entry:
          $ref: '#/components/schemas/JWTTemplateLibraryEntry'
    LoadJwtTemplateRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    LoadJwtTemplateResponse:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/JWTTemplate'
    LoadMcpServerClientRequest:
      type: object
      properties:
        id:
          type: string
          maxLength: 10000
        clientId:
          type: string
          maxLength: 200
        mcpServerId:
          type: string
    LoadMcpServerClientResponse:
      type: object
      properties:
        client:
          $ref: '#/components/schemas/McpServerClient'
    LoadMcpServerRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    LoadMcpServerResponse:
      type: object
      properties:
        server:
          $ref: '#/components/schemas/McpServer'
    LoadMemberGroupsRequest:
      type: object
      properties:
        tenantId:
          type: string
        loginIds:
          type: array
          items:
            type: string
        userIds:
          type: array
          items:
            type: string
        ssoId:
          type: string
          description: >-
            Optional: return only groups from this SSO configuration (ssoId).
            Use the reserved id
             "default_ssoid" for the tenant's default SSO configuration.
          maxLength: 254
    LoadMemberGroupsResponse:
      type: object
      properties:
        groups:
          type: array
          items:
            $ref: '#/components/schemas/Group'
    LoadOutboundAppResponse:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/OutboundApp'
    LoadOutboundAppsResponse:
      type: object
      properties:
        apps:
          type: array
          items:
            $ref: '#/components/schemas/OutboundApp'
    LoadOutboundSCIMConfigurationResponse:
      type: object
      properties:
        configuration:
          $ref: '#/components/schemas/OutboundSCIMConfiguration'
    LoadPermissionsResponse:
      type: object
      properties:
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/Permission'
    LoadRolesResponse:
      type: object
      properties:
        roles:
          type: array
          items:
            $ref: '#/components/schemas/Role'
    LoadSCIMAccessKeysResponse:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/SCIMAccessKey'
    LoadSSOApplicationResponse:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/SSOApplication'
    LoadSSOSettingsResponse:
      type: object
      properties:
        tenant:
          $ref: '#/components/schemas/Tenant'
        saml:
          $ref: '#/components/schemas/SamlSettingsResponse'
        oidc:
          $ref: '#/components/schemas/SSOOIDCSettings'
        ssoId:
          type: string
        name:
          type: string
          description: >-
            Display name of the SSO configuration, as given when it was created.
            Empty for the tenant's default SSO configuration, which has no
            display name.
        authenticationOnly:
          type: boolean
          description: >-
            Verify identity only: logins through this SSO configuration do not
            create, update or sign in a user.
        jitDisabled:
          type: boolean
          description: >-
            JIT provisioning off: logins through this SSO configuration sign in
            only users who already exist.
    LoadTenantResponse:
      type: object
      properties:
        tenant:
          $ref: '#/components/schemas/Tenant'
    LoadThirdPartyApplicationResponse:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/ThirdPartyApplication'
    LoadThirdPartyApplicationV2Response:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/ThirdPartyApplicationV2'
    LoadUsersRequest:
      type: object
      properties:
        userIds:
          type: array
          items:
            type: string
          description: >-
            max len will be validated in app level, so we can control it with an
            env var
        includeInvalidUsers:
          type: boolean
    LoadXAASettingsResponse:
      type: object
      properties:
        ssoId:
          type: string
        enabled:
          type: boolean
        settings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            Trusted-issuer + grant configuration for Cross-App Access (ID-JAG)
            on this SSO configuration.
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/GroupsMapping'
          description: >-
            Config-level shared mapping for this SSO configuration. Role
            references are returned by id and name
             (mirrors LoadSSOSettingsResponse.saml.groupsMapping / defaultSSORoles).
        defaultSSORoles:
          type: array
          items:
            type: string
        fgaMappings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ReBACGroupsMapping'
        groupsPriority:
          type: array
          items:
            type: string
        groupPriorityEnabled:
          type: boolean
        allowOverrideRoles:
          type: boolean
        providerID:
          type: string
          description: >-
            Selected IdP provider template id for this XAA configuration
            (mirrors SamlSettingsResponse.providerID).
        audience:
          type: string
          description: >-
            Read-only: the project-level audience a requesting application must
            present in its ID-JAG token.
             It carries no tenant segment - it equals the issuer this project's discovery document publishes,
             because several IdPs cannot serve an audience that differs from the configured issuer. The tenant
             is named by the assertion's aud_tenant claim instead, so the IdP must be configured to send the
             tenant id there. Follows the project custom domain when one is configured.
    MagicLinkSettings:
      type: object
      properties:
        enabled:
          type: boolean
        expirationTime:
          type: integer
          format: int32
        expirationTimeUnit:
          type: string
        redirectUrl:
          type: string
          maxLength: 1024
        emailConnectorId:
          type: string
          maxLength: 254
        textConnectorId:
          type: string
          maxLength: 254
        emailTemplateId:
          type: string
          description: >-
            Active template selection by id. Absent = keep the current
            selection; "" = reset to the
             built-in System template; a template id = select that stored template.
          maxLength: 254
        textTemplateId:
          type: string
          maxLength: 254
        externalEmailTemplateId:
          type: string
          maxLength: 254
      description: >-
        Magic link (Terraform: descope_magiclink_settings). Carries the same
        representation used in
         exported snapshots, and the Get response and Set request are the same message.
         Patch semantics: omitted fields are left untouched; present fields are written.
    ManagementKey:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        status:
          type: string
          minLength: 1
        createdTime:
          type: integer
          format: int32
        expireTime:
          type: integer
          format: int32
        permittedIps:
          type: array
          items:
            type: string
        reBac:
          $ref: '#/components/schemas/ManagementKeyReBac'
        version:
          type: integer
          format: int32
        authzVersion:
          type: integer
          format: int32
        trustedIssuer:
          $ref: '#/components/schemas/WIFTrustedIssuer'
      required:
        - name
        - status
    ManagementKeyProjectRole:
      type: object
      properties:
        projectIds:
          type: array
          items:
            type: string
          maxItems: 10000
        roles:
          type: array
          items:
            type: string
          maxItems: 100
    ManagementKeyReBac:
      type: object
      properties:
        companyRoles:
          type: array
          items:
            type: string
          maxItems: 100
        projectRoles:
          type: array
          items:
            $ref: '#/components/schemas/ManagementKeyProjectRole'
          maxItems: 100
        tagRoles:
          type: array
          items:
            $ref: '#/components/schemas/ManagementKeyTagRole'
          maxItems: 100
      description: >-
        Only one kind of roles is granted: company roles, otherwise project
        roles, otherwise tag roles. Every role is granted
         on every listed project or tag, up to 20000 grants in total.
    ManagementKeyTagRole:
      type: object
      properties:
        tags:
          type: array
          items:
            type: string
          maxItems: 1000
        roles:
          type: array
          items:
            type: string
          maxItems: 100
      description: Management key
    McpServer:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        dynamicRegistration:
          $ref: '#/components/schemas/managementv1.McpServerDynamicClientRegistration'
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        approvedScopes:
          $ref: '#/components/schemas/DynamicClientRegistrationApprovedScopes'
        approvedCallbackUrls:
          type: array
          items:
            type: string
        loginPageURL:
          type: string
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        tags:
          type: array
          items:
            type: string
        logo:
          type: string
          maxLength: 2097152
        cimdSettings:
          $ref: '#/components/schemas/CIMDSettings'
        skipConsentScreen:
          type: boolean
        forceAddAllAuthorizationInfo:
          type: boolean
        wellKnownCustomization:
          allOf:
            - $ref: '#/components/schemas/WellKnownCustomization'
          description: >-
            Adjustments to this MCP server's discovery document. Omit it on
            update to keep the stored value
      description: Keep this message synchronized with the matching one in ProjectService
      required:
        - id
        - name
    McpServerClient:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        name:
          type: string
          minLength: 1
          maxLength: 254
        clientId:
          type: string
          minLength: 1
          maxLength: 10000
        mcpServerId:
          type: string
          minLength: 1
        approvedCallbackUrls:
          type: array
          items:
            type: string
        scopes:
          type: array
          items:
            type: string
            maxLength: 100
        tags:
          type: array
          items:
            type: string
            maxLength: 100
        logo:
          type: string
          maxLength: 2097152
        registrationType:
          type: string
          maxLength: 100
        status:
          type: string
        forceAddAllAuthorizationInfo:
          type: boolean
        allowedTenants:
          type: array
          items:
            type: string
      required:
        - id
        - name
        - clientId
        - mcpServerId
    managementv1.McpServerDynamicClientRegistration:
      type: object
      properties:
        enabled:
          type: boolean
        disableApprovedScopesAsDefault:
          type: boolean
        flowId:
          type: string
          maxLength: 1000
      description: Keep this message synchronized with the matching one in ProjectService
    MessagingTemplate:
      type: object
      properties:
        type:
          type: string
          minLength: 1
        method:
          type: string
          minLength: 1
          maxLength: 254
        id:
          type: string
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        body:
          type: string
          maxLength: 1048576
        subject:
          type: string
          description: >-
            The fields below apply to email templates only: requests that carry
            them for other template
             types are rejected, and responses omit them. Like the fields above they're written as given
             on updates, so an omitted field is cleared rather than preserved.
          maxLength: 1024
        bodyPlainText:
          type: string
          maxLength: 1048576
        useBodyPlainText:
          type: boolean
      description: >-
        A custom message template for an auth method (Terraform:
        descope_email_template,
         descope_text_template, descope_voice_template). Templates are addressed by their
         server-generated id within the bucket named by type and method. The subject, bodyPlainText
         and useBodyPlainText fields apply to email templates only and are rejected on other types.
         The translation configuration is owned by the console and preserved across updates; the
         active selection is managed on the auth method settings (e.g.
         MagicLinkSettings.emailTemplateId), not here.
      required:
        - type
        - method
        - name
    MintWorkloadTokenRequest:
      type: object
      properties:
        identityId:
          type: string
          description: >-
            Login ID of the durable identity (e.g. an agent-class user) the
            token is minted for.
          minLength: 1
        audience:
          type: string
          description: >-
            Caller-supplied audience. Checked against the allowlist when the
            calling credential has a
             minting policy. Descope project and application IDs are always rejected.
          minLength: 1
          maxLength: 1000
        claims:
          type: object
          description: >-
            Additional claims to embed in the token. Claim keys reserved by the
            JWT specification
             (including sub, iss, aud, exp, iat, nbf and jti) or reserved for Descope's own claims are
             rejected. Every remaining claim key may contain only letters, digits and _ . : / -.
        ttlSeconds:
          type: integer
          description: >-
            Requested token lifetime in seconds, capped by the policy
            maxTtlSeconds, or by the default
             cap when there is no policy. Asking for more is rejected rather than clamped.
          format: int32
      required:
        - identityId
        - audience
        - ttlSeconds
    MintWorkloadTokenResponse:
      type: object
      properties:
        jwt:
          type: string
          description: >-
            Session-only JWT. No refresh token is issued and no durable
            per-instance record is created.
    NewSSOSettingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          maxLength: 254
        displayName:
          type: string
          minLength: 1
      required:
        - tenantId
        - displayName
    OAuthProvider:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        enabled:
          type: boolean
        useSelfAccount:
          type: boolean
          description: >-
            Whether logins use the caller's own OAuth app credentials rather
            than Descope's shared app; always true for custom providers
        clientId:
          type: string
          maxLength: 254
        clientSecret:
          type: string
          description: >-
            Write-only. Read returns PLACEHOLDER_VALUE when set.
            PLACEHOLDER_VALUE=keep, ""=clear (rejected when required), value=set
          maxLength: 4096
        callbackDomain:
          type: string
          maxLength: 254
        redirectUrl:
          type: string
        scopes:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            JSON arrays of strings; Value makes empty and absent distinct:
            null/absent = keep, [] = clear, values = set. Validated in the
            service
        prompts:
          $ref: '#/components/schemas/google.protobuf.Value'
        allowedGrantTypes:
          $ref: '#/components/schemas/google.protobuf.Value'
        manageProviderTokens:
          type: boolean
        trustProvidedEmails:
          type: boolean
        jitUpdatesDisabled:
          type: boolean
        useNonce:
          type: boolean
          description: >-
            Has no effect on the authorization code flow. Set
            strictOIDCValidation to send and verify a nonce.
        useClientAssertion:
          type: boolean
        description:
          type: string
          description: >-
            Configuration fields for custom providers; Descope-managed and
            rejected on system provider writes
          maxLength: 254
        logo:
          type: string
          maxLength: 2097152
        issuer:
          type: string
        authUrl:
          type: string
        tokenUrl:
          type: string
        userDataUrl:
          type: string
        jwksUrl:
          type: string
        userDataClaimsMapping:
          allOf:
            - $ref: '#/components/schemas/OAuthUserDataClaimsMapping'
          description: Replaced wholesale when present, left untouched when absent
        nativeClientId:
          type: string
          description: Native (mobile) client credentials
          maxLength: 254
        nativeClientSecret:
          type: string
          description: >-
            Write-only. Read returns PLACEHOLDER_VALUE when set.
            PLACEHOLDER_VALUE=keep, ""=clear (rejected when required), value=set
          maxLength: 4096
        appleKeyGenerator:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            JSON objects with the AppleKeyGenerator fields (keyId, teamId,
            privateKey); Value makes empty and absent
             distinct: null/absent = keep, {} = clear, object = set. Only valid for the apple system provider. Validated in the service
        nativeAppleKeyGenerator:
          $ref: '#/components/schemas/google.protobuf.Value'
        clientAssertionSigningAlg:
          type: string
          description: >-
            Algorithm signing the private_key_jwt client assertion when
            useClientAssertion is set. RS256 (default when empty) or RS512; the
            IdP must be registered with the same algorithm
        strictOIDCValidation:
          type: boolean
          description: >-
            Sends a nonce on the authorization code flow and requires it in the
            ID token, and rejects an ID token whose audience is not the client
            ID. Requires jwksUrl and issuer so the ID token is verified. Native
            and One Tap logins are not affected
        signAlgorithm:
          type: string
          description: >-
            Algorithm the provider signs its ID tokens with, verified against
            the keys at jwksUrl. Required when jwksUrl is set, so
            strictOIDCValidation needs it too. Descope-managed and rejected on
            system provider writes
        authUrlAdditionalParams:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            JSON object of static string parameters added to the authorization
            request, such as {"acr_values": "AAL3_ANY"} for NHS CIS2 or {"vtr":
            "[\"P9.Cp.Cd\"]"} for NHS login. Value makes empty and absent
            distinct: null/absent = keep, {} = clear, object = replace.
            Validated in the service
      description: >-
        Single OAuth provider (Terraform: descope_oauth_provider). The id is the
        provider identity: the lowercase
         name of a system provider ("google"), or the caller-chosen key of a custom provider. Patch semantics:
         omitted fields are left untouched; present fields are written. The Get response uses the same message with
         all fields populated, except that Descope-managed fields of system providers (description, logo, issuer,
         the connection endpoints and the claims mapping) are rejected on write and omitted on read.
      required:
        - id
    OAuthSettings:
      type: object
      properties:
        enabled:
          type: boolean
    OAuthUserDataClaimsMapping:
      type: object
      properties:
        loginId:
          type: string
        username:
          type: string
          maxLength: 254
        name:
          type: string
          maxLength: 254
        email:
          type: string
          maxLength: 254
        verifiedEmail:
          type: string
          maxLength: 254
        verifiedPhone:
          type: string
          maxLength: 254
        picture:
          type: string
          maxLength: 254
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
        customAttributes:
          type: object
          additionalProperties:
            type: string
        group:
          type: string
          maxLength: 254
      description: >-
        Note that this is used both in SSO settings and in OAuth settings
        import/export,
         make sure not to change any fields which might break backwards compatibility with
         existing exported project data
    OTPSettings:
      type: object
      properties:
        enabled:
          type: boolean
        domain:
          type: string
          maxLength: 253
        expirationTime:
          type: integer
          format: int32
        expirationTimeUnit:
          type: string
        emailConnectorId:
          type: string
          maxLength: 254
        textConnectorId:
          type: string
          maxLength: 254
        voiceConnectorId:
          type: string
          maxLength: 254
        emailTemplateId:
          type: string
          description: >-
            Active template selection by id. Absent = keep the current
            selection; "" = reset to the
             built-in System template; a template id = select that stored template.
          maxLength: 254
        textTemplateId:
          type: string
          maxLength: 254
        voiceTemplateId:
          type: string
          maxLength: 254
        externalEmailTemplateId:
          type: string
          maxLength: 254
      description: >-
        One-time passcode (Terraform: descope_otp_settings). Carries the same
        representation used in
         exported snapshots, and the Get response and Set request are the same message.
         Patch semantics: omitted fields are left untouched; present fields are written.
    OutboundApp:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 254
        clientId:
          type: string
          maxLength: 1000
        logo:
          type: string
        discoveryUrl:
          type: string
          maxLength: 254
        authorizationUrl:
          type: string
          maxLength: 254
        authorizationUrlParams:
          type: array
          items:
            $ref: '#/components/schemas/URLParam'
        tokenUrl:
          type: string
          maxLength: 254
        tokenUrlParams:
          type: array
          items:
            $ref: '#/components/schemas/URLParam'
        revocationUrl:
          type: string
          maxLength: 254
        defaultScopes:
          type: array
          items:
            type: string
            maxLength: 254
        defaultRedirectUrl:
          type: string
        callbackDomain:
          type: string
          maxLength: 254
        pkce:
          type: boolean
        accessType:
          type: string
          maxLength: 254
        prompt:
          type: array
          items:
            type: string
            minLength: 1
        clientSecret:
          type: string
          maxLength: 1000
        appType:
          type: string
        useDcr:
          type: boolean
        dcrUrl:
          type: string
        tenantId:
          type: string
        tokenEndpointAuthMethod:
          type: string
          description: >-
            Token endpoint client authentication method. Empty or
            "client_secret" sends clientSecret as the client secret;
            "private_key_jwt" signs an RFC 7523 client assertion with the
            project signing key published in the project JWKS. Omitted on update
            keeps the stored value.
        tokenEndpointAuthSigningAlg:
          type: string
          description: >-
            Client assertion signing algorithm used with private_key_jwt. Empty
            means RS256. Ignored unless tokenEndpointAuthMethod is
            private_key_jwt. Omitted on update keeps the stored value.
        useNonce:
          type: boolean
          description: >-
            Send a nonce on the authorization request and require the token
            response to carry an id_token with the same nonce. Omitted on update
            keeps the stored value.
      required:
        - id
        - name
    OutboundAppToken:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        appId:
          type: string
          minLength: 1
          maxLength: 254
        userId:
          type: string
          minLength: 1
          maxLength: 254
        tokenSub:
          type: string
          minLength: 1
          maxLength: 254
        accessToken:
          type: string
          minLength: 1
          maxLength: 254
        accessTokenType:
          type: string
          minLength: 1
          maxLength: 254
        accessTokenExpiry:
          type: string
          format: uint64
        hasRefreshToken:
          type: boolean
        refreshToken:
          type: string
          minLength: 1
          maxLength: 254
        lastRefreshTime:
          type: string
          format: uint64
        lastRefreshError:
          type: string
          maxLength: 10000
        scopes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        tenantId:
          type: string
          minLength: 1
        grantedBy:
          type: string
          minLength: 1
          maxLength: 254
        externalIdentifier:
          type: string
          maxLength: 254
        refreshTokenExpiry:
          type: string
          format: uint64
      required:
        - id
        - appId
        - userId
        - tokenSub
        - accessToken
        - accessTokenType
        - refreshToken
        - tenantId
        - grantedBy
    OutboundSCIMConfiguration:
      type: object
      properties:
        appId:
          type: string
        configuration:
          type: object
        enabled:
          type: boolean
        lastExportTime:
          type: integer
          format: int32
        lastProcessingTime:
          type: integer
          format: int32
        failures:
          type: integer
          format: int32
        version:
          type: string
          format: int64
    PasskeySettings:
      type: object
      properties:
        enabled:
          type: boolean
        relyingPartyId:
          type: string
        name:
          type: string
          maxLength: 254
        androidFingerprints:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            JSON array of strings; Value makes empty and absent distinct:
            null/absent = keep, [] = clear, values = set. Validated in the
            service
      description: |-
        Passkey / WebAuthn (Terraform: descope_passkey_settings).
         Patch semantics: omitted fields are left untouched; present fields are written.
    PasswordSettings:
      type: object
      properties:
        enabled:
          type: boolean
        minLength:
          type: integer
          format: int32
        lowercase:
          type: boolean
        uppercase:
          type: boolean
        number:
          type: boolean
        nonAlphanumeric:
          type: boolean
        anyLetter:
          type: boolean
        disallowedCharacters:
          type: string
          maxLength: 1024
        disallowEmailMatch:
          type: boolean
        expiration:
          type: boolean
        expirationWeeks:
          type: integer
          format: int32
        reuse:
          type: boolean
        reuseAmount:
          type: integer
          format: int32
        lock:
          type: boolean
        lockAttempts:
          type: integer
          format: int32
        tempLock:
          type: boolean
        tempLockAttempts:
          type: integer
          format: int32
        tempLockDuration:
          type: integer
          format: int32
        enablePasswordStrength:
          type: boolean
        passwordStrengthScore:
          type: integer
          format: int32
        maskError:
          type: boolean
        emailConnectorId:
          type: string
          maxLength: 254
        emailTemplateId:
          type: string
          description: >-
            Active template selection by id. Absent = keep the current
            selection; "" = reset to the
             built-in System template; a template id = select that stored template. Note that the same
             stored templates serve both the magic link and enchanted link reset flavors.
          maxLength: 254
        externalEmailTemplateId:
          type: string
          maxLength: 254
        rolePolicies:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            Stricter complexity rules for users who hold specific roles, as a
            JSON array of policy objects. Each policy has a
             "roleNames" array with the names of project roles, and any of the complexity fields of these settings: "minLength",
             "lowercase", "uppercase", "number", "nonAlphanumeric", "anyLetter", "disallowedCharacters", "disallowEmailMatch",
             "enablePasswordStrength" and "passwordStrengthScore". For a user who holds any of the listed roles, at the project
             level or in one of their tenants, each rule is merged with these settings and the strictest value wins, so a
             policy can only make the password requirements stricter. The policies apply when a signed-in user sets or changes
             their own password. Value makes empty and absent distinct: null/absent = keep, [] = clear, values = set.
             Validated in the service
      description: >-
        Password (Terraform: descope_password_settings). Carries the same
        representation used in
         exported snapshots, and the Get response and Set request are the same message.
         Patch semantics: omitted fields are left untouched; present fields are written.
    PatchTenantRequest:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        selfProvisioningDomains:
          $ref: '#/components/schemas/google.protobuf.Value'
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        authType:
          type: string
          description: deprecated - authType should be set via ConfigureTenantSettings
        disabled:
          type: boolean
        enforceSSO:
          type: boolean
        enforceSSOExclusions:
          $ref: '#/components/schemas/google.protobuf.Value'
        federatedAppIds:
          $ref: '#/components/schemas/google.protobuf.Value'
        roleInheritance:
          type: string
        approvedDomains:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            The tenant's vanity hostname (e.g. surveys.example.com), unique
            across the project's tenants. Requests that reach the project
            through its trusted proxy on this hostname are bound to this tenant.
            One item for now
        enforceSSOExclusionPermissions:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            Permission names or IDs whose holders in the tenant may sign in
            without SSO while enforceSSO is on (break-glass accounts)
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for tenants returns error E111843 listing them: the request fails
            and nothing is saved. When false (default), those keys are ignored.
            An attribute declared in the last few seconds may still be ignored.
    PatchThirdPartyApplicationRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        name:
          type: string
        description:
          type: string
          maxLength: 100000
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        attributesScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        logoUrl:
          type: string
        jwtBearerSettings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            string backChannelLogoutUrl = 10 [(validate).string = {url: true,
            optional: true}];
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
          description: >-
            scopeClaimMapping replaces the stored mapping when provided; when
            absent the existing mapping is
             preserved. Consumed by PatchThirdPartyApplicationV2; v1 preserves the legacy attributesScopes.
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
          description: >-
            idJagTargetClients replaces the stored mapping when provided. An
            absent field preserves it, and
             so does an empty map: a protobuf map has no presence, so it reaches the service as nil after the
             gRPC hop. Clear the mapping through the full update, which always writes the field.
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions replaces the stored list when provided; absent
            preserves it.
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions replaces the stored list when provided;
            absent preserves it.
        forcePar:
          type: boolean
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        tags:
          type: array
          items:
            type: string
            maxLength: 100
          description: >-
            tags replace the app's labels when provided, matched by policy rules
            through client.tags conditions. Up to 100 tags, each up to 100
            bytes. An absent or empty list preserves the stored tags; clear them
            through the full update.
          maxItems: 100
      required:
        - id
    PatchThirdPartyApplicationV2Request:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        name:
          type: string
        description:
          type: string
          maxLength: 100000
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        logoUrl:
          type: string
        jwtBearerSettings:
          $ref: '#/components/schemas/JWTBearerSettings'
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
          description: >-
            scopeClaimMapping replaces the stored mapping when provided; when
            absent the existing mapping is
             preserved. Either way the legacy attributesScopes are cleared (v2 write-replace).
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
          description: >-
            idJagTargetClients replaces the stored mapping when provided. An
            absent field preserves it, and
             so does an empty map: a protobuf map has no presence, so it reaches the service as nil after the
             gRPC hop. Clear the mapping through the full update, which always writes the field.
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions replaces the stored list when provided; absent
            preserves it.
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions replaces the stored list when provided;
            absent preserves it.
        forcePar:
          type: boolean
        mtlsClientAuthMethods:
          allOf:
            - $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
          description: >-
            mtlsClientAuthMethods replaces the stored certificates when set;
            absent keeps them.
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        tags:
          type: array
          items:
            type: string
            maxLength: 100
          description: >-
            tags replace the app's labels when provided, matched by policy rules
            through client.tags conditions. Up to 100 tags, each up to 100
            bytes. An absent or empty list preserves the stored tags; clear them
            through the full update.
          maxItems: 100
      description: >-
        PatchThirdPartyApplicationV2Request mirrors
        PatchThirdPartyApplicationRequest (partial update:
         only set fields change) but drops the legacy attributesScopes entirely and exposes scopeClaimMapping.
         The v2 patch converges the app to the structured model — legacy attributesScopes are cleared.
      required:
        - id
    PatchUserBatchFailureResponse:
      type: object
      properties:
        failure:
          type: string
        user:
          $ref: '#/components/schemas/ResponseUser'
    PatchUserBatchRequest:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/PatchUserRequest'
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for users returns error E111843 listing them for every item in the
            batch: an item that sets one fails and the others are saved. When
            false (default), those keys are ignored. An attribute declared in
            the last few seconds may still be ignored.
    PatchUserBatchResponse:
      type: object
      properties:
        patchedUsers:
          type: array
          items:
            $ref: '#/components/schemas/ResponseUser'
        failedUsers:
          type: array
          items:
            $ref: '#/components/schemas/PatchUserBatchFailureResponse'
        additionalErrors:
          type: object
          additionalProperties:
            type: string
    PatchUserRequest:
      type: object
      properties:
        loginId:
          type: string
        email:
          type: string
        phone:
          type: string
        verifiedEmail:
          type: boolean
        verifiedPhone:
          type: boolean
        name:
          type: string
        roleNames:
          $ref: '#/components/schemas/PatchUserRoleNames'
        userTenants:
          $ref: '#/components/schemas/google.protobuf.Value'
        status:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        picture:
          type: string
        givenName:
          type: string
        middleName:
          type: string
        familyName:
          type: string
        ssoAppIds:
          $ref: '#/components/schemas/google.protobuf.Value'
        additionalIdentifiers:
          type: array
          items:
            type: string
        recoveryEmail:
          type: string
        recoveryPhone:
          type: string
        verifiedRecoveryEmail:
          type: boolean
        verifiedRecoveryPhone:
          type: boolean
        familyAssociations:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            absent/null means "don't touch families"; a list (even empty)
            replaces the full family membership.
             each AssociatedFamily entry carries its own roleNames and familyScopedAttributes
        sessionClassification:
          type: string
          description: >-
            The session classification to assign the user to, by name. Omit the
            field to leave the current
             assignment untouched, send an empty string to remove it, and send a name to assign that
             classification. A name that does not match an existing classification is rejected.
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for users returns error E111843 listing them: the request fails and
            nothing is saved. When false (default), those keys are ignored. An
            attribute declared in the last few seconds may still be ignored.
    Permission:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        systemDefault:
          type: boolean
        id:
          type: string
    Project:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        tag:
          type: string
        environment:
          type: string
        tags:
          type: array
          items:
            type: string
    ProjectOIDCSettings:
      type: object
      properties:
        dynamicRegistration:
          $ref: '#/components/schemas/managementv1.McpServerDynamicClientRegistration'
        cimdSettings:
          $ref: '#/components/schemas/CIMDSettings'
        dynamicRegistrationTemplateId:
          type: string
          description: >-
            The dynamic registration template registered clients take their
            defaults from. Empty clears it
        poppyDomains:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            Personal Agent Protocol 3.2: the domains whose poppy.json names this
            project as issuer. A JSON array of strings;
             Value makes empty and absent distinct: null/absent = keep, [] = clear, values = set
        errorRedirectUrl:
          type: string
          description: >-
            Where a failed authorization request (inbound or federated app)
            sends the end user instead of the Descope-hosted
             error page. Used only while it is on the project's approved domains, if any are set. Empty clears it
      description: >-
        Project OIDC settings: the dynamic client registration and Client ID
        Metadata Document settings project-issuer
         resources take, the Poppy domains, and the error redirect URL. Patch semantics: omitted fields are left untouched
         and present fields are written. The submessage fields are replace-units that fully replace the stored value when
         present. The Get and Update responses use the same message with all fields populated.
    ProjectSettings:
      type: object
      properties:
        appUrl:
          type: string
        customDomain:
          type: string
          maxLength: 253
        trustedDomains:
          type: string
          maxLength: 4096
        defaultNoSSOApps:
          type: boolean
        tenantUserIsolation:
          type: boolean
        testUserRegex:
          type: string
          maxLength: 254
          default: false
        testUserAllowFixedAuth:
          type: boolean
          default: false
        testUserFixedAuthToken:
          type: string
          maxLength: 6
          default: false
        testUserFixedAuthVerifierRegex:
          type: string
          maxLength: 254
          default: false
        allowAuthHostingIframeEmbedding:
          type: boolean
        disableAuthHosting:
          type: boolean
        appsCustomDomain:
          type: string
          description: >-
            The custom domain federated and inbound app URLs are built on: the
            hostname of customDomain or of one of the
             project's other custom domains. Empty means customDomain.
          maxLength: 253
        userTemplateId:
          type: string
          maxLength: 254
        keyTemplateId:
          type: string
          maxLength: 254
        refreshTokenExpiration:
          type: integer
          format: int32
        refreshTokenExpirationUnit:
          type: string
        rotateJwt:
          type: boolean
        sessionTokenExpiration:
          type: integer
          format: int32
        sessionTokenExpirationUnit:
          type: string
        stepupTokenExpiration:
          type: integer
          format: int32
        stepupTokenExpirationUnit:
          type: string
        trustedDeviceTokenExpiration:
          type: integer
          format: int32
        trustedDeviceTokenExpirationUnit:
          type: string
        keySessionTokenExpiration:
          type: integer
          format: int32
        keySessionTokenExpirationUnit:
          type: string
        enableInactivity:
          type: boolean
        inactivityTime:
          type: integer
          format: int32
        inactivityTimeUnit:
          type: string
        refreshTokenResponseMethod:
          type: string
        refreshTokenCookiePolicy:
          type: string
        refreshTokenCookieDomain:
          type: string
          maxLength: 253
        sessionTokenResponseMethod:
          type: string
        sessionTokenCookiePolicy:
          type: string
        sessionTokenCookieDomain:
          type: string
          maxLength: 253
        maxConcurrentSessions:
          type: integer
          description: >-
            Concurrent-session limit (NIST SP 800-53 AC-10). 0 means no limit.
            The upper bound is
             configured per deployment and enforced by projectservice, so it is deliberately not repeated
             here - a hardcoded ceiling would reject values the console accepts.
             Enforcement applies to sessions created after it is set; pre-existing sessions are untracked.
          format: int32
        sessionMigration:
          allOf:
            - $ref: '#/components/schemas/SessionMigrationSettings'
          description: >-
            session migration, fully replaced when present (not patched field by
            field)
        projectSelfProvisioning:
          type: boolean
        inviteUrl:
          type: string
        inviteExpireUser:
          type: boolean
        inviteExpirationTime:
          type: integer
          format: int32
        inviteExpirationTimeUnit:
          type: string
        inviteMagicLink:
          type: boolean
        inviteSendEmail:
          type: boolean
        inviteSendSms:
          type: boolean
        inviteEmailConnectorId:
          type: string
          maxLength: 254
        inviteEmailTemplateId:
          type: string
          description: >-
            Active template selection by id. Absent = keep the current
            selection; "" = reset to the
             built-in System template; a template id = select that stored template.
          maxLength: 254
        trustedProxySecret:
          type: string
          description: >-
            Secret a trusted reverse proxy sends in the x-descope-proxy-secret
            header, so its forwarded host
             headers are honored. At least 64 visible ASCII characters, no spaces
             (e.g. the output of `openssl rand -base64 48`). Write-only: reads return PLACEHOLDER_VALUE when set,
             "" clears it.
          maxLength: 256
      description: >-
        Project settings (Terraform: descope_project_settings /
        descope_session_settings /
         descope_session_migration / descope_invite_settings). Patch semantics: every field is
         optional, absent fields are left untouched, and present fields are set. The submessage
         fields are replace-units that fully replace the stored value when present. The Get
         response uses the same message with all fields populated.
    RecalculateSSOMappingsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          maxLength: 254
      required:
        - tenantId
    RecalculateSSOMappingsResponse:
      type: object
      properties: {}
    RegisterThirdPartyApplicationRequest:
      type: object
      properties:
        projectId:
          type: string
          description: Auto fill by proto from the requested URL
          minLength: 1
        client_name:
          type: string
          description: Spec fields
          minLength: 1
          maxLength: 254
        client_uri:
          type: string
        redirect_uris:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            repeated string redirectUris = 4 [json_name = "redirect_uris",
            (validate).repeated = {min_items: 1, items: {string: {url: true}}}];
        logo_uri:
          type: string
        scope:
          type: string
        token_endpoint_auth_method:
          type: string
          maxLength: 100
        grant_types:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
        response_types:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
        description:
          type: string
          description: Extension fields
          maxLength: 100000
        logo_content:
          type: string
          maxLength: 2097152
        permissions_scopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        attributes_scopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        consent_flow_id:
          type: string
          maxLength: 1000
        login_page_url:
          type: string
        jwtBearerSettings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            string backChannelLogoutUrl = 16 [(validate).string = {url: true,
            optional: true}];
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        connections_scopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        mcpServerId:
          type: string
          description: Auto fill by proto from the requested URL (only in agentic hub)
        defaultAudience:
          type: string
        skipConsentScreen:
          type: boolean
        useResources:
          type: boolean
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        resource:
          type: string
          description: >-
            Optional RFC 8707-style resource indicator. When it names an mcp
            resource, the registration follows
             that resource's issuer; most clients omit it, and the project settings apply.
          maxLength: 3000
      required:
        - client_name
    RegisterThirdPartyApplicationResponse:
      type: object
      properties:
        client_id:
          type: string
        client_name:
          type: string
        redirect_uris:
          type: array
          items:
            type: string
        client_id_issued_at:
          type: integer
          format: int32
        client_secret:
          type: string
        client_secret_expires_at:
          type: integer
          format: int32
        grant_types:
          type: array
          items:
            type: string
        response_types:
          type: array
          items:
            type: string
        token_endpoint_auth_method:
          type: string
        client_uri:
          type: string
        logo_uri:
          type: string
        description:
          type: string
        scope:
          type: string
        login_page_url:
          type: string
        jwt_bearer_settings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            string backChannelLogoutUrl = 15 [(validate).string = {url: true,
            optional: true}];
        session_settings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        audienceWhitelist:
          type: array
          items:
            type: string
    RemoveIPsFromListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        ips:
          type: array
          items:
            type: string
          minItems: 1
      required:
        - id
        - ips
    RemoveSSOSuffixFromExternalIdRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
      required:
        - tenantId
    RemoveTextsFromListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        texts:
          type: array
          items:
            type: string
          minItems: 1
      required:
        - id
        - texts
    RemoveUserAppRolesRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        ssoAppId:
          type: string
          minLength: 1
          maxLength: 254
        roleIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      required:
        - identifier
        - ssoAppId
    RemoveUserPasskeyRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        credentialId:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - loginId
        - credentialId
    RemoveUserPasskeysRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        credentialId:
          type: string
      required:
        - loginId
    RemoveUserRecoveryCodesRequest:
      type: object
      properties:
        loginId:
          type: string
          description: The user's login ID (external ID) or user ID
          minLength: 1
      required:
        - identifier
    RemoveUserTOTPRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
      required:
        - loginId
    ReorderAuthAccessRuleRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        position:
          type: integer
          format: int32
      required:
        - id
        - position
    ReorderTenantAuthAccessRuleRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        id:
          type: string
          minLength: 1
          maxLength: 254
        position:
          type: integer
          format: int32
      required:
        - id
        - position
    ReportFGACacheMetricsRequest:
      type: object
      properties:
        metrics:
          type: array
          items:
            $ref: '#/components/schemas/FGACacheAPIMetrics'
          maxItems: 100
    ResourceType:
      type: object
      properties:
        schemas:
          type: array
          items:
            type: string
        id:
          type: string
        name:
          type: string
        description:
          type: string
        endpoint:
          type: string
        schema:
          type: string
    RevokeAgenticIdentitiesRequest:
      type: object
      properties:
        userId:
          type: string
        clientId:
          type: string
          maxLength: 100
        resourceId:
          type: string
          maxLength: 100
        consentId:
          type: string
          maxLength: 100
      description: At least one of userId, clientId, resourceId or consentId must be set.
    RevokeAgenticIdentitiesResponse:
      type: object
      properties:
        revoked:
          type: integer
          format: int32
    RevokeSCIMAccessKeysRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          description: >-
            The SSO configuration to revoke. Omit it to target the tenant's
            default configuration - it
             does NOT mean "every configuration", so a tenant with several SSO configurations keeps
             provisioning through the keys of the ones not named here. Call LoadSCIMAccessKeys first to
             see which configurations hold keys.
          maxLength: 254
        revokeMode:
          enum:
            - SCIM_KEY_REVOKE_MODE_DELETE
            - SCIM_KEY_REVOKE_MODE_DEACTIVATE
          type: string
          description: |-
            How the keys are taken out of service.
             SCIM_KEY_REVOKE_MODE_DELETE (0, the default) deletes them permanently.
             SCIM_KEY_REVOKE_MODE_DEACTIVATE (1) disables them reversibly, so they can be restored
             later with Activate SCIM Access Keys.
          format: enum
      required:
        - tenantId
    RevokeSCIMAccessKeysResponse:
      type: object
      properties:
        revokedKeyIds:
          type: array
          items:
            type: string
    RevokeSSOApplicationSecretRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 100
      required:
        - appId
        - name
    RevokeSSOApplicationSecretResponse:
      type: object
      properties:
        secrets:
          type: array
          items:
            $ref: '#/components/schemas/ClientSecretMeta'
    RevokeTenantAdminLinkRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          maxLength: 254
      required:
        - tenantId
    RevokeThirdPartyApplicationSecretRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 100
      required:
        - id
        - name
    RevokeThirdPartyApplicationSecretResponse:
      type: object
      properties:
        secrets:
          type: array
          items:
            $ref: '#/components/schemas/ClientSecretMeta'
    Role:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        permissionNames:
          type: array
          items:
            type: string
        createdTime:
          type: integer
          format: int32
        tenantId:
          type: string
        default:
          type: boolean
        private:
          type: boolean
        id:
          type: string
    RoleItem:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
    RoleMapping:
      type: object
      properties:
        groups:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          minItems: 1
        roleName:
          type: string
          minLength: 1
      required:
        - groups
        - roleName
    RotateAccessKeyResponse:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/AccessKey'
        cleartext:
          type: string
    RotateEngineSecretRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    RotateEngineSecretResponse:
      type: object
      properties:
        secret:
          type: string
    RotateMcpServerClientSecretRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        mcpServerId:
          type: string
          minLength: 1
      required:
        - id
        - mcpServerId
    RotateMcpServerClientSecretResponse:
      type: object
      properties:
        cleartext:
          type: string
    RotateSCIMAccessKeyRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          description: >-
            The SSO configuration to rotate. Omit it to target the tenant's
            default configuration - it
             does NOT mean "every configuration", so a tenant with several SSO configurations keeps
             provisioning through the keys of the ones not named here.
          maxLength: 254
        name:
          type: string
          maxLength: 254
        description:
          type: string
          maxLength: 254
        expireTime:
          type: string
          format: int64
        revokeMode:
          enum:
            - SCIM_KEY_REVOKE_MODE_DELETE
            - SCIM_KEY_REVOKE_MODE_DEACTIVATE
          type: string
          description: |-
            How the keys being replaced are taken out of service.
             SCIM_KEY_REVOKE_MODE_DELETE (0, the default) deletes them permanently.
             SCIM_KEY_REVOKE_MODE_DEACTIVATE (1) disables them reversibly, so they can be restored
             later with Activate SCIM Access Keys.
          format: enum
      required:
        - tenantId
    RotateSSOApplicationSecretRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
      required:
        - id
    RotateSSOApplicationSecretResponse:
      type: object
      properties:
        cleartext:
          type: string
    RotateThirdPartyApplicationSecretRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
      required:
        - id
    RotateThirdPartyApplicationSecretResponse:
      type: object
      properties:
        cleartext:
          type: string
    SAMLIDPAttributeMappingInfo:
      type: object
      properties:
        name:
          type: string
          maxLength: 10000
        type:
          type: string
          maxLength: 100
        value:
          type: string
          maxLength: 10000
    SAMLIDPGroupsMappingInfo:
      type: object
      properties:
        name:
          type: string
          maxLength: 10000
        type:
          type: string
          maxLength: 100
        filterType:
          type: string
          maxLength: 100
        value:
          type: string
          maxLength: 10000
        roles:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPRoleGroupMappingInfo'
    SAMLIDPRoleGroupMappingInfo:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
    SCIMAccessKey:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/AccessKey'
        ssoId:
          type: string
          description: The SSO configuration this key provisions into.
    SCIMAccessKeyResponse:
      type: object
      properties:
        cleartext:
          type: string
          description: >-
            The bearer token to configure in the identity provider, in
            "<projectId>:<key>" form.
             Returned exactly once.
        key:
          $ref: '#/components/schemas/AccessKey'
        scimUrl:
          type: string
          description: >-
            The SCIM base URL to configure in the identity provider alongside
            the bearer token.
        revokedKeyIds:
          type: array
          items:
            type: string
          description: The keys revoked by this call, if any.
    SCIMGetGroupsResponse:
      type: object
      properties:
        totalResults:
          type: integer
          format: int32
        startIndex:
          type: integer
          format: int32
        itemsPerPage:
          type: integer
          format: int32
        schemas:
          type: array
          items:
            type: string
        Resources:
          type: array
          items:
            $ref: '#/components/schemas/SCIMGroupResponse'
        detail:
          type: string
        status:
          type: integer
          format: int32
    SCIMGetUserResponse:
      type: object
      properties:
        user:
          $ref: '#/components/schemas/SCIMGetUsersResource'
    SCIMGetUsersResource:
      type: object
      properties:
        schemas:
          type: array
          items:
            type: string
        id:
          type: string
        userName:
          type: string
        meta:
          $ref: '#/components/schemas/SCIMGetUsersResourceMeta'
        emails:
          type: array
          items:
            $ref: '#/components/schemas/SCIMUserEmail'
        name:
          $ref: '#/components/schemas/SCIMUserName'
        active:
          type: boolean
        displayName:
          type: string
        detail:
          type: string
        attributes:
          type: object
        status:
          type: integer
          format: int32
    SCIMGetUsersResourceMeta:
      type: object
      properties:
        created:
          type: object
        location:
          type: string
        lastModified:
          type: object
        resourceType:
          type: string
    SCIMGetUsersResponse:
      type: object
      properties:
        totalResults:
          type: integer
          format: int32
        startIndex:
          type: integer
          format: int32
        itemsPerPage:
          type: integer
          format: int32
        schemas:
          type: array
          items:
            type: string
        Resources:
          type: array
          items:
            $ref: '#/components/schemas/SCIMGetUsersResource'
        detail:
          type: string
        status:
          type: integer
          format: int32
    SCIMGroupMember:
      type: object
      properties:
        value:
          type: string
          maxLength: 254
        display:
          type: string
          maxLength: 254
    SCIMGroupRequest:
      type: object
      properties:
        groupId:
          type: string
        displayName:
          type: string
          maxLength: 254
        members:
          type: array
          items:
            $ref: '#/components/schemas/SCIMGroupMember'
        externalId:
          type: string
        excludedAttributes:
          type: string
    SCIMGroupResourceMeta:
      type: object
      properties:
        created:
          type: object
        location:
          type: string
        lastModified:
          type: object
        resourceType:
          type: string
    SCIMGroupResponse:
      type: object
      properties:
        displayName:
          type: string
        schemas:
          type: array
          items:
            type: string
        id:
          type: string
        members:
          type: array
          items:
            $ref: '#/components/schemas/SCIMGroupMember'
        meta:
          $ref: '#/components/schemas/SCIMGroupResourceMeta'
        externalId:
          type: string
        detail:
          type: string
        status:
          type: integer
          format: int32
    SCIMPatchOperation:
      type: object
      properties:
        op:
          type: string
        path:
          type: string
        valueString:
          type: string
          description: >-
            The following values are manipulated by the marshaler in
            httpgateway/marshaler.go
             in case of changing or adding new ones, need to edit the marshaler as well
        valueBoolean:
          type: boolean
        valueArray:
          type: array
          items:
            $ref: '#/components/schemas/SCIMPatchOperationValue'
        valueID:
          type: string
        valueDisplayName:
          type: string
        valueRaw:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            the value (string, number, boolean or array) with the JSON type the
            client sent, so mapped
             custom attributes are stored as sent
    SCIMPatchOperationValue:
      type: object
      properties:
        value:
          type: string
          description: >-
            The following values are manipulated by the marshaler in
            httpgateway/marshaler.go
             in case of changing or adding new ones, need to edit the marshaler as well
        display:
          type: string
        primary:
          type: boolean
    SCIMPatchRequest:
      type: object
      properties:
        userId:
          type: string
        groupId:
          type: string
        operations:
          type: array
          items:
            $ref: '#/components/schemas/SCIMPatchOperation'
    SCIMResourceTypesResponse:
      type: object
      properties:
        values:
          type: array
          items:
            $ref: '#/components/schemas/ResourceType'
    SCIMServiceProviderConfigResponse:
      type: object
      properties:
        schemas:
          type: array
          items:
            type: string
        documentationUri:
          type: string
        patch:
          $ref: '#/components/schemas/Supported'
        bulk:
          $ref: '#/components/schemas/Bulk'
        filter:
          $ref: '#/components/schemas/Filter'
        changePassword:
          $ref: '#/components/schemas/Supported'
        sort:
          $ref: '#/components/schemas/Supported'
        etag:
          $ref: '#/components/schemas/Supported'
        authenticationSchemes:
          type: array
          items:
            $ref: '#/components/schemas/AuthenticationSchemes'
    SCIMUserEmail:
      type: object
      properties:
        value:
          type: string
        primary:
          type: boolean
        type:
          type: string
    SCIMUserName:
      type: object
      properties:
        givenName:
          type: string
        familyName:
          type: string
        middleName:
          type: string
    SCIMUserPhoneNumber:
      type: object
      properties:
        value:
          type: string
        primary:
          type: boolean
        type:
          type: string
    SCIMUserRequest:
      type: object
      properties:
        userId:
          type: string
        displayName:
          type: string
          description: >-
            The following values are manipulated by the marshaler in
            httpgateway/marshaler.go
             in case of changing or adding new ones, need to edit the marshaler as well
        emails:
          type: array
          items:
            $ref: '#/components/schemas/SCIMUserEmail'
        active:
          type: boolean
        name:
          $ref: '#/components/schemas/SCIMUserName'
        userName:
          type: string
        attributes:
          type: object
        originalRequest:
          type: object
          description: >-
            originalRequest holds the full inbound SCIM payload as received from
            the IdP (including
             schemas and extended-schema attributes), with sensitive values redacted. It is populated
             internally and used only for the inbound SCIM audit trail.
    SSOAppServiceAccountRole:
      type: object
      properties:
        targetAppId:
          type: string
          minLength: 1
        roleIds:
          type: array
          items:
            type: string
            minLength: 1
      description: >-
        SSOAppServiceAccountRole assigns this app (a client_credentials "service
        account") application-roles
         in another federated app. Each roleId must be a role defined on the target app; the target need NOT be
         one of this app's trustedAppIds at write time. At token time the assignments are intersected with
         trustedAppIds, so only roles held in trusted target apps are surfaced in the service account's
         client_credentials token under the `app.trustedApps` claim.
      required:
        - targetAppId
    SSOApplication:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          description: |-
            int64 version - excluded
             string projectId - copied
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        enabled:
          type: boolean
        logo:
          type: string
          maxLength: 2097152
        appType:
          type: string
          minLength: 1
        samlSettings:
          $ref: '#/components/schemas/SSOApplicationSAMLSettings'
        oidcSettings:
          $ref: '#/components/schemas/SSOApplicationOIDCSettings'
        customSettings:
          $ref: '#/components/schemas/SSOApplicationCustomSettings'
        wsfedSettings:
          $ref: '#/components/schemas/SSOApplicationWSFedSettings'
        trustedAppIds:
          type: array
          items:
            type: string
          description: >-
            trustedAppIds lists sibling SSO apps whose roles are included in
            this app's JWT under the
             `trustedApps` claim at login time. Only OIDC and Custom app types may set a non-empty value.
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        serviceAccountRoles:
          type: array
          items:
            $ref: '#/components/schemas/SSOAppServiceAccountRole'
          description: >-
            serviceAccountRoles assigns this app (when client_credentials is
            enabled) application-roles in its
             trusted apps; surfaced in its client_credentials token under the `app.trustedApps` claim.
        createdTime:
          type: integer
          description: >-
            createdTime is epoch seconds (int32 so it serializes as a JSON
            number).
          format: int32
        darkLogo:
          type: string
          maxLength: 2097152
        assignedRoleIds:
          type: array
          items:
            type: string
          description: >-
            assignedRoleIds lists project-level roles that grant access to this
            application. A user holding
             any of them can access the application, in addition to users assigned to it directly or through
             their tenant. This is additive and never removes access, so it only changes the outcome for
             projects configured to deny applications by default. Tenant scoped roles are rejected.
      required:
        - id
        - name
        - appType
    SSOApplicationCustomSettings:
      type: object
      properties:
        loginPageUrl:
          type: string
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
    SSOApplicationOIDCSettings:
      type: object
      properties:
        loginPageUrl:
          type: string
        issuer:
          type: string
        discoveryUrl:
          type: string
        claims:
          type: array
          items:
            type: string
        forceAuthentication:
          type: boolean
        jwtBearerSettings:
          $ref: '#/components/schemas/JWTBearerSettings'
        backChannelLogoutUrl:
          type: string
        customIdpInitiatedLoginPageUrl:
          type: string
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        clientId:
          type: string
        clientSecret:
          type: string
          description: >-
            Descope-generated, may be imported on create. Always empty on load;
            fetch it via GetSSOApplicationSecret.
        clientType:
          type: string
        approvedRedirectUrls:
          type: array
          items:
            type: string
        authorizationCodeDisabled:
          type: boolean
        clientCredentialsDisabled:
          type: boolean
        refreshTokenDisabled:
          type: boolean
        jwtBearerDisabled:
          type: boolean
        deviceCodeDisabled:
          type: boolean
        forcePkce:
          type: boolean
        defaultAudience:
          type: string
          description: >-
            Default audience policy for issued tokens. Applies only to modern
            apps (non-empty clientType):
             'projectId', 'clientId', 'appId', empty (both), or 'empty' (no aud at all). Legacy apps are
             unaffected. Mirrors third-party apps.
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
          description: >-
            Per-app scope→claims mapping. When non-empty, this mapping REPLACES
            the project-wide
             ScopeClaimMapping for tokens issued by this app: only scopes listed here can be requested
             (the set of scopes doubles as an allow-list — requesting an unlisted scope returns
             InvalidArguments), and only this mapping's claims are emitted. Per-entry useProjectMapping
             lets an app opt back into the project's claims for an individual scope without restating
             them. Empty list preserves today's behavior (no per-app restriction; project-wide mapping
             applies if configured).
        trustedAppsAudience:
          type: string
          description: >-
            Audience policy applied to trusted sibling apps' identifiers when
            appended to the issued token's
             `aud` (see SSOApplication.trustedAppIds). Same value set as defaultAudience: 'projectId' /
             'clientId' / 'appId' / empty (=both) / 'empty' (add none). Independent of defaultAudience.
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        wellKnownCustomization:
          $ref: '#/components/schemas/WellKnownCustomization'
        forceDpop:
          type: boolean
          description: >-
            Require a valid DPoP proof (RFC 9449) at the token endpoint. Applies
            to Confidential/Public clients;
             legacy apps (empty clientType) are exempt. Defaults to false.
        logoutPropagation:
          type: string
          description: >-
            'none' (default) or 'allApps': how far a logout at the app's
            end-session endpoint reaches
        notifyOnForceLogout:
          type: boolean
          description: >-
            Whether a Force Logout of the user sends the app a back-channel
            logout token
    SSOApplicationPermission:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        id:
          type: string
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 254
      description: >-
        SSO application scoped permission (Terraform: descope_app_permission).
        The id is server-assigned and ignored on create.
      required:
        - appId
        - name
    SSOApplicationRole:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        id:
          type: string
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 254
        permissionIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        roleMappings:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      description: >-
        SSO application scoped role (Terraform: descope_app_role). The id is
        server-assigned and ignored on create.
         permissionIds reference permissions of the same application, roleMappings reference project-level roles.
      required:
        - appId
        - name
    SSOApplicationSAMLSettings:
      type: object
      properties:
        loginPageUrl:
          type: string
        idpCert:
          type: string
          maxLength: 1000000
        useMetadataInfo:
          type: boolean
        metadataUrl:
          type: string
        entityId:
          type: string
          maxLength: 10000
        acsUrl:
          type: string
        certificate:
          type: string
          maxLength: 1000000
        attributeMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPAttributeMappingInfo'
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPGroupsMappingInfo'
        idpMetadataUrl:
          type: string
        idpEntityId:
          type: string
        idpSsoUrl:
          type: string
        acsAllowedCallbacks:
          type: array
          items:
            type: string
            maxLength: 300
        subjectNameIdType:
          type: string
          maxLength: 150
        subjectNameIdFormat:
          type: string
        defaultRelayState:
          type: string
          maxLength: 10000
        idpInitiatedUrl:
          type: string
        forceAuthentication:
          type: boolean
        idpLogoutUrl:
          type: string
        logoutRedirectUrl:
          type: string
        errorRedirectUrl:
          type: string
        defaultSignatureAlgorithm:
          type: string
        singleLogoutEnabled:
          type: boolean
          description: SAML Single Logout (SLO) is on for the app. Off by default.
        spSingleLogoutUrl:
          type: string
          description: >-
            The SP's SingleLogoutService URL; empty means it is taken from the
            SP metadata
        spSingleLogoutBinding:
          type: string
          description: >-
            The binding of spSingleLogoutUrl: 'redirect', 'post' or 'soap'.
            Default (empty): with spSingleLogoutUrl,
             'redirect'; without it, from the SP metadata ('soap' when it offers an https SOAP endpoint, else 'redirect',
             else 'post')
        singleLogoutPropagation:
          type: string
          description: >-
            What a logout the app's SP starts reaches: 'none' (default) or
            'allApps'
        singleLogoutScope:
          type: string
          description: >-
            Which sessions a logout the app's SP starts ends: 'session'
            (default) or 'allSessions'
        notifyOnForceLogout:
          type: boolean
          description: >-
            Whether a Force Logout of the user sends the app a LogoutRequest
            (single logout over SOAP only)
    SSOApplicationWSFedSettings:
      type: object
      properties:
        loginPageUrl:
          type: string
        realm:
          type: string
          maxLength: 10000
        replyUrl:
          type: string
        attributeMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPAttributeMappingInfo'
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/SAMLIDPGroupsMappingInfo'
        forceAuthentication:
          type: boolean
        logoutRedirectUrl:
          type: string
        errorRedirectUrl:
          type: string
        idpCert:
          type: string
          maxLength: 1000000
        idpInitiatedUrl:
          type: string
        idpMetadataUrl:
          type: string
        idpEntityId:
          type: string
        idpSsoUrl:
          type: string
        idpLogoutUrl:
          type: string
        replyAllowedCallbacks:
          type: array
          items:
            type: string
            maxLength: 300
    SSOOIDCSettings:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 1000
        clientId:
          type: string
          minLength: 1
          maxLength: 1000
        clientSecret:
          type: string
          maxLength: 1000
        redirectUrl:
          type: string
        authUrl:
          type: string
          minLength: 1
        tokenUrl:
          type: string
          minLength: 1
        userDataUrl:
          type: string
        scope:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        JWKsUrl:
          type: string
        userAttrMapping:
          $ref: '#/components/schemas/OAuthUserDataClaimsMapping'
        manageProviderTokens:
          type: boolean
        callbackDomain:
          type: string
        prompt:
          type: array
          items:
            type: string
            minLength: 1
        grantType:
          type: string
        issuer:
          type: string
          maxLength: 254
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/GroupsMapping'
        defaultSSORoles:
          type: array
          items:
            type: string
        fgaMappings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ReBACGroupsMapping'
        roleMappings:
          type: array
          items:
            $ref: '#/components/schemas/RoleMapping'
        providerID:
          type: string
        scimProviderID:
          type: string
        groupsPriority:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        lastSuccessTestTime:
          type: integer
          description: >-
            Epoch seconds of the last successful SSO test login on this
            configuration.
             Read-only: populated on load responses, ignored on configure requests.
          format: int32
        authenticationOnly:
          type: boolean
          description: >-
            Verify identity only: a login through this SSO configuration creates
            no user and issues no
             session. Optional, so a caller that does not send it keeps whatever is stored rather than
             clearing it. Setting it here applies to the whole configuration - its SAML, OIDC and Cross-App
             Access rows move together, since leaving one behind would leave a path that still provisions a
             user.
             Write-only, the mirror of lastSuccessTestTime above: read on configure requests, never set when
             this message is returned as the oidc field of a load response. Read the classification from
             LoadSSOSettingsResponse.authenticationOnly, which answers for the whole configuration.
        replaceDefaultSSORoles:
          type: boolean
          description: >-
            When true, defaultSSORoles replaces the stored default SSO roles
            even when it is empty, which is
             how a caller clears them. When false, an empty defaultSSORoles keeps what is stored: over proto3 an
             empty list cannot be told apart from an omitted one.
             Write-only: read on configure requests, never set on load responses.
        usePkce:
          type: boolean
          description: >-
            Send a PKCE (S256) code challenge in the authorization request to
            the IdP, and the code verifier
             on the code exchange. Applies to the authorization_code grant type only.
             Optional, so a caller that does not send it keeps whatever is stored rather than clearing it.
        jitDisabled:
          type: boolean
          description: >-
            JIT provisioning off: a login through this SSO configuration signs
            in only users who already
             exist, and refuses anyone else with E062014 instead of creating them. Optional, so a caller that
             does not send it keeps whatever is stored rather than clearing it. Applies to the configuration
             named by ssoId, or to the tenant's default configuration when ssoId is empty.
             Write-only: read on configure requests. Read the stored value from
             LoadSSOSettingsResponse.jitDisabled.
      required:
        - name
        - clientId
        - authUrl
        - tokenUrl
    SSOSAMLByMetadataSettings:
      type: object
      properties:
        idpMetadataUrl:
          type: string
          minLength: 1
        roleMappings:
          type: array
          items:
            $ref: '#/components/schemas/RoleMapping'
        attributeMapping:
          $ref: '#/components/schemas/AttributeMapping'
        spEncryptionKey:
          type: string
          maxLength: 3072
        spSignKey:
          type: string
          maxLength: 3072
        subjectNameIdFormat:
          type: string
        spACSUrl:
          type: string
        spEntityId:
          type: string
          maxLength: 1000
        defaultSSORoles:
          type: array
          items:
            type: string
            maxLength: 254
        fgaMappings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ReBACGroupsMapping'
        configFGATenantIDResourcePrefix:
          type: string
          maxLength: 100
        configFGATenantIDResourceSuffix:
          type: string
          maxLength: 100
        groupsPriority:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        entityId:
          type: string
          description: >-
            entityId is the IdP entity ID. When set, it is stored alongside the
            metadata URL so IdP-initiated
             login can resolve the tenant by matching the SAML response issuer. Optional - normally derived from the metadata.
          maxLength: 1000
        disableSignRequest:
          type: boolean
          description: >-
            When true, Descope sends the SAML AuthnRequest to the IdP unsigned.
            Set it for IdPs whose trusted
             provider entry holds no signing certificate for Descope and therefore reject a signed request.
             Defaults to false, i.e. requests are signed.
        authenticationOnly:
          type: boolean
          description: >-
            Verify identity only: a login through this SSO configuration must
            not create, update or sign in
             a user. Optional, so a caller that does not send it keeps whatever is stored rather than
             clearing it. Setting it here applies to the whole configuration - its SAML, OIDC and Cross-App
             Access rows move together, since leaving one behind would leave a path that still provisions a
             user.
        replaceDefaultSSORoles:
          type: boolean
          description: >-
            When true, defaultSSORoles replaces the stored default SSO roles
            even when it is empty, which is
             how a caller clears them. When false, an empty defaultSSORoles keeps what is stored: over proto3 an
             empty list cannot be told apart from an omitted one.
        jitDisabled:
          type: boolean
          description: >-
            JIT provisioning off: a login through this SSO configuration signs
            in only users who already
             exist, and refuses anyone else with E062014 instead of creating them. Optional, so a caller that
             does not send it keeps whatever is stored rather than clearing it. Applies to the configuration
             named by ssoId, or to the tenant's default configuration when ssoId is empty.
             Write-only: read on configure requests. Read the stored value from
             LoadSSOSettingsResponse.jitDisabled.
      required:
        - idpMetadataUrl
    SSOSAMLSettings:
      type: object
      properties:
        idpUrl:
          type: string
          minLength: 1
        entityId:
          type: string
          minLength: 1
          maxLength: 1000
        idpCert:
          type: string
          minLength: 1
          maxLength: 1000000
        roleMappings:
          type: array
          items:
            $ref: '#/components/schemas/RoleMapping'
        attributeMapping:
          $ref: '#/components/schemas/AttributeMapping'
        spEncryptionKey:
          type: string
          maxLength: 3072
        spSignKey:
          type: string
          maxLength: 3072
        subjectNameIdFormat:
          type: string
        spACSUrl:
          type: string
        spEntityId:
          type: string
          maxLength: 1000
        defaultSSORoles:
          type: array
          items:
            type: string
            maxLength: 254
        fgaMappings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ReBACGroupsMapping'
        configFGATenantIDResourcePrefix:
          type: string
          maxLength: 100
        configFGATenantIDResourceSuffix:
          type: string
          maxLength: 100
        idpAdditionalCerts:
          type: array
          items:
            type: string
            maxLength: 1000000
        groupsPriority:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        disableSignRequest:
          type: boolean
          description: >-
            When true, Descope sends the SAML AuthnRequest to the IdP unsigned.
            Set it for IdPs whose trusted
             provider entry holds no signing certificate for Descope and therefore reject a signed request.
             Defaults to false, i.e. requests are signed.
        authenticationOnly:
          type: boolean
          description: >-
            Verify identity only: a login through this SSO configuration must
            not create, update or sign in
             a user. Optional, so a caller that does not send it keeps whatever is stored rather than
             clearing it. Setting it here applies to the whole configuration - its SAML, OIDC and Cross-App
             Access rows move together, since leaving one behind would leave a path that still provisions a
             user.
        replaceDefaultSSORoles:
          type: boolean
          description: >-
            When true, defaultSSORoles replaces the stored default SSO roles
            even when it is empty, which is
             how a caller clears them. When false, an empty defaultSSORoles keeps what is stored: over proto3 an
             empty list cannot be told apart from an omitted one.
        jitDisabled:
          type: boolean
          description: >-
            JIT provisioning off: a login through this SSO configuration signs
            in only users who already
             exist, and refuses anyone else with E062014 instead of creating them. Optional, so a caller that
             does not send it keeps whatever is stored rather than clearing it. Applies to the configuration
             named by ssoId, or to the tenant's default configuration when ssoId is empty.
             Write-only: read on configure requests. Read the stored value from
             LoadSSOSettingsResponse.jitDisabled.
      required:
        - idpUrl
        - entityId
        - idpCert
    SSOSettings:
      type: object
      properties:
        enabled:
          type: boolean
        mergeUsers:
          type: boolean
        redirectUrl:
          type: string
          maxLength: 1024
        allowDuplicateSSODomainsInOtherTenants:
          type: boolean
        groupPriorityEnabled:
          type: boolean
        allowOverrideRoles:
          type: boolean
        limitMappingToMandatoryAttributes:
          type: boolean
        blockIfEmailDomainMismatch:
          type: boolean
        markEmailAsUnverified:
          type: boolean
        mandatoryUserAttributes:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            JSON array of strings; Value makes empty and absent distinct:
            null/absent = keep, [] = clear, values = set. Validated in the
            service
        emailConnectorId:
          type: string
          maxLength: 254
        emailTemplateId:
          type: string
          description: >-
            Active template selection by id. Absent = keep the current
            selection; "" = reset to the
             built-in System template; a template id = select that stored template.
          maxLength: 254
        ssoSuiteStyleId:
          type: string
          maxLength: 254
        hideSsoSuiteScim:
          type: boolean
        hideSsoSuiteGroupsMapping:
          type: boolean
        hideSsoSuiteDomains:
          type: boolean
        hideSsoSuiteSaml:
          type: boolean
        hideSsoSuiteOidc:
          type: boolean
        ssoSuiteForceDomainVerification:
          type: boolean
        ssoSuiteSupportEmail:
          type: string
          maxLength: 254
        ssoSuiteShowHelpContact:
          type: boolean
        hideSsoSuiteJitGuide:
          type: boolean
        oidcLoginIdMappingDefaultOverride:
          type: string
          maxLength: 254
        hideSsoSuiteRoleMapping:
          type: boolean
        hideSsoSuiteFgaMapping:
          type: boolean
        hideSsoSuiteSso:
          type: boolean
        allowMergeUsersWithMultipleTenants:
          type: boolean
        showSsoSuiteXaa:
          type: boolean
        externalEmailTemplateId:
          type: string
          maxLength: 254
        ssoSuiteLoginFlowId:
          type: string
          maxLength: 254
        ssoSuiteLoginFlowStyleId:
          type: string
          maxLength: 254
        hideSsoSuiteAudit:
          type: boolean
          description: >-
            Hides the audit log page of the SSO Setup Suite, which lists a
            tenant's recent SSO login and SCIM
             events for the SSO configuration being set up. Default false (the page is shown). A tenant with
             tenant-level suite settings uses its own ssoSetupSuiteSettings.disabledFeatures.audit instead.
      description: >-
        Project-level SSO auth-method settings (Terraform:
        descope_sso_settings). Carries the same
         representation used in exported snapshots, and the Get response and Set request are the same
         message. The mandatoryUserAttributes entries may carry a "customAttributes." prefix and the
         "ssoDomains"/"group"/"defaultSSORoles" sentinel values verbatim.
         Patch semantics: omitted fields are left untouched; present fields are written.
    SSOSetupSuiteSettings:
      type: object
      properties:
        enabled:
          type: boolean
        styleId:
          type: string
          maxLength: 254
        disabledFeatures:
          $ref: '#/components/schemas/SSOSetupSuiteSettingsDisabledFeatures'
    SSOSetupSuiteSettingsDisabledFeatures:
      type: object
      properties:
        saml:
          type: boolean
        oidc:
          type: boolean
        scim:
          type: boolean
        ssoDomains:
          type: boolean
        groupMapping:
          type: boolean
        roleMapping:
          type: boolean
        fgaMapping:
          type: boolean
        sso:
          type: boolean
        audit:
          type: boolean
          description: >-
            Hides the audit log page of the SSO Setup Suite for this tenant,
            which lists the tenant's recent
             SSO login and SCIM events for the SSO configuration being set up. Default false (the page is shown).
    SamlSettingsResponse:
      type: object
      properties:
        idpEntityId:
          type: string
        idpSSOUrl:
          type: string
        idpCertificate:
          type: string
        idpMetadataUrl:
          type: string
        spEntityId:
          type: string
        spACSUrl:
          type: string
        spCertificate:
          type: string
        attributeMapping:
          $ref: '#/components/schemas/UserMapping'
        groupsMapping:
          type: array
          items:
            $ref: '#/components/schemas/GroupsMapping'
        redirectUrl:
          type: string
        spSignCertificate:
          type: string
        subjectNameIdFormat:
          type: string
        defaultSSORoles:
          type: array
          items:
            type: string
        fgaMappings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ReBACGroupsMapping'
        providerID:
          type: string
        scimProviderID:
          type: string
        configFGATenantIDResourcePrefix:
          type: string
        configFGATenantIDResourceSuffix:
          type: string
        idpAdditionalCertificates:
          type: array
          items:
            type: string
        groupsPriority:
          type: array
          items:
            type: string
        lastSuccessTestTime:
          type: integer
          description: >-
            Epoch seconds of the last successful SSO test login on this
            configuration.
          format: int32
        disableSignRequest:
          type: boolean
          description: True when Descope sends the SAML AuthnRequest to this IdP unsigned.
    ScopeClaimMappingEntry:
      type: object
      properties:
        scope:
          type: string
        claims:
          type: object
          additionalProperties:
            type: string
        description:
          type: string
        claimTargets:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ClaimTokenTargets'
          description: >-
            claimTargets narrows which tokens a claim is written to, keyed by
            the claim
             name as it appears in `claims`. A claim with no entry — or an entry with an
             empty token list — is written to every token. Keys with no matching claim
             are ignored.
        addToNewApplications:
          type: boolean
          description: >-
            addToNewApplications, when true, adds this scope to every OIDC SSO
            application and inbound
             application created from now on, as an entry that takes its claims from this mapping.
             Applied at creation only: applications own their scope list afterwards, so clearing this
             never removes the scope from applications that already have it, and setting it never adds
             the scope to applications that already exist.
      description: |-
        ScopeClaimMappingEntry binds a single scope to the set of JWT claims it
         produces. Each claim value may be a static string or a {{...}} template
         resolved at token-generation time. `description` is a free-form
         human-readable note shown in the console — purely documentation, never
         used at token-generation time.
    SearchAccessKeysRequest:
      type: object
      properties:
        tenantIds:
          type: array
          items:
            type: string
            minLength: 1
        text:
          type: string
          maxLength: 1000
        sort:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.SortField'
        boundUserId:
          type: string
        creatingUser:
          type: string
          maxLength: 254
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
    SearchAgenticIdentitiesRequest:
      type: object
      properties:
        userId:
          type: string
        clientId:
          type: string
          maxLength: 100
        resourceId:
          type: string
          maxLength: 100
        consentId:
          type: string
          maxLength: 100
        page:
          type: integer
          description: Page number starting with 0 for the first page
          format: int32
        limit:
          type: integer
          format: int32
    SearchAgenticIdentitiesResponse:
      type: object
      properties:
        identities:
          type: array
          items:
            $ref: '#/components/schemas/AgenticIdentity'
        total:
          type: integer
          format: int32
    SearchFGAMappableResourcesRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        resourcesQueries:
          type: array
          items:
            $ref: '#/components/schemas/MappableResourceQuery'
        resourcesLimit:
          type: string
          format: int64
      required:
        - tenantId
    SearchFamiliesRequest:
      type: object
      properties:
        familyIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        freeText:
          type: string
          maxLength: 254
        familyNames:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        page:
          type: integer
          format: int32
        size:
          type: integer
          format: int32
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
    SearchManagementKeysResponse:
      type: object
      properties:
        keys:
          type: array
          items:
            $ref: '#/components/schemas/ManagementKey'
    SearchMcpServerClientsRequest:
      type: object
      properties:
        mcpServerId:
          type: string
          minLength: 1
        page:
          type: integer
          format: int32
        limit:
          type: integer
          format: int32
        text:
          type: string
          maxLength: 1000
        name:
          type: string
          maxLength: 254
        clientId:
          type: string
          maxLength: 100000
        status:
          type: string
          maxLength: 100
        registrationMethod:
          type: string
          maxLength: 100
        tag:
          type: string
          maxLength: 100
        sort:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.SortField'
      required:
        - mcpServerId
    SearchMcpServerClientsResponse:
      type: object
      properties:
        clients:
          type: array
          items:
            $ref: '#/components/schemas/McpServerClient'
        total:
          type: integer
          format: int32
    SearchRolesRequest:
      type: object
      properties:
        tenantIds:
          type: array
          items:
            type: string
            minLength: 1
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        roleNameLike:
          type: string
        permissionNames:
          type: array
          items:
            type: string
            minLength: 1
        text:
          type: string
          description: Full text search across relevant columns
          maxLength: 1000
        sort:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.SortField'
        includeProjectRoles:
          type: boolean
          description: relevant when tenantIds are set
        roleIds:
          type: array
          items:
            type: string
            minLength: 1
    SearchTenantsRequest:
      type: object
      properties:
        tenantIds:
          type: array
          items:
            type: string
            minLength: 1
        tenantNames:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        tenantSelfProvisioningDomains:
          type: array
          items:
            type: string
            minLength: 1
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        authType:
          type: string
        tenantSSODomains:
          type: array
          items:
            type: string
            minLength: 1
        parentTenantId:
          type: string
          maxLength: 254
        topLevelOnly:
          type: boolean
    SearchThirdPartyApplicationConsentsRequest:
      type: object
      properties:
        appId:
          type: string
          maxLength: 10000
        userId:
          type: string
        consentId:
          type: string
        page:
          type: integer
          description: Page number starting with 0 for the first page
          format: int32
        tenantId:
          type: string
        limit:
          type: integer
          format: int32
    SearchThirdPartyApplicationConsentsResponse:
      type: object
      properties:
        consents:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationConsent'
        total:
          type: integer
          format: int32
    SearchUsersRequest:
      type: object
      properties:
        loginId:
          type: string
          description: Search for specific login ID
          maxLength: 1000
        tenantIds:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            If not empty then users must be members of at least one of these
            tenants
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
          description: If not empty then users must have one of the specified roles
        limit:
          type: integer
          description: Default is 100 if not specified
          format: int32
        text:
          type: string
          description: Full text search across relevant columns
          maxLength: 1000
        page:
          type: integer
          description: Page number starting with 0 for the first page
          format: int32
        ssoOnly:
          type: boolean
          description: Bring only users that have SSO external IDs
          default: false
        withTestUser:
          type: boolean
          description: Return also users which are test users
        testUsersOnly:
          type: boolean
          description: Return only test users
          default: false
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        statuses:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          description: If not empty then users must be in one of those statuses
        emails:
          type: array
          items:
            type: string
            minLength: 1
        phones:
          type: array
          items:
            type: string
            minLength: 1
        ssoAppIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        sort:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.SortField'
        loginIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        fromCreatedTime:
          type: string
          description: >-
            Lower bound on user creation time, inclusive. Unix timestamp in
            milliseconds, sent as a string (e.g. "1743465600000").
          format: int64
        toCreatedTime:
          type: string
          description: >-
            Upper bound on user creation time, inclusive. Unix timestamp in
            milliseconds, sent as a string (e.g. "1746057600000").
          format: int64
        fromModifiedTime:
          type: string
          description: >-
            Lower bound on user modification time, inclusive. Unix timestamp in
            milliseconds, sent as a string.
          format: int64
        toModifiedTime:
          type: string
          description: >-
            Upper bound on user modification time, inclusive. Unix timestamp in
            milliseconds, sent as a string.
          format: int64
        userIds:
          type: array
          items:
            type: string
        scimOnly:
          type: boolean
          description: Bring only users that provisioned or updated by SCIM
        tenantRoleIds:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StringArray'
        tenantRoleNames:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/StringArray'
        includeSubTenants:
          type: boolean
        password:
          type: boolean
        totp:
          type: boolean
        webauthn:
          type: boolean
        scim:
          type: boolean
        selectedColumns:
          type: array
          items:
            type: string
        verifiedEmail:
          type: boolean
          description: If provided, filter users by whether their email is verified
        verifiedPhone:
          type: boolean
          description: If provided, filter users by whether their phone is verified
        offset:
          type: integer
          description: >-
            Direct row offset for pagination (0-based). When set to a positive
            value,
             this takes precedence over the page-based offset (page * limit).
          format: int32
        recoveryEmails:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          description: >-
            If not empty then users must have one of the specified recovery
            emails (exact match)
        recoveryPhones:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          description: >-
            If not empty then users must have one of the specified recovery
            phones (exact match)
        verifiedRecoveryEmail:
          type: boolean
          description: >-
            If provided, filter users by whether their recovery email is
            verified
        verifiedRecoveryPhone:
          type: boolean
          description: >-
            If provided, filter users by whether their recovery phone is
            verified
        fromLastLoginTime:
          type: string
          description: >-
            Lower bound on the user's last authentication time, inclusive. Unix
            timestamp in milliseconds, sent as a string (e.g. "1743465600000").
             Users that never authenticated are excluded.
          format: int64
        toLastLoginTime:
          type: string
          description: >-
            Upper bound on the user's last authentication time, inclusive. Unix
            timestamp in milliseconds, sent as a string.
             Users that never authenticated are excluded.
          format: int64
        familyIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          description: >-
            If not empty then users must be members of at least one of these
            families
        dependent:
          type: boolean
          description: >-
            If provided, filter users by whether they are a dependent user (i.e.
            a user that is linked to a family and does not have their own login
            credentials)
        lockReasons:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          description: >-
            If not empty then only users that were disabled by brute-force
            protection with one of the given lock reasons
        tempLockReasons:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          description: >-
            If not empty then only users that are currently temporarily locked
            by brute-force protection with one of the given lock reasons (TOTP
            has no temporary lock)
    SendTenantAdminLinkRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        email:
          type: string
          minLength: 1
        ssoId:
          type: string
          maxLength: 254
      required:
        - tenantId
        - email
    SendTenantAdminLinkResponse:
      type: object
      properties: {}
    SessionClassification:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
        description:
          type: string
          maxLength: 1024
        sessionTimeLimitRule:
          enum:
            - SESSION_TIME_LIMIT_RULE_UNSPECIFIED
            - SESSION_TIME_LIMIT_RULE_MIN_OF_TENANTS
            - SESSION_TIME_LIMIT_RULE_PROJECT_SETTINGS
            - SESSION_TIME_LIMIT_RULE_CURRENT_TENANT
          type: string
          description: |-
            How a member's session time limit is decided.
              SESSION_TIME_LIMIT_RULE_UNSPECIFIED (0, the default) means the group does not override it, so
              members are treated like a user with no group at all.
              SESSION_TIME_LIMIT_RULE_MIN_OF_TENANTS (1) uses the shortest limit among all the tenants the
              user belongs to.
              SESSION_TIME_LIMIT_RULE_PROJECT_SETTINGS (2) inherits the project-wide session time limit.
              SESSION_TIME_LIMIT_RULE_CURRENT_TENANT (3) follows the limit of the tenant the session is
              currently in, so it changes with the tenant context rather than being fixed at sign-in.
          format: enum
        accessAllTenants:
          type: boolean
          description: >-
            Members may access every tenant in the project regardless of their
            explicit assignments
        maxConcurrentSessions:
          type: integer
          description: >-
            Overrides the project-wide limit for members, in both directions. 0
            means UNLIMITED: it
             lifts the project cap for members rather than inheriting it.
          format: int32
        createdTime:
          type: integer
          description: >-
            Computed server side: accepted and ignored on write, so a read
            response can be sent back as an
             update. Epoch seconds as int32, matching every other createdTime/modifiedTime in this file:
             protobuf JSON renders a 64-bit integer as a quoted string.
          format: int32
        modifiedTime:
          type: integer
          format: int32
        version:
          type: integer
          description: >-
            The revision this group was read at. Send it back on an update and
            the write is rejected with
             a conflict if someone else changed the group in the meantime. Omit it to update regardless of
             who wrote last.
          format: int32
      description: >-
        SessionClassification is a named set of session rules applied to the
        users assigned to it. The name is
         the id: unique per project and immutable.
      required:
        - name
    SessionMigrationSettings:
      type: object
      properties:
        vendor:
          type: string
        clientId:
          type: string
          maxLength: 254
        domain:
          type: string
          maxLength: 254
        audience:
          type: string
          maxLength: 254
        issuer:
          type: string
          maxLength: 254
        apiToken:
          type: string
          description: >-
            okta only. Write-only. Read returns PLACEHOLDER_VALUE when set.
            Absent or PLACEHOLDER_VALUE=keep, ""=clear, value=set.
          maxLength: 600
        userSyncType:
          type: string
        loginIdExternalUserSources:
          type: array
          items:
            type: string
            maxLength: 254
        userMapping:
          type: array
          items:
            $ref: '#/components/schemas/ExternalAuthUserMappingItem'
      description: >-
        Vendor-keyed session migration config, stored as externalAuthConfig. An
        empty vendor disables migration.
    SessionsLogoutRequest:
      type: object
      properties:
        sessionsCreatedAfter:
          type: string
          description: >-
            RFC 3339. Optional: defaults to the beginning of time. At least one
            of sessionsCreatedAfter and sessionsCreatedBefore is required.
          maxLength: 64
        sessionsCreatedBefore:
          type: string
          description: >-
            RFC 3339. Optional: defaults to now, and cannot be in the future.
            Sessions created at or after this time are not affected.
          maxLength: 64
        sessionTypes:
          type: array
          items:
            type: string
            maxLength: 100
          description: >-
            Only log out sessions of these types. Each value must match the
            session's dtt claim exactly; surrounding whitespace is trimmed,
            duplicates are dropped, and an empty value is refused. At most 20
            values. Empty means every session.
          maxItems: 20
    SessionsLogoutResponse:
      type: object
      properties:
        after:
          type: string
          description: RFC 3339.
        before:
          type: string
          description: RFC 3339.
        sessionTypes:
          type: array
          items:
            type: string
        id:
          type: string
          description: The rule's id, for /v1/mgmt/user/logout/sessions/delete.
      description: The stored range, after defaults are applied.
    SetFamilySettingsRequest:
      type: object
      properties:
        enabled:
          type: boolean
        maxFamilyMembers:
          type: integer
          format: int32
        allowMultipleFamiliesUsers:
          type: boolean
      description: >-
        Every field is optional (omitted = unchanged) - mirrors
        UpdateFamilyRequest's patch semantics,
         above. The caller never has to track projectservice's optimistic-concurrency version;
         managementservice loads the current settings internally before delegating the merged result.
    SetFamilySettingsResponse:
      type: object
      properties:
        enabled:
          type: boolean
        maxFamilyMembers:
          type: integer
          format: int32
        allowMultipleFamiliesUsers:
          type: boolean
    SetOutboundSCIMEnabledRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        enabled:
          type: boolean
      required:
        - appId
    SetOutboundSCIMEnabledResponse:
      type: object
      properties:
        configuration:
          $ref: '#/components/schemas/OutboundSCIMConfiguration'
    SetScopeClaimMappingRequest:
      type: object
      properties:
        mappings:
          type: array
          items:
            $ref: '#/components/schemas/ScopeClaimMappingEntry'
          description: >-
            Ordered list of scope→claims entries replacing the project-wide
            mapping.
             Pass an empty list to clear the mapping; the dedicated
             DeleteScopeClaimMapping RPC is preferred when fully removing the singleton.
    SetUserAppRolesRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        ssoAppId:
          type: string
          minLength: 1
          maxLength: 254
        roleIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      required:
        - identifier
        - ssoAppId
    SetUserAuditConnectorRequest:
      type: object
      properties:
        url:
          type: string
        authentication:
          $ref: '#/components/schemas/ConnectorHTTPAuthentication'
        hmacSecret:
          type: string
          maxLength: 1024
        headers:
          type: object
          additionalProperties:
            type: string
        insecure:
          type: boolean
    SetUserPasswordRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        password:
          type: string
      required:
        - identifier
    SetUserPasswordResponse:
      type: object
      properties:
        cleartext:
          type: string
    SetWebAuditConnectorRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1024
        url:
          type: string
        authentication:
          $ref: '#/components/schemas/ConnectorHTTPAuthentication'
        hmacSecret:
          type: string
          maxLength: 1024
        headers:
          type: object
          additionalProperties:
            type: string
        insecure:
          type: boolean
        filters:
          type: array
          items:
            $ref: '#/components/schemas/AuditFilters'
      required:
        - name
    SetWebAuditConnectorRequestDeprecated:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1024
        url:
          type: string
        authentication:
          $ref: '#/components/schemas/ConnectorHTTPAuthentication'
        hmacSecret:
          type: string
          maxLength: 1024
        headers:
          type: object
          additionalProperties:
            type: string
        insecure:
          type: boolean
        filters:
          $ref: '#/components/schemas/AuditFilters'
      description: Deprecated - use SetWebAuditConnectorRequest instead
      required:
        - name
    SnapshotSecret:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        type:
          type: string
          minLength: 1
          maxLength: 254
        value:
          type: string
          minLength: 1
          maxLength: 1000
      required:
        - id
        - name
        - type
        - value
    SnapshotSecrets:
      type: object
      properties:
        connectors:
          type: array
          items:
            $ref: '#/components/schemas/SnapshotSecret'
        oauthProviders:
          type: array
          items:
            $ref: '#/components/schemas/SnapshotSecret'
        outboundApps:
          type: array
          items:
            $ref: '#/components/schemas/SnapshotSecret'
        externalAuth:
          type: array
          items:
            $ref: '#/components/schemas/SnapshotSecret'
    managementv1.SortField:
      type: object
      properties:
        field:
          type: string
          description: >-
            Field must be from the give list: id, modifiedTime, createdTime,
            externalId, displayName, tenant, phoneNumber, email, status
          minLength: 1
          maxLength: 100
        desc:
          type: boolean
      required:
        - field
    StopFamilyImpersonationRequest:
      type: object
      properties:
        jwt:
          type: string
          minLength: 1
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        refreshDuration:
          type: integer
          format: int32
      required:
        - jwt
    StopImpersonationRequest:
      type: object
      properties:
        jwt:
          type: string
          minLength: 1
        selectedTenant:
          type: string
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        refreshDuration:
          type: integer
          format: int32
      required:
        - jwt
    Supported:
      type: object
      properties:
        supported:
          type: boolean
    TOTPSettings:
      type: object
      properties:
        enabled:
          type: boolean
        issuerLabelTemplate:
          type: string
          description: >-
            Issuer label shown in the authenticator app, e.g. {{projectName}} or
            {{tenant.name}}.
             Supports {{projectName}}, {{tenantName}}, {{tenant.name}} and {{tenant.id}}.
             When empty, the project name is used.
          maxLength: 1024
        accountNameTemplate:
          type: string
          description: >-
            Account name shown in the authenticator app, e.g. {{user.email}} or
            {{user.customAttributes.employeeId}}.
             Supports {{user.email}}, {{user.phone}}, {{user.name}}, {{user.loginId}}, {{user.customAttributes.<name>}},
             {{tenant.name}} and {{tenant.id}}.
             When empty, or when it renders empty for a user, the login ID is used.
          maxLength: 1024
      description: |-
        TOTP (Terraform: descope_totp_settings).
         Patch semantics: omitted fields are left untouched; present fields are written.
         The {{tenant.*}} placeholders resolve to the tenant selected for the authentication, or to the
         user's only tenant when they belong to exactly one. They render empty when neither applies.
    TenantOTPSettings:
      type: object
      properties:
        enabled:
          type: boolean
        expirationTime:
          type: integer
          format: int32
        expirationTimeUnit:
          type: string
        rateLimitRetries:
          type: integer
          format: int32
        rateLimitTimeframe:
          type: integer
          format: int32
    TenantRoles:
      type: object
      properties:
        tenantId:
          type: string
        roleNames:
          type: array
          items:
            type: string
        tenantName:
          type: string
    TenantTheme:
      type: object
      properties:
        styles:
          type: object
          description: >-
            The tenant's styles, in the same shape the project theme export and
            import use: an object
             keyed by style flavor, such as "light" and "dark" for the default style and "<styleId>-light"
             and "<styleId>-dark" for a named one. It must have at least one flavor, and every flavor must be an object. The document replaces
             the tenant's stored styles whole.
             A logo must be supplied as a base64 data URI, the same way the project theme import takes it.
             It is uploaded to this tenant's own CDN object, and a read hands it back as a data URI again,
             so a response can be sent back as a request unchanged. A logo given as a url is rejected,
             because a url points at an object this tenant does not own.
        componentsVersion:
          type: string
          description: >-
            Read-only: the flow-components bundle version the tenant's styles
            render against, resolved
             from the project. Accepted and ignored on write, so a response can be sent back unchanged.
          maxLength: 254
      required:
        - styles
    ThirdPartyApplication:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          description: |-
            int64 version - excluded
             string projectId - copied
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        clientId:
          type: string
          minLength: 1
          maxLength: 254
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        attributesScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        dynamic:
          type: boolean
        status:
          type: string
        logoUrl:
          type: string
        jwtBearerSettings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            string backChannelLogoutUrl = 13 [(validate).string = {url: true,
            optional: true}]; is not supported now as its exist only in project
            service but there is no end_session endpoint in onetime service
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        nonConfidentialClient:
          type: boolean
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        skipConsentScreen:
          type: boolean
        useResources:
          type: boolean
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
          description: >-
            scopeClaimMapping is the structured scope→claim model that
            supersedes attributesScopes.
             The v2 API exposes only this field; v1/import/export carry both (new-wins per scope).
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        createdTime:
          type: integer
          description: >-
            createdTime is epoch seconds (int32 so it serializes as a JSON
            number).
          format: int32
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
          description: >-
            The client id the target authorization server knows this app by, per
            ID-JAG target resource URI.
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions are the private_key_jwt trust entries (JWKS URL or
            PEM public key per entry).
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions are the workload identity trust entries
            (SPIFFE trust domain or OIDC issuer per entry).
        forcePar:
          type: boolean
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        tags:
          type: array
          items:
            type: string
          description: >-
            tags label the app for policy rules (matched by client.tags
            conditions) and for filtering in the console.
      required:
        - id
        - name
        - clientId
    ThirdPartyApplicationCIBASettings:
      type: object
      properties:
        enabled:
          type: boolean
        expirationTime:
          type: integer
          format: int32
        expirationTimeUnit:
          type: string
        emailServiceProvider:
          type: string
        emailServiceProviderFallback:
          type: string
        emailServiceTemplateId:
          type: string
          maxLength: 254
        loginPageURL:
          type: string
    ThirdPartyApplicationConsent:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        appId:
          type: string
          minLength: 1
          maxLength: 10000
        userId:
          type: string
        scopes:
          type: array
          items:
            type: string
        grantedBy:
          type: string
        createdTime:
          type: integer
          format: int32
        tenantId:
          type: string
        ExpireTime:
          type: integer
          format: int32
        modifiedTime:
          type: integer
          format: int32
        authMethod:
          type: string
          description: >-
            Empty for an explicit consent, "idJag" for an identity recorded by a
            Cross-App Access exchange, which cannot be revoked
        blocked:
          type: boolean
          description: >-
            True when an admin blocked this "idJag" identity, so the user's
            ID-JAG exchanges for the application are rejected with invalid_grant
      required:
        - id
        - appId
    ThirdPartyApplicationJARSettings:
      type: object
      properties:
        enforce:
          type: boolean
        publicKey:
          type: string
          maxLength: 10000
        maxLifetimeSeconds:
          type: integer
          format: int32
        fapi:
          type: boolean
      description: >-
        JAR (JWT-Secured Authorization Request, RFC 9101) settings for Third
        Party Applications
    managementv1.ThirdPartyApplicationSessionSettings:
      type: object
      properties:
        enabled:
          type: boolean
        refreshTokenExpiration:
          type: integer
          format: int32
        refreshTokenExpirationUnit:
          type: string
          minLength: 1
        sessionTokenExpiration:
          type: integer
          format: int32
        sessionTokenExpirationUnit:
          type: string
          minLength: 1
        userTemplateId:
          type: string
        keyTemplateId:
          type: string
        keySessionTokenExpiration:
          type: integer
          format: int32
        keySessionTokenExpirationUnit:
          type: string
          minLength: 1
      required:
        - refreshTokenExpirationUnit
        - sessionTokenExpirationUnit
        - keySessionTokenExpirationUnit
    ThirdPartyApplicationV2:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        clientId:
          type: string
          minLength: 1
          maxLength: 254
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        dynamic:
          type: boolean
        status:
          type: string
        logoUrl:
          type: string
        jwtBearerSettings:
          $ref: '#/components/schemas/JWTBearerSettings'
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        nonConfidentialClient:
          type: boolean
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        skipConsentScreen:
          type: boolean
        useResources:
          type: boolean
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
        createdTime:
          type: integer
          description: >-
            createdTime is epoch seconds (int32 so it serializes as a JSON
            number).
          format: int32
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
          description: >-
            The client id the target authorization server knows this app by, per
            ID-JAG target resource URI.
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions are the private_key_jwt trust entries (JWKS URL or
            PEM public key per entry).
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions are the workload identity trust entries
            (SPIFFE trust domain or OIDC issuer per entry).
        forcePar:
          type: boolean
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        tags:
          type: array
          items:
            type: string
          description: >-
            tags label the app for policy rules (matched by client.tags
            conditions) and for filtering in the console.
      required:
        - id
        - name
        - clientId
    TrustedDevice:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        deviceType:
          type: string
        userId:
          type: string
        lastLoginTime:
          type: string
          format: int64
        expirationTime:
          type: string
          format: int64
        lastLocation:
          type: string
        isCurrentDevice:
          type: boolean
      description: expands userv1.TrustedDevice with isCurrentDevice
    UpdateAccessKeyRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        roleNames:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            we want to differentiate between empty and nil so we use
            google.protobuf.Value
        keyTenants:
          $ref: '#/components/schemas/google.protobuf.Value'
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        permittedIps:
          $ref: '#/components/schemas/google.protobuf.Value'
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
      required:
        - id
        - name
    UpdateDescoperRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        attributes:
          allOf:
            - $ref: '#/components/schemas/DescoperAttributes'
          description: >-
            updateable fields (optional! updating attributes has additional
            constraints)
        rbac:
          $ref: '#/components/schemas/DescoperRBAC'
      required:
        - id
    UpdateDescoperResponse:
      type: object
      properties:
        descoper:
          $ref: '#/components/schemas/Descoper'
    UpdateEngineRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 10000
      required:
        - id
        - name
    UpdateEngineResponse:
      type: object
      properties:
        engine:
          $ref: '#/components/schemas/Engine'
    UpdateFamilyRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          maxLength: 254
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        photo:
          type: string
        disabled:
          type: boolean
      description: >-
        UpdateFamilyRequest uses patch semantics - name/photo/disabled are
        optional so an omitted field
         leaves the current value unchanged; customAttributes being message-typed gives the same "not
         mentioned this call" vs "explicitly given" tri-state for free. There is no version field: the
         caller never has to track projectservice's optimistic-concurrency version, managementservice
         loads the current family internally before delegating the merged result.
      required:
        - id
    UpdateFamilyResponse:
      type: object
      properties:
        family:
          $ref: '#/components/schemas/Family'
    UpdateJWTEncryptionConfigRequest:
      type: object
      properties:
        key:
          type: string
          maxLength: 1024
        forceRotation:
          type: boolean
    UpdateJWTRequest:
      type: object
      properties:
        jwt:
          type: string
          minLength: 1
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        refreshDuration:
          type: integer
          format: int32
      required:
        - jwt
    UpdateJwtTemplateRequest:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/JWTTemplate'
      required:
        - template
    UpdateListRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          maxLength: 254
        description:
          type: string
          maxLength: 254
        type:
          type: string
        data:
          $ref: '#/components/schemas/google.protobuf.Value'
      required:
        - id
    UpdateListResponse:
      type: object
      properties:
        list:
          $ref: '#/components/schemas/List'
    UpdateManagementKeyRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          minLength: 1
          maxLength: 100000
        permittedIps:
          type: array
          items:
            type: string
        status:
          type: string
          minLength: 1
        trustedIssuer:
          $ref: '#/components/schemas/WIFTrustedIssuer'
        reBac:
          allOf:
            - $ref: '#/components/schemas/ManagementKeyReBac'
          description: >-
            Replaces the key's roles without rotating its secret. Unlike the
            other fields, leaving it unset keeps the current roles.
             The calling key's permission to manage management keys lets it grant any role, company full access included, but a
             key cannot change its own roles.
      required:
        - id
        - name
        - description
        - status
    UpdateManagementKeyResponse:
      type: object
      properties:
        key:
          $ref: '#/components/schemas/ManagementKey'
    UpdateMcpServerClientRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        mcpServerId:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
          maxLength: 254
        approvedCallbackUrls:
          type: array
          items:
            type: string
        scopes:
          type: array
          items:
            type: string
            maxLength: 100
        tags:
          type: array
          items:
            type: string
            maxLength: 100
        logo:
          type: string
          maxLength: 2097152
        forceAddAllAuthorizationInfo:
          type: boolean
        allowedTenants:
          type: array
          items:
            type: string
      required:
        - id
        - mcpServerId
    UpdateMcpServerClientResponse:
      type: object
      properties:
        client:
          $ref: '#/components/schemas/McpServerClient'
    UpdateMcpServerRequest:
      type: object
      properties:
        server:
          $ref: '#/components/schemas/McpServer'
      required:
        - server
    UpdateMcpServerResponse:
      type: object
      properties:
        server:
          $ref: '#/components/schemas/McpServer'
    UpdateOutboundAppRequest:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/OutboundApp'
      required:
        - app
    UpdateOutboundAppResponse:
      type: object
      properties:
        app:
          $ref: '#/components/schemas/OutboundApp'
    UpdateOutboundSCIMConfigurationRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        configuration:
          type: object
        version:
          type: string
          format: int64
      required:
        - appId
    UpdateOutboundSCIMConfigurationResponse:
      type: object
      properties:
        configuration:
          $ref: '#/components/schemas/OutboundSCIMConfiguration'
    UpdatePermissionRequest:
      type: object
      properties:
        name:
          type: string
          description: >-
            Either name or id must be provided (not both). The identified
            permission will be updated.
        newName:
          type: string
          minLength: 1
        description:
          type: string
          maxLength: 1024
        id:
          type: string
      required:
        - newName
    UpdatePermissionsRequest:
      type: object
      properties:
        permissions:
          type: array
          items:
            $ref: '#/components/schemas/UpdatePermissionRequest'
    UpdateProjectNameRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - name
    UpdateProjectRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        environment:
          type: string
        tags:
          $ref: '#/components/schemas/google.protobuf.Value'
    UpdateProjectTagsRequest:
      type: object
      properties:
        tags:
          type: array
          items:
            type: string
            minLength: 1
    UpdateRoleRequest:
      type: object
      properties:
        name:
          type: string
          description: >-
            Either name or id must be provided (not both). The identified role
            will be updated.
        newName:
          type: string
          minLength: 1
        description:
          type: string
          maxLength: 1024
        permissionNames:
          type: array
          items:
            type: string
            minLength: 1
        tenantId:
          type: string
        default:
          type: boolean
        private:
          type: boolean
        id:
          type: string
      required:
        - newName
    UpdateRolesRequest:
      type: object
      properties:
        roles:
          type: array
          items:
            $ref: '#/components/schemas/UpdateRoleRequest'
    UpdateSSOProviderIDsRequest:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        ssoId:
          type: string
          maxLength: 254
        samlProviderId:
          type: string
          minLength: 1
        samlScimProviderId:
          type: string
          minLength: 1
        oidcProviderId:
          type: string
          minLength: 1
        oidcScimProviderId:
          type: string
          minLength: 1
        xaaProviderId:
          type: string
          minLength: 1
      required:
        - tenantId
    UpdateTenantBatchFailureResponse:
      type: object
      properties:
        failure:
          type: string
        tenant:
          $ref: '#/components/schemas/UpdateTenantRequest'
    UpdateTenantDefaultRolesRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        defaultRoles:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      required:
        - id
    UpdateTenantRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        name:
          type: string
          minLength: 1
          maxLength: 254
        selfProvisioningDomains:
          type: array
          items:
            type: string
            minLength: 1
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        authType:
          type: string
          description: deprecated - authType should be set via ConfigureTenantSettings
        disabled:
          type: boolean
        enforceSSO:
          type: boolean
        enforceSSOExclusions:
          type: array
          items:
            type: string
            minLength: 1
        federatedAppIds:
          type: array
          items:
            type: string
            minLength: 1
        roleInheritance:
          type: string
        approvedDomains:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            The tenant's vanity hostname (e.g. surveys.example.com), unique
            across the project's tenants. Requests that reach the project
            through its trusted proxy on this hostname are bound to this tenant.
            One item for now
             A list of hostnames, absent keeps the current value and an empty list clears it
        enforceSSOExclusionPermissions:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            Permission names or IDs whose holders in the tenant may sign in
            without SSO while enforceSSO is on (break-glass accounts)
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for tenants returns error E111843 listing them: the request fails
            and nothing is saved. When false (default), those keys are ignored.
            An attribute declared in the last few seconds may still be ignored.
      description: >-
        Replaces the tenant's settings: a field left unset is cleared, except
        approvedDomains and an empty authType, which keep their current values.
      required:
        - id
        - name
    UpdateTenantsBatchRequest:
      type: object
      properties:
        tenants:
          type: array
          items:
            $ref: '#/components/schemas/UpdateTenantRequest'
          minItems: 1
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for tenants returns error E111843 listing them for every item in the
            batch: an item that sets one fails and the others are saved. When
            false (default), those keys are ignored. An attribute declared in
            the last few seconds may still be ignored.
      description: >-
        At most 100 tenants per call by default. A tenant whose fields break
        this request's validation rules fails the whole call; any other failure
        is returned for that tenant in the response.
      required:
        - tenants
    UpdateTenantsBatchResponse:
      type: object
      properties:
        updatedTenantIds:
          type: array
          items:
            type: string
        failedTenants:
          type: array
          items:
            $ref: '#/components/schemas/UpdateTenantBatchFailureResponse'
        additionalErrors:
          type: object
          additionalProperties:
            type: string
    UpdateThirdPartyApplicationRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
          minLength: 1
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        attributesScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        logoUrl:
          type: string
        jwtBearerSettings:
          allOf:
            - $ref: '#/components/schemas/JWTBearerSettings'
          description: >-
            string backChannelLogoutUrl = 10 [(validate).string = {url: true,
            optional: true}];
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
          description: >-
            scopeClaimMapping is the structured scope→claim model. Consumed by
            UpdateThirdPartyApplicationV2
             (v2 write-replace: attributesScopes is ignored/cleared). v1 ignores this field.
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions are the private_key_jwt trust entries (JWKS URL or
            PEM public key per entry).
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions are the workload identity trust entries
            (SPIFFE trust domain or OIDC issuer per entry).
        forcePar:
          type: boolean
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        tags:
          type: array
          items:
            type: string
            maxLength: 100
          description: >-
            tags replace the app's labels, matched by policy rules through
            client.tags conditions. Up to 100 tags, each up to 100 bytes. Empty
            clears them.
          maxItems: 100
      required:
        - id
        - name
        - loginPageUrl
    UpdateThirdPartyApplicationV2Request:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 10000
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 100000
        logo:
          type: string
          maxLength: 2097152
        loginPageUrl:
          type: string
          minLength: 1
        approvedCallbackUrls:
          type: array
          items:
            type: string
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        logoUrl:
          type: string
        jwtBearerSettings:
          $ref: '#/components/schemas/JWTBearerSettings'
        sessionSettings:
          $ref: >-
            #/components/schemas/managementv1.ThirdPartyApplicationSessionSettings
        audienceWhitelist:
          type: array
          items:
            type: string
            maxLength: 1000
          maxItems: 100
        forceAddAllAuthorizationInfo:
          type: boolean
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.ApplicationScope'
        defaultAudience:
          type: string
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        cibaSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationCIBASettings'
        jarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationJARSettings'
        allowedTenants:
          type: array
          items:
            type: string
        clientType:
          type: string
        clientCredentialsDisabled:
          type: boolean
          description: >-
            clientCredentialsDisabled rejects the client_credentials grant for
            this app. Default false. A public client cannot use this grant.
        jwtBearerDisabled:
          type: boolean
          description: >-
            jwtBearerDisabled rejects the JWT bearer grant
            (urn:ietf:params:oauth:grant-type:jwt-bearer) for this app. Default
            false. A public client cannot use this grant.
        cibaEnabled:
          type: boolean
          description: >-
            cibaEnabled allows the CIBA grant
            (urn:openid:params:grant-type:ciba) for this app and requires
            cibaSettings. Default false. A public client cannot use this grant.
        forcePkce:
          type: boolean
        allowPartialScopes:
          type: boolean
        scopeClaimMapping:
          type: array
          items:
            $ref: '#/components/schemas/AppScopeClaimMappingEntry'
        forceDpop:
          type: boolean
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
        idJagTargetClients:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IdJagTargetClient'
        clientAuthMethod:
          type: string
          description: >-
            clientAuthMethod: "clientSecret" (default when empty),
            "privateKeyJwt" (only clientAssertions are accepted),
             "workloadIdentity" (only workloadClientAssertions are accepted) or "mtls" (only a registered mTLS certificate is accepted).
        clientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationClientAssertion'
          description: >-
            clientAssertions are the private_key_jwt trust entries (JWKS URL or
            PEM public key per entry).
        workloadClientAssertions:
          type: array
          items:
            $ref: '#/components/schemas/ThirdPartyApplicationWorkloadClientAssertion'
          description: >-
            workloadClientAssertions are the workload identity trust entries
            (SPIFFE trust domain or OIDC issuer per entry).
        forcePar:
          type: boolean
        mtlsClientAuthMethods:
          $ref: '#/components/schemas/MTLSClientAuthenticationMethods'
        forceMtls:
          type: boolean
        authorizationCodeDisabled:
          type: boolean
          description: >-
            authorizationCodeDisabled rejects the authorization_code grant for
            this app, including its authorization requests. Default false.
        refreshTokenDisabled:
          type: boolean
          description: >-
            refreshTokenDisabled rejects the refresh_token grant for this app,
            so its tokens cannot be refreshed. Default false.
        deviceCodeDisabled:
          type: boolean
          description: >-
            deviceCodeDisabled rejects the device authorization grant
            (urn:ietf:params:oauth:grant-type:device_code) for this app. Default
            false.
        tokenExchangeDisabled:
          type: boolean
          description: >-
            tokenExchangeDisabled rejects the token exchange grant
            (urn:ietf:params:oauth:grant-type:token-exchange) for this app.
            Default false.
        tags:
          type: array
          items:
            type: string
            maxLength: 100
          description: >-
            tags replace the app's labels, matched by policy rules through
            client.tags conditions. Up to 100 tags, each up to 100 bytes. Empty
            clears them.
          maxItems: 100
      required:
        - id
        - name
        - loginPageUrl
    UpdateUserAddFamiliesRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        familyAssociations:
          type: array
          items:
            $ref: '#/components/schemas/AssociatedFamily'
          minItems: 1
      description: >-
        UpdateUserAddFamiliesRequest carries AssociatedFamily (not bare family
        IDs, unlike
         UpdateUserRemoveFamiliesRequest) since adding a family may also set its roles/attributes in the
         same call. Purely additive: a family the user already belongs to is not rejected, given roleNames
         are granted on top of the family's existing roles (never removed), and given
         familyScopedAttributes keys are merged into whatever's already stored for that family.
      required:
        - identifier
        - familyAssociations
    UpdateUserCustomAttributeRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        attributeKey:
          type: string
          minLength: 1
          maxLength: 254
        attributeValue:
          $ref: '#/components/schemas/google.protobuf.Value'
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for users returns error E111843 listing them: the request fails and
            nothing is saved. When false (default), those keys are ignored. An
            attribute declared in the last few seconds may still be ignored.
      required:
        - loginId
        - attributeKey
    UpdateUserDisplayNameRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        name:
          type: string
          maxLength: 254
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
      required:
        - identifier
    UpdateUserEmailRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        email:
          type: string
        verified:
          type: boolean
        failOnConflict:
          type: boolean
      required:
        - identifier
    UpdateUserImpersonationConsentRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        impersonationConsent:
          type: integer
          format: int32
        tenantId:
          type: string
          description: >-
            tenantId scopes the consent to a single tenant: impersonation is
            then allowed only into that
             tenant. Optional so that callers that do not know about scoping leave an existing scope alone;
             send an explicit empty string to clear it and allow every tenant the user belongs to.
      required:
        - identifier
    UpdateUserLoginIDRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        newLoginId:
          type: string
      required:
        - loginId
    UpdateUserPhoneRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        phone:
          type: string
        verified:
          type: boolean
        failOnConflict:
          type: boolean
      required:
        - identifier
    UpdateUserPictureRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        picture:
          type: string
      required:
        - loginId
    UpdateUserRecoveryEmailRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        recoveryEmail:
          type: string
        verified:
          type: boolean
      required:
        - identifier
    UpdateUserRecoveryPhoneRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        recoveryPhone:
          type: string
        verified:
          type: boolean
      required:
        - identifier
    UpdateUserRemoveFamiliesRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        familyIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          minItems: 1
      required:
        - identifier
        - familyIds
    UpdateUserRemoveTrustedDevicesRequest:
      type: object
      properties:
        loginId:
          type: string
          description: The user's login identifier (external ID) or ID
          minLength: 1
        deviceIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 100
          description: Trusted device IDs to delete
      required:
        - identifier
    UpdateUserRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        email:
          type: string
        phone:
          type: string
        verifiedEmail:
          type: boolean
        verifiedPhone:
          type: boolean
        name:
          type: string
          maxLength: 254
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
        userTenants:
          type: array
          items:
            $ref: '#/components/schemas/managementv1.AssociatedTenant'
        customAttributes:
          type: object
          description: >-
            Custom attributes as key-value pairs. Keys must be strings; values
            can be strings, numbers, booleans, or arrays.
          additionalProperties:
            type: string
          example:
            attribute-key: attribute-value
        picture:
          type: string
        additionalIdentifiers:
          type: array
          items:
            type: string
            minLength: 1
        givenName:
          type: string
          maxLength: 254
        middleName:
          type: string
          maxLength: 254
        familyName:
          type: string
          maxLength: 254
        ssoAppIds:
          type: array
          items:
            type: string
        status:
          type: string
        recoveryEmail:
          type: string
        recoveryPhone:
          type: string
        verifiedRecoveryEmail:
          type: boolean
        verifiedRecoveryPhone:
          type: boolean
        familyAssociations:
          type: array
          items:
            $ref: '#/components/schemas/AssociatedFamily'
          description: >-
            each AssociatedFamily carries its own roleNames and
            familyScopedAttributes
        sessionClassification:
          type: string
          description: >-
            The session classification to assign the user to, by name. Omit the
            field to leave the current
             assignment untouched, send an empty string to remove it, and send a name to assign that
             classification. A name that does not match an existing classification is rejected.
          maxLength: 100
        strict:
          type: boolean
          description: >-
            When true, setting custom attributes the project does not declare
            for users returns error E111843 listing them: the request fails and
            nothing is saved. When false (default), those keys are ignored. An
            attribute declared in the last few seconds may still be ignored.
      required:
        - identifier
    UpdateUserRolesRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        tenantId:
          type: string
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
      required:
        - identifier
    UpdateUserSSOAppsRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        ssoAppIds:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      required:
        - identifier
    UpdateUserStatusRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        status:
          type: string
          minLength: 1
      required:
        - identifier
        - status
    UpdateUserTenantRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        tenantId:
          type: string
          minLength: 1
      required:
        - identifier
        - tenantId
    UploadOutboundAppTenantAPIKeyRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
          minLength: 1
        apiKey:
          type: string
          minLength: 1
          maxLength: 10000
        externalIdentifier:
          type: string
          maxLength: 254
      required:
        - appId
        - tenantId
        - apiKey
    UploadOutboundAppTenantAPIKeyResponse:
      type: object
      properties: {}
    UploadOutboundAppUserAPIKeyRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        userId:
          type: string
          minLength: 1
          maxLength: 254
        apiKey:
          type: string
          minLength: 1
          maxLength: 10000
        tenantId:
          type: string
        externalIdentifier:
          type: string
          maxLength: 254
      required:
        - appId
        - userId
        - apiKey
    UploadOutboundAppUserAPIKeyResponse:
      type: object
      properties: {}
    UserAppRolesAssignment:
      type: object
      properties:
        ssoAppId:
          type: string
        roleIds:
          type: array
          items:
            type: string
    UserAuthHistory:
      type: object
      properties:
        userId:
          type: string
        loginTime:
          type: integer
          format: int32
        city:
          type: string
        country:
          type: string
        ip:
          type: string
        selectedTenant:
          type: string
    UserLogoutRequest:
      type: object
      properties:
        loginId:
          type: string
        userId:
          type: string
        sessionTypes:
          type: array
          items:
            type: string
            maxLength: 100
    UserMapping:
      type: object
      properties:
        name:
          type: string
        email:
          type: string
        username:
          type: string
        group:
          type: string
        givenName:
          type: string
        middleName:
          type: string
        familyName:
          type: string
        picture:
          type: string
        customAttributes:
          type: object
          additionalProperties:
            type: string
        verifiedEmail:
          type: string
        verifiedPhone:
          type: string
    UserPasskey:
      type: object
      properties:
        id:
          type: string
        rpId:
          type: string
        kind:
          type: string
        displayName:
          type: string
        createdTime:
          type: integer
          format: int32
    UserProviderTokenResponse:
      type: object
      properties:
        provider:
          type: string
        providerUserId:
          type: string
        accessToken:
          type: string
        expiration:
          type: integer
          format: uint32
        scopes:
          type: array
          items:
            type: string
        refreshToken:
          type: string
    UserResponse:
      type: object
      properties:
        user:
          $ref: '#/components/schemas/ResponseUser'
        created:
          type: boolean
    UsersAuthHistoryRequest:
      type: object
      properties:
        userIds:
          type: array
          items:
            type: string
            minLength: 1
    UsersAuthHistoryResponse:
      type: object
      properties:
        usersAuthHistory:
          type: array
          items:
            $ref: '#/components/schemas/UserAuthHistory'
    UsersLogoutRequest:
      type: object
      properties:
        identifiers:
          type: array
          items:
            type: string
            minLength: 1
          description: The users' login identifiers (external ID or ID).
          minItems: 1
          maxItems: 100
        sessionTypes:
          type: array
          items:
            type: string
            maxLength: 100
      required:
        - identifiers
    UsersLogoutResponse:
      type: object
      properties:
        notFoundIdentifiers:
          type: array
          items:
            type: string
          description: >-
            The identifiers that matched no user, and were therefore not logged
            out.
    UsersResponse:
      type: object
      properties:
        users:
          type: array
          items:
            $ref: '#/components/schemas/ResponseUser'
        total:
          type: integer
          format: int32
    ValidateJwtTemplateRequest:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/JWTTemplate'
        id:
          type: string
          minLength: 1
          maxLength: 254
    ValidateJwtTemplateResponse:
      type: object
      properties:
        valid:
          type: boolean
        issues:
          type: array
          items:
            $ref: '#/components/schemas/JwtTemplateValidationIssue'
    ValidateSnapshotResponse:
      type: object
      properties:
        ok:
          type: boolean
        failures:
          type: array
          items:
            type: string
        missingSecrets:
          $ref: '#/components/schemas/SnapshotSecrets'
    WellKnownSettings:
      type: object
      properties:
        enabled:
          type: boolean
          description: >-
            Applies the customization to the served documents. Off by default:
            the customization is kept and the default documents are served.
        hiddenFields:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            Array of field names to omit from the documents. Hideable fields:
            backchannel_authentication_endpoint,
            pushed_authorization_request_endpoint, request_parameter_supported,
            registration_endpoint, end_session_endpoint, introspection_endpoint,
            device_authorization_endpoint, revocation_endpoint,
            userinfo_endpoint, backchannel_logout_supported.
        removedValues:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.Value'
          description: >-
            Array of objects naming a list field and the values to remove from
            it, such as [{"field": "grant_types_supported", "values":
            ["client_credentials"]}]. Returned sorted by field. A list is never
            emptied: removing every value keeps the full list.
        scopesSupported:
          allOf:
            - $ref: '#/components/schemas/WellKnownValueDelta'
          description: Scopes added to or excluded from scopes_supported.
        claimsSupported:
          allOf:
            - $ref: '#/components/schemas/WellKnownValueDelta'
          description: Claims added to or excluded from claims_supported.
      description: >-
        Patch semantics: omitted fields are left untouched; present fields are
        written.
         Customization of the project's OIDC discovery documents: the project document and the shared inbound apps document.
         Advertised content only, the endpoints and capabilities themselves stay enabled.
    Widget:
      type: object
      properties:
        widgetId:
          type: string
        name:
          type: string
        type:
          type: string
        disabled:
          type: boolean
        requiredPermissions:
          type: array
          items:
            type: string
    onetimev1.AssociatedTenant:
      type: object
      properties:
        tenantId:
          type: string
          minLength: 1
        roleNames:
          type: array
          items:
            type: string
            minLength: 1
      required:
        - tenantId
    EmbeddedLinkSignInResponse:
      type: object
      properties:
        token:
          type: string
        maskedEmail:
          type: string
        maskedPhone:
          type: string
    GenerateJWTSignUpRequest:
      type: object
      properties:
        loginId:
          type: string
          minLength: 1
        user:
          $ref: '#/components/schemas/SignUpUser'
        emailVerified:
          type: boolean
        phoneVerified:
          type: boolean
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        ssoAppId:
          type: string
        refreshDuration:
          type: integer
          format: int32
        selectedTenantId:
          type: string
        userTenants:
          type: array
          items:
            $ref: '#/components/schemas/onetimev1.AssociatedTenant'
        ignoreEnforceSSO:
          type: boolean
          description: >-
            Keep the tenants the user already belongs to that enforce SSO. They
            are left out of the JWT by default, because this endpoint does not
            authenticate through SSO. Applies to existing memberships only: a
            new user whose email domain would self-provision into a tenant that
            enforces SSO is still refused.
      required:
        - loginId
    PasswordImport:
      type: object
      properties:
        bcrypt:
          $ref: '#/components/schemas/PasswordImportHash'
        django:
          $ref: '#/components/schemas/PasswordImportHash'
        firebase:
          $ref: '#/components/schemas/PasswordImportFirebase'
        pbkdf2:
          $ref: '#/components/schemas/PasswordImportPbkdf2'
        phpass:
          $ref: '#/components/schemas/PasswordImportPhpass'
        md5:
          $ref: '#/components/schemas/PasswordImportHash'
        bach:
          $ref: '#/components/schemas/PasswordImportBach'
        argon2:
          $ref: '#/components/schemas/PasswordImportArgon2'
        sha:
          $ref: '#/components/schemas/PasswordImportSha'
        buddyauth:
          $ref: '#/components/schemas/PasswordImportHash'
    PasswordImportArgon2:
      type: object
      properties:
        hash:
          type: string
          format: bytes
        salt:
          type: string
          format: bytes
        iterations:
          type: integer
          format: uint32
        memory:
          type: integer
          format: uint32
        threads:
          type: integer
          format: uint32
        type:
          type: string
      required:
        - hash
        - salt
        - iterations
        - memory
        - threads
    PasswordImportBach:
      type: object
      properties:
        hash:
          type: string
          minLength: 1
          maxLength: 254
        key:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - hash
        - key
    PasswordImportFirebase:
      type: object
      properties:
        hash:
          type: string
          format: bytes
        salt:
          type: string
          format: bytes
        saltSeparator:
          type: string
          format: bytes
        signerKey:
          type: string
          format: bytes
        memory:
          type: integer
          format: uint32
        rounds:
          type: integer
          format: uint32
      required:
        - hash
        - salt
        - saltSeparator
        - signerKey
        - memory
        - rounds
    PasswordImportHash:
      type: object
      properties:
        hash:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - hash
    PasswordImportPbkdf2:
      type: object
      properties:
        hash:
          type: string
          format: bytes
        salt:
          type: string
          format: bytes
        iterations:
          type: integer
          format: uint32
        type:
          type: string
          minLength: 1
      required:
        - hash
        - salt
        - iterations
        - type
    PasswordImportPhpass:
      type: object
      properties:
        hash:
          type: string
          minLength: 1
          maxLength: 254
        salt:
          type: string
          minLength: 1
          maxLength: 254
        iterations:
          type: integer
          format: uint32
        type:
          type: string
          minLength: 1
      required:
        - hash
        - salt
        - iterations
        - type
    PasswordImportSha:
      type: object
      properties:
        hash:
          type: string
          minLength: 1
          maxLength: 254
        type:
          type: string
          minLength: 1
        salt:
          type: string
        saltPosition:
          type: string
          description: >-
            Position of the salt relative to the password when computing the
            digest:
             "prefix" for SHA(salt + password) or "suffix" for SHA(password + salt).
             Defaults to "suffix" when omitted for backwards compatibility.
      required:
        - hash
        - type
    RecoveryCodesImport:
      type: object
      properties:
        salt:
          type: string
          format: bytes
        codes:
          type: object
          additionalProperties:
            type: boolean
      description: >-
        RecoveryCodesImport carries pre-hashed recovery codes for migration,
        stored verbatim.
    TestUserGenerateEnchantedLinkRequest:
      type: object
      properties:
        loginId:
          type: string
        redirectUrl:
          type: string
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
    TestUserGenerateEnchantedLinkResponse:
      type: object
      properties:
        loginId:
          type: string
        link:
          type: string
        pendingRef:
          type: string
    TestUserGenerateMagicLinkRequest:
      type: object
      properties:
        loginId:
          type: string
        deliveryMethod:
          type: string
          minLength: 1
        redirectUrl:
          type: string
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
      required:
        - deliveryMethod
    TestUserGenerateMagicLinkResponse:
      type: object
      properties:
        loginId:
          type: string
        link:
          type: string
    TestUserGenerateOTPRequest:
      type: object
      properties:
        loginId:
          type: string
        deliveryMethod:
          type: string
          minLength: 1
        loginOptions:
          $ref: '#/components/schemas/LoginOptions'
      required:
        - deliveryMethod
    TestUserGenerateOTPResponse:
      type: object
      properties:
        loginId:
          type: string
        code:
          type: string
    WebauthnImportAuth0:
      type: object
      properties:
        keyId:
          type: string
          minLength: 1
          maxLength: 254
        rpId:
          type: string
          minLength: 1
        publicKey:
          type: string
          format: bytes
        aaguid:
          type: string
        transports:
          type: array
          items:
            type: string
            minLength: 1
        credentialDeviceType:
          type: string
        credentialBackedUp:
          type: boolean
        userHandle:
          type: string
          maxLength: 254
      description: >-
        The keyId, rpId and publicKey fields in this message are present in both
        passkey and MFA webauthn types.
         The other fields are missing in the MFA webauthn type.
      required:
        - keyId
        - rpId
        - publicKey
    WebauthnImportDescope:
      type: object
      properties:
        credentialId:
          type: string
          minLength: 1
          maxLength: 254
        rpId:
          type: string
          minLength: 1
        publicKey:
          type: string
          format: bytes
        attestationType:
          type: string
          maxLength: 254
          default: false
        aaguid:
          type: string
        transports:
          type: array
          items:
            type: string
            minLength: 1
        backupEligible:
          type: boolean
        backupState:
          type: boolean
      required:
        - credentialId
        - rpId
        - publicKey
    WebauthnImportDevice:
      type: object
      properties:
        descope:
          $ref: '#/components/schemas/WebauthnImportDescope'
        auth0:
          $ref: '#/components/schemas/WebauthnImportAuth0'
    CompleteExternalAuthRequest:
      type: object
      properties:
        externalAuthReqId:
          type: string
          minLength: 1
          maxLength: 256
        loginId:
          type: string
          minLength: 1
        user:
          $ref: '#/components/schemas/SignUpUser'
        emailVerified:
          type: boolean
        phoneVerified:
          type: boolean
        customClaims:
          type: object
          description: >-
            Custom claims to include in the JWT as key-value pairs. Keys must be
            strings; values can be strings, numbers, or booleans.
          additionalProperties:
            type: string
          example:
            claim-name: claim-value
        selectedTenantId:
          type: string
        userTenants:
          type: array
          items:
            $ref: '#/components/schemas/onetimev1.AssociatedTenant'
      required:
        - externalAuthReqId
        - loginId
    CompleteExternalAuthResponse:
      type: object
      properties:
        redirectUrl:
          type: string
    DeleteFlowsRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
          minItems: 1
      required:
        - ids
    EvaluateWidgetComponentsStateResponse:
      type: object
      properties:
        componentsState:
          type: object
          additionalProperties:
            type: string
    ExportFlowDeprecatedResponse:
      type: object
      properties:
        flow:
          $ref: '#/components/schemas/Flow'
        screens:
          type: array
          items:
            $ref: '#/components/schemas/Screen'
    ExportFlowRequest:
      type: object
      properties:
        flowId:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - flowId
    ExportFlowResponse:
      type: object
      properties:
        flow:
          $ref: '#/components/schemas/ExportedFlow'
    ExportThemeDeprecatedResponse:
      type: object
      properties:
        theme:
          $ref: '#/components/schemas/Theme'
    ExportThemeResponse:
      type: object
      properties:
        theme:
          $ref: '#/components/schemas/ExportedTheme'
    ExportedFlow:
      type: object
      properties:
        flowId:
          type: string
          minLength: 1
          maxLength: 254
        metadata:
          $ref: '#/components/schemas/ExportedFlowMetadata'
        contents:
          type: object
        screens:
          type: array
          items:
            $ref: '#/components/schemas/ExportedScreen'
        references:
          $ref: '#/components/schemas/ProjectReferences'
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
      required:
        - flowId
        - metadata
        - contents
    ExportedFlowMetadata:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1024
        componentsVersion:
          type: string
        disabled:
          type: boolean
        fingerprint:
          type: boolean
        widget:
          type: boolean
        translation:
          $ref: '#/components/schemas/ExportedFlowTranslation'
        sharedInteractions:
          type: array
          items:
            $ref: '#/components/schemas/Interaction'
        management:
          type: boolean
        managementConfig:
          $ref: '#/components/schemas/ManagementConfig'
        clientValidationTracking:
          type: boolean
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
      required:
        - name
    ExportedFlowTranslation:
      type: object
      properties:
        enabled:
          type: boolean
        connectorId:
          type: string
          maxLength: 254
        sourceLanguage:
          type: string
          maxLength: 254
        targetLanguages:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
    ExportedScreen:
      type: object
      properties:
        screenId:
          type: string
        interactions:
          type: array
          items:
            $ref: '#/components/schemas/Interaction'
        contents:
          type: object
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
    ExportedTheme:
      type: object
      properties:
        styles:
          type: object
        componentsVersion:
          type: string
        references:
          $ref: '#/components/schemas/ProjectReferences'
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
      required:
        - styles
    ExportedWidget:
      type: object
      properties:
        widgetId:
          type: string
          minLength: 1
          maxLength: 254
        metadata:
          $ref: '#/components/schemas/ExportedWidgetMetadata'
        screens:
          type: array
          items:
            $ref: '#/components/schemas/ExportedWidgetScreen'
        flows:
          type: array
          items:
            $ref: '#/components/schemas/ExportedFlow'
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
      required:
        - widgetId
        - metadata
    ExportedWidgetMetadata:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1024
        type:
          type: string
          maxLength: 254
        components:
          type: array
          items:
            type: string
        columns:
          type: array
          items:
            type: string
        flowsIds:
          type: array
          items:
            type: string
        allowSubTenants:
          type: boolean
        eventActions:
          type: array
          items:
            type: string
        editMultiTenantUsers:
          type: boolean
        forAppUsers:
          type: boolean
        forTenantUsers:
          type: boolean
        eventExcludeFields:
          type: array
          items:
            type: string
        eventFilter:
          type: array
          items:
            $ref: '#/components/schemas/FilterCondition'
        translation:
          $ref: '#/components/schemas/ExportedWidgetTranslation'
        requiredPermissions:
          type: array
          items:
            type: string
        ssoAppIds:
          type: array
          items:
            type: string
        flowTarget:
          type: string
      required:
        - name
    ExportedWidgetScreen:
      type: object
      properties:
        screenId:
          type: string
          minLength: 1
          maxLength: 254
        interactions:
          type: array
          items:
            $ref: '#/components/schemas/Interaction'
        contents:
          type: object
        componentsConditions:
          allOf:
            - $ref: '#/components/schemas/google.protobuf.ListValue'
          description: >-
            The screen's component conditions (hide/disable/read-only rules), in
            the same JSON shape
             flows use. A list rather than the bytes WidgetScreen uses, so the exported file stays
             readable and diffable.
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
      required:
        - screenId
        - contents
    ExportedWidgetTranslation:
      type: object
      properties:
        enabled:
          type: boolean
        connectorId:
          type: string
          maxLength: 254
        sourceLanguage:
          type: string
          maxLength: 254
        targetLanguages:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
    FilterCondition:
      type: object
      properties:
        key:
          type: string
        value:
          type: array
          items:
            type: string
        operator:
          type: string
        type:
          type: string
        valueStr:
          type: string
    Flow:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        version:
          type: integer
          format: int32
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1024
        dsl:
          type: object
        modifiedTime:
          type: string
          format: int64
        etag:
          type: string
        disabled:
          type: boolean
        translate:
          type: boolean
        translateConnectorID:
          type: string
          maxLength: 254
        translateSourceLang:
          type: string
          maxLength: 254
        translateTargetLangs:
          type: array
          items:
            type: string
        fingerprint:
          type: boolean
        widget:
          type: boolean
        sharedInteractions:
          type: array
          items:
            $ref: '#/components/schemas/Interaction'
        management:
          type: boolean
        managementConfig:
          $ref: '#/components/schemas/ManagementConfig'
        referencesGlobalStrings:
          type: boolean
        clientValidationTracking:
          type: boolean
      required:
        - id
        - name
    FlowLocalizationOverrides:
      type: object
      properties:
        id:
          type: string
          maxLength: 254
        version:
          type: integer
          format: int32
        modifiedTime:
          type: string
          format: int64
        flowId:
          type: string
          maxLength: 254
        languages:
          type: object
          additionalProperties:
            type: object
    FlowTemplate:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1024
        dsl:
          type: object
        modifiedTime:
          type: string
          format: int64
        etag:
          type: string
        tags:
          type: array
          items:
            type: string
        methods:
          type: array
          items:
            type: string
        screens:
          type: array
          items:
            $ref: '#/components/schemas/FlowTemplateScreen'
        keywords:
          type: array
          items:
            type: string
        management:
          type: boolean
        managementConfig:
          $ref: '#/components/schemas/ManagementConfig'
      required:
        - id
        - name
    FlowTemplateScreen:
      type: object
      properties:
        id:
          type: string
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/Input'
        interactions:
          type: array
          items:
            $ref: '#/components/schemas/Interaction'
        htmlTemplate:
          type: object
    GetManagementFlowAsyncResultRequest:
      type: object
      properties:
        executionId:
          type: string
    ImportFlowDeprecatedRequest:
      type: object
      properties:
        flowId:
          type: string
          minLength: 1
          maxLength: 254
        flow:
          $ref: '#/components/schemas/Flow'
        screens:
          type: array
          items:
            $ref: '#/components/schemas/Screen'
      required:
        - flowId
        - flow
    ImportFlowDeprecatedResponse:
      type: object
      properties:
        flow:
          $ref: '#/components/schemas/Flow'
        screens:
          type: array
          items:
            $ref: '#/components/schemas/Screen'
    ImportFlowRequest:
      type: object
      properties:
        flow:
          $ref: '#/components/schemas/ExportedFlow'
        skipRender:
          type: boolean
        changelog:
          type: string
          maxLength: 1024
      required:
        - flow
    ImportThemeDeprecatedRequest:
      type: object
      properties:
        theme:
          $ref: '#/components/schemas/Theme'
      required:
        - theme
    ImportThemeDeprecatedResponse:
      type: object
      properties:
        theme:
          $ref: '#/components/schemas/Theme'
    ImportThemeRequest:
      type: object
      properties:
        theme:
          $ref: '#/components/schemas/ExportedTheme'
      required:
        - theme
    Input:
      type: object
      properties:
        type:
          type: string
        name:
          type: string
        required:
          type: boolean
        visible:
          type: boolean
        displayName:
          type: string
        displayType:
          type: string
        dependsOn:
          type: array
          items:
            type: string
        nameValueMap:
          type: object
        contextAware:
          type: boolean
        options:
          type: array
          items:
            $ref: '#/components/schemas/Option'
        defaultValue:
          type: string
        helperText:
          type: string
    Interaction:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        label:
          type: string
        icon:
          type: string
        subType:
          type: string
    ManagementConfig:
      type: object
      properties:
        triggers:
          $ref: '#/components/schemas/ManagementConfigTriggers'
    ManagementConfigEventTriggers:
      type: object
      properties:
        triggeringEventTypes:
          type: array
          items:
            type: string
    ManagementConfigTriggers:
      type: object
      properties:
        enabled:
          type: boolean
        triggerType:
          type: string
        eventTriggers:
          $ref: '#/components/schemas/ManagementConfigEventTriggers'
    ManagementFlowOptions:
      type: object
      properties:
        input:
          type: object
        preview:
          type: boolean
        tenant:
          type: string
          maxLength: 254
    Option:
      type: object
      properties:
        value:
          type: string
        label:
          type: string
    ProjectReferences:
      type: object
      properties:
        connectors:
          type: object
          additionalProperties:
            type: string
        oauth:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        omitted:
          type: array
          items:
            type: string
        roles:
          type: object
          additionalProperties:
            type: string
        userAttributes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        tenantAttributes:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
      description: >-
        Used by managementservice snapshots - make sure not to break
        compatibility
    RunManagementFlowAsyncResponse:
      type: object
      properties:
        executionId:
          type: string
    RunManagementFlowRequest:
      type: object
      properties:
        flowId:
          type: string
        options:
          $ref: '#/components/schemas/ManagementFlowOptions'
    RunManagementFlowResponse:
      type: object
      properties:
        output:
          type: object
    Screen:
      type: object
      properties:
        id:
          type: string
        version:
          type: integer
          format: int32
        flowId:
          type: string
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/Input'
        interactions:
          type: array
          items:
            $ref: '#/components/schemas/Interaction'
        htmlTemplate:
          type: object
        componentsVersion:
          type: string
    SearchFlowTemplatesRequest:
      type: object
      properties: {}
    SearchFlowsRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
    Theme:
      type: object
      properties:
        id:
          type: string
        version:
          type: integer
          format: int32
        cssTemplate:
          type: object
        componentsVersion:
          type: string
        codeMode:
          type: boolean
    BatchSaveOAuthAppTenantTokensRequest:
      type: object
      properties:
        tokens:
          type: array
          items:
            $ref: '#/components/schemas/SaveOAuthAppTenantTokenItem'
          minItems: 1
          maxItems: 500
      required:
        - tokens
    BatchSaveOAuthAppTokensResponse:
      type: object
      properties:
        failures:
          type: array
          items:
            $ref: '#/components/schemas/SaveOAuthAppTokenFailure'
      description: Shared response for both user and tenant batch endpoints.
    BatchSaveOAuthAppUserTokensRequest:
      type: object
      properties:
        tokens:
          type: array
          items:
            $ref: '#/components/schemas/SaveOAuthAppUserTokenItem'
          minItems: 1
          maxItems: 500
      required:
        - tokens
    SaveOAuthAppTenantTokenItem:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
          minLength: 1
        refreshToken:
          type: string
          maxLength: 10000
        accessToken:
          type: string
          maxLength: 10000
        accessTokenExpiry:
          type: integer
          format: int32
        accessTokenType:
          type: string
          maxLength: 32
        scopes:
          type: array
          items:
            type: string
        externalIdentifier:
          type: string
          maxLength: 254
        idToken:
          type: string
          maxLength: 10000
        grantedBy:
          type: string
          maxLength: 254
        refreshTokenExpiry:
          type: integer
          format: int32
      required:
        - appId
        - tenantId
    SaveOAuthAppTenantTokenRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
          minLength: 1
        refreshToken:
          type: string
          maxLength: 10000
        accessToken:
          type: string
          maxLength: 10000
        accessTokenExpiry:
          type: integer
          format: int32
        accessTokenType:
          type: string
          maxLength: 32
        scopes:
          type: array
          items:
            type: string
        externalIdentifier:
          type: string
          maxLength: 254
        idToken:
          type: string
          maxLength: 10000
        verifyRefresh:
          type: boolean
        grantedBy:
          type: string
          maxLength: 254
        refreshTokenExpiry:
          type: integer
          format: int32
      required:
        - appId
        - tenantId
    SaveOAuthAppTenantTokenResponse:
      type: object
      properties: {}
    SaveOAuthAppTokenFailure:
      type: object
      properties:
        appId:
          type: string
        userId:
          type: string
        tenantId:
          type: string
        errorCode:
          type: string
        reason:
          type: string
      description: >-
        Shared failure descriptor for batch endpoints (response-only, never
        validated as input).
         The SAME message is returned by both the user and tenant batch endpoints, so userId and tenantId
         are `optional`: only the one relevant to the variant is populated, and the other is absent (not an
         empty string) on the wire — callers of the user endpoint never see a stray tenantId and vice versa.
    SaveOAuthAppUserTokenItem:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        userId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
        refreshToken:
          type: string
          maxLength: 10000
        accessToken:
          type: string
          maxLength: 10000
        accessTokenExpiry:
          type: integer
          format: int32
        accessTokenType:
          type: string
          maxLength: 32
        scopes:
          type: array
          items:
            type: string
        externalIdentifier:
          type: string
          maxLength: 254
        idToken:
          type: string
          maxLength: 10000
        grantedBy:
          type: string
          maxLength: 254
        refreshTokenExpiry:
          type: integer
          format: int32
      description: >-
        Batch items mirror the single-upload requests but deliberately omit
        verifyRefresh — batch is
         write-only and never calls the provider, so the field must not be expressible here.
      required:
        - appId
        - userId
    SaveOAuthAppUserTokenRequest:
      type: object
      properties:
        appId:
          type: string
          minLength: 1
          maxLength: 254
        userId:
          type: string
          minLength: 1
          maxLength: 254
        tenantId:
          type: string
        refreshToken:
          type: string
          maxLength: 10000
        accessToken:
          type: string
          maxLength: 10000
        accessTokenExpiry:
          type: integer
          format: int32
        accessTokenType:
          type: string
          maxLength: 32
        scopes:
          type: array
          items:
            type: string
        externalIdentifier:
          type: string
          maxLength: 254
        idToken:
          type: string
          maxLength: 10000
        verifyRefresh:
          type: boolean
        grantedBy:
          type: string
          maxLength: 254
        refreshTokenExpiry:
          type: integer
          format: int32
      required:
        - appId
        - userId
    SaveOAuthAppUserTokenResponse:
      type: object
      properties: {}
    URLParam:
      type: object
      properties:
        key:
          type: string
          minLength: 1
          maxLength: 254
        value:
          type: string
          minLength: 1
          maxLength: 4096
      required:
        - key
        - value
    projectv1.ApplicationScope:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 1000
        description:
          type: string
          maxLength: 100000
        optional:
          type: boolean
        values:
          type: array
          items:
            type: string
      description: >-
        Keep this message synchronized with the matching one in
        ManagementService
      required:
        - name
    CIMDDomainPolicies:
      type: object
      properties:
        policies:
          type: array
          items:
            $ref: '#/components/schemas/CIMDDomainPolicy'
          maxItems: 100
    CIMDDomainPolicy:
      type: object
      properties:
        domainPattern:
          type: string
          minLength: 1
          maxLength: 500
        enabled:
          type: boolean
      required:
        - domainPattern
    CIMDSettings:
      type: object
      properties:
        enabled:
          type: boolean
        domainPolicies:
          $ref: '#/components/schemas/CIMDDomainPolicies'
    CreateDynamicRegistrationTemplateRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1000
        loginPageURL:
          type: string
        sessionSettings:
          $ref: '#/components/schemas/projectv1.ThirdPartyApplicationSessionSettings'
        skipConsentScreen:
          type: boolean
        forceAddAllAuthorizationInfo:
          type: boolean
        tags:
          type: array
          items:
            type: string
        fallbackClientLogo:
          type: string
          maxLength: 2097152
      required:
        - name
    CreateDynamicRegistrationTemplateResponse:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/DynamicRegistrationTemplate'
    CreateGovernanceAccessRequestRequest:
      type: object
      properties:
        requestorUserId:
          type: string
          description: The console user the request is raised for.
          minLength: 1
        clientName:
          type: string
          description: The name for the agent client.
        clientType:
          type: string
          description: The type of agent client requested.
        grantTypes:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            The OAuth grant types requested: authCode, clientCredentials,
            jwtBearer or ciba.
        targets:
          type: array
          items:
            $ref: '#/components/schemas/GovernanceAccessRequestTarget'
          description: The resources and connections the client asks to reach.
        scopes:
          type: array
          items:
            type: string
        justification:
          type: string
          description: The requester's reason for the request.
      description: A developer's request to provision an agent client.
      required:
        - requestorUserId
    CreatePolicyRuleRequest:
      type: object
      properties:
        policyRule:
          $ref: '#/components/schemas/PolicyRule'
    CreatePolicyRuleResponse:
      type: object
      properties:
        policyRule:
          $ref: '#/components/schemas/PolicyRule'
    CreateResourceRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 254
        scopes:
          $ref: '#/components/schemas/DynamicClientRegistrationApprovedScopes'
        userAccess:
          type: string
          description: 'User access to the resource: allow, deny or allowViaPolicy.'
        clientAccess:
          type: string
          description: 'Client access to the resource: allow, deny or allowViaPolicy.'
        description:
          type: string
          maxLength: 1000
        uri:
          type: string
          description: >-
            Resource URI, used as the access token audience. For an MCP server,
            this is the MCP server URL and is required.
          minLength: 1
          maxLength: 3000
        type:
          type: string
          description: >-
            The kind of Resource. Use `api` for an API Resource that protects a
            backend you build, or `mcp` for an MCP Server Resource that serves
            tools over the Model Context Protocol. Set it on every create
            request. `dynamicRegistrationSettings` applies only when `type` is
            `mcp`.
          enum:
            - api
            - mcp
        dynamicRegistrationSettings:
          allOf:
            - $ref: '#/components/schemas/DynamicRegistrationSettings'
          description: >-
            Client registration settings (DCR, CIMD, login page and client
            defaults). Used by MCP servers.
        idJagTarget:
          $ref: '#/components/schemas/IdJagTargetSettings'
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
      required:
        - name
        - uri
    CreateResourceResponse:
      type: object
      properties:
        resource:
          $ref: '#/components/schemas/Resource'
    DeleteDynamicRegistrationTemplateRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteDynamicRegistrationTemplatesRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
    DeletePolicyRuleRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
      required:
        - id
    DeletePolicyRuleResponse:
      type: object
      properties:
        id:
          type: string
    DeleteResourceRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
      required:
        - id
    DeleteResourcesRequest:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
    DynamicClientRegistrationApprovedScopes:
      type: object
      properties:
        permissionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/projectv1.ApplicationScope'
        attributesScopes:
          type: array
          items:
            $ref: '#/components/schemas/projectv1.ApplicationScope'
        connectionsScopes:
          type: array
          items:
            $ref: '#/components/schemas/projectv1.ApplicationScope'
    DynamicRegistrationSettings:
      type: object
      properties:
        dynamicRegistration:
          allOf:
            - $ref: >-
                #/components/schemas/projectv1.McpServerDynamicClientRegistration
          description: >-
            Dynamic client registration (DCR) for MCP clients. Ignored when
            issuerType is project, where
             registration is enabled in the project OIDC settings instead.
        cimdSettings:
          allOf:
            - $ref: '#/components/schemas/CIMDSettings'
          description: Client ID metadata document (CIMD) settings for MCP clients.
        dynamicRegistrationTemplateId:
          type: string
          description: >-
            ID of the dynamic registration template to source client defaults
            from. Required when useTemplate is true.
        useTemplate:
          type: boolean
          description: >-
            When true, client defaults come from the template referenced by
            dynamicRegistrationTemplateId instead of the inline fields.
        loginPageURL:
          type: string
          description: >-
            Login page URL that clients registered for this resource send users
            to. Required when DCR or CIMD is enabled,
             unless useTemplate is true or issuerType is project.
          maxLength: 3000
        skipConsentScreen:
          type: boolean
        forceAddAllAuthorizationInfo:
          type: boolean
        tags:
          type: array
          items:
            type: string
        sessionSettings:
          $ref: '#/components/schemas/projectv1.ThirdPartyApplicationSessionSettings'
        fallbackClientLogo:
          type: string
          maxLength: 2097152
        overrideProjectSettings:
          type: boolean
          description: >-
            optional so an update that omits it keeps the stored value instead
            of resetting it.
        issuerType:
          type: string
          description: >-
            OAuth issuer the MCP server advertises: project (the project OIDC
            issuer) or mcpServer (a per-server issuer).
             Defaults on create based on the project, and keeps its stored value when omitted on update.
      description: >-
        DynamicRegistrationSettings groups the DCR/CIMD configuration plus
        inline
         client-side defaults for an mcp-typed Resource. Only meaningful when the
         parent Resource has type=mcp.

         When useTemplate is true, the resource MUST reference a non-empty
         dynamicRegistrationTemplateId, and the client defaults
         (loginPageURL, sessionSettings, skipConsentScreen,
         forceAddAllAuthorizationInfo, tags, plus template-only approvedCallbackUrls
         and logo) are sourced from that template. When useTemplate is false, the
         inline fields on this message are used directly.
    DynamicRegistrationTemplate:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        version:
          type: string
          format: int64
        name:
          type: string
          minLength: 1
          maxLength: 254
        description:
          type: string
          maxLength: 1000
        loginPageURL:
          type: string
          maxLength: 3000
        sessionSettings:
          $ref: '#/components/schemas/projectv1.ThirdPartyApplicationSessionSettings'
        skipConsentScreen:
          type: boolean
        forceAddAllAuthorizationInfo:
          type: boolean
        tags:
          type: array
          items:
            type: string
        createdTime:
          type: string
          format: int64
        modifiedTime:
          type: string
          format: int64
        fallbackClientLogo:
          type: string
          maxLength: 2097152
      description: DynamicRegistrationTemplate CRUD messages
      required:
        - id
        - name
    GetGovernanceAccessRequestRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
      required:
        - id
    GovernanceAccessRequest:
      type: object
      properties:
        id:
          type: string
        requestorUserId:
          type: string
          description: >-
            The user the request was raised for, and their display name at that
            time.
        requestorName:
          type: string
        clientType:
          type: string
          description: The type of agent client requested.
        grantTypes:
          type: array
          items:
            type: string
          description: The OAuth grant types requested for the client.
        targets:
          type: array
          items:
            $ref: '#/components/schemas/GovernanceAccessRequestTarget'
          description: The resources and connections the client asks to reach.
        scopes:
          type: array
          items:
            type: string
        justification:
          type: string
          description: The requester's reason for the request.
        status:
          type: string
          description: '"pending", "approved" or "denied".'
        resolvedByUserId:
          type: string
          description: >-
            The user who approved or denied the request, with their display name
            at
             resolve time. A request resolved through the management API has an empty
             user id and the name "Management API"; an auto-approved request has neither.
        resolvedByName:
          type: string
        resolutionNote:
          type: string
          description: >-
            The note recorded with the resolution: the deny reason or the
            approve
             comment, depending on status.
        clientId:
          type: string
          description: The client id of the agent client provisioned on approval.
        clientAppId:
          type: string
          description: >-
            The application id the agent client is provisioned with. Reserved
            when the
             request is created, so a policy rule can target the agent before approval.
             Empty on older requests.
        createdTime:
          type: string
          format: int64
        modifiedTime:
          type: string
          format: int64
        clientName:
          type: string
          description: The name requested for the agent client.
        clientDeleted:
          type: boolean
          description: >-
            Read-only, server-set: the provisioned client has since been
            deleted. The
             request is kept as the record of the approval.
      description: >-
        A developer's request to provision an agent client, reviewed by an
        Agentic
         Governance Suite admin.
    GovernanceAccessRequestTarget:
      type: object
      properties:
        name:
          type: string
          description: >-
            The name of the target, as listed in the project's resources or
            connections.
        kind:
          type: string
          description: '"resource" (a backend API or MCP server) or "connection".'
        targetId:
          type: string
          description: >-
            Read-only, server-set: the id of the resource the name matched at
            creation,
             so a later rename does not break the reference. Empty on connections and on
             older requests, which are matched by name. Ignored on create.
        scopes:
          type: array
          items:
            type: string
          description: >-
            Scopes requested on this target. Leave empty when allScopes is set;
            both
             empty means no scope is requested on the target.
        allScopes:
          type: boolean
          description: Request any scope the target offers instead of an explicit list.
      description: >-
        A resource or connection an access request asks the agent client to
        reach.
    IdJagTargetClient:
      type: object
      properties:
        targetClientId:
          type: string
          maxLength: 254
      description: >-
        A struct rather than a bare client id so further per-pair attributes are
        additive.
    IdJagTargetSettings:
      type: object
      properties:
        authorizationServer:
          type: string
          minLength: 1
          maxLength: 3000
        targetTenant:
          type: string
          maxLength: 255
      description: >-
        IdJagTargetSettings configures the ID-JAG (Cross App Access) assertion
        an inbound
         app receives when it exchanges a token for this api-typed Resource: an external
         server (typically a remote MCP server) protected by another authorization server.
         The values describe the TARGET system that will accept the assertion, not this
         project. Not allowed on mcp-typed Resources, which this project protects itself.
      required:
        - authorizationServer
    LoadAllDynamicRegistrationTemplatesResponse:
      type: object
      properties:
        templates:
          type: array
          items:
            $ref: '#/components/schemas/DynamicRegistrationTemplate'
        total:
          type: integer
          format: int32
    LoadAllResourcesResponse:
      type: object
      properties:
        resources:
          type: array
          items:
            $ref: '#/components/schemas/Resource'
        total:
          type: integer
          format: int32
    LoadDynamicRegistrationTemplateResponse:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/DynamicRegistrationTemplate'
    LoadPolicyRuleRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
      required:
        - id
    LoadPolicyRuleResponse:
      type: object
      properties:
        policyRule:
          $ref: '#/components/schemas/PolicyRule'
    LoadPolicyRuleSettingsRequest:
      type: object
      properties: {}
    LoadPolicyRuleSettingsResponse:
      type: object
      properties:
        settings:
          $ref: '#/components/schemas/PolicyRuleSettings'
    LoadResourceByURIResponse:
      type: object
      properties:
        resource:
          $ref: '#/components/schemas/Resource'
    LoadResourceResponse:
      type: object
      properties:
        resource:
          $ref: '#/components/schemas/Resource'
    MTLSClientAuthCredential:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          minLength: 1
          maxLength: 100
        subjectDn:
          type: string
          maxLength: 1024
        pem:
          type: string
          maxLength: 65536
        thumbprint:
          type: string
          maxLength: 100
        createdAt:
          type: integer
          format: int32
      required:
        - name
    MTLSClientAuthenticationMethods:
      type: object
      properties:
        tlsClientAuth:
          $ref: '#/components/schemas/TLSClientAuth'
        selfSignedTlsClientAuth:
          $ref: '#/components/schemas/SelfSignedTLSClientAuth'
    projectv1.McpServerDynamicClientRegistration:
      type: object
      properties:
        enabled:
          type: boolean
        disableApprovedScopesAsDefault:
          type: boolean
        flowId:
          type: string
          maxLength: 1000
    PolicyRule:
      type: object
      properties:
        id:
          type: string
        version:
          type: string
          format: int64
        name:
          type: string
        description:
          type: string
        enabled:
          type: boolean
        ruleFamily:
          type: string
        actionKinds:
          type: array
          items:
            type: string
        effect:
          type: string
        principalType:
          type: string
        principalSelector:
          type: array
          items:
            type: string
        resourceTargets:
          type: array
          items:
            $ref: '#/components/schemas/RuleResourceTarget'
        grants:
          type: array
          items:
            $ref: '#/components/schemas/PolicyRuleGrant'
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/PolicyRuleCondition'
          description: |-
            Structured conditions (AND-ed). operator is one of: equal, notEqual,
             contains, notContains, in, notIn. value is a scalar (equal/contains)
             or a list (in/notIn), carried as a JSON value.
          maxItems: 255
        createdTime:
          type: integer
          description: >-
            int32 epoch seconds: proto3 emits int64 as JSON string. See
            .claude/rules/proto-files.md.
          format: int32
        modifiedTime:
          type: integer
          format: int32
        evaluationOrder:
          type: integer
          description: >-
            Server-assigned evaluation position (1-based); changes only via
            ReorderPolicyRule.
          format: int32
        expireTime:
          type: integer
          description: >-
            Epoch seconds after which the rule is no longer evaluated; 0 means
            never.
          format: int32
    PolicyRuleCondition:
      type: object
      properties:
        key:
          type: string
          minLength: 1
          maxLength: 254
        operator:
          type: string
        value:
          $ref: '#/components/schemas/google.protobuf.Value'
      required:
        - key
    PolicyRuleGrant:
      type: object
      properties:
        scopes:
          type: array
          items:
            type: string
        allowedAudiences:
          type: array
          items:
            type: string
        allScopes:
          type: boolean
    PolicyRuleSettings:
      type: object
      properties:
        defaultAction:
          type: string
          minLength: 1
        version:
          type: string
          format: int64
      description: >-
        defaultAction decides the verdict when rules target the resource but
        none
         matches. An unconfigured project reports the empty value; updates must pick
         allow or block — the choice is one-way and cannot return to unset.
      required:
        - defaultAction
    RARTypeSchema:
      type: object
      properties:
        type:
          type: string
          minLength: 1
          maxLength: 200
        schema:
          type: object
      required:
        - type
    ReorderPolicyRuleRequest:
      type: object
      properties:
        ruleId:
          type: string
          minLength: 1
        position:
          type: integer
          format: int32
      description: |-
        Moves one rule to a 1-based position in the evaluation order; rules in
         between shift accordingly. The server computes the resulting order under
         lock, so no rule list crosses the wire.
      required:
        - ruleId
        - position
    ReorderPolicyRuleResponse:
      type: object
      properties:
        policyRules:
          type: array
          items:
            $ref: '#/components/schemas/PolicyRule'
    ResolveGovernanceAccessRequestRequest:
      type: object
      properties:
        id:
          type: string
          minLength: 1
        action:
          type: string
          description: '"approve" or "deny".'
          minLength: 1
        resolutionNote:
          type: string
          description: Optional note recorded with the resolution.
      required:
        - id
        - action
    Resource:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 254
        version:
          type: string
          format: int64
        name:
          type: string
          minLength: 1
          maxLength: 254
        scopes:
          $ref: '#/components/schemas/DynamicClientRegistrationApprovedScopes'
        createdTime:
          type: string
          format: int64
        modifiedTime:
          type: string
          format: int64
        userAccess:
          type: string
          description: 'User access to the resource: allow, deny or allowViaPolicy.'
        clientAccess:
          type: string
          description: 'Client access to the resource: allow, deny or allowViaPolicy.'
        description:
          type: string
          maxLength: 1000
        uri:
          type: string
          description: >-
            Resource URI, used as the access token audience. For an MCP server,
            this is the MCP server URL and is required.
          minLength: 1
          maxLength: 3000
        type:
          type: string
          description: >-
            The kind of Resource, either `api` for an API Resource or `mcp` for
            an MCP Server Resource. `dynamicRegistrationSettings` applies only
            when `type` is `mcp`.
          enum:
            - api
            - mcp
        dynamicRegistrationSettings:
          allOf:
            - $ref: '#/components/schemas/DynamicRegistrationSettings'
          description: >-
            Client registration settings (DCR, CIMD, login page and client
            defaults). Used by MCP servers.
        idJagTarget:
          $ref: '#/components/schemas/IdJagTargetSettings'
        rarSettings:
          $ref: '#/components/schemas/ThirdPartyApplicationRARSettings'
      description: Resource CRUD messages
      required:
        - id
        - name
        - uri
    RuleResourceTarget:
      type: object
      properties:
        type:
          type: string
          minLength: 1
        allOfType:
          type: boolean
        ids:
          type: array
          items:
            type: string
      description: |-
        RuleResourceTarget identifies a Resource subset for an PolicyRule. A
         target with AllOfType=true matches every resource of Type; otherwise the
         IDs list enumerates the specific resources.
      required:
        - type
    SearchGovernanceAccessRequestsRequest:
      type: object
      properties:
        limit:
          type: integer
          description: Maximum number of requests to return. 0 returns all matches.
          format: int32
        page:
          type: integer
          description: 0-based page number, used with limit.
          format: int32
        searchFields:
          type: array
          items:
            $ref: '#/components/schemas/SearchField'
          description: Per-field filters, combined with AND. Unknown fields are ignored.
        sort:
          type: array
          items:
            $ref: '#/components/schemas/projectv1.SortField'
          description: Sort order. Defaults to newest first.
        text:
          type: string
          description: Free-text search across the request's text fields.
    SearchGovernanceAccessRequestsResponse:
      type: object
      properties:
        requests:
          type: array
          items:
            $ref: '#/components/schemas/GovernanceAccessRequest'
        total:
          type: integer
          description: Total number of matching requests, regardless of paging.
          format: int32
    SearchPolicyRulesRequest:
      type: object
      properties:
        searchFields:
          type: array
          items:
            $ref: '#/components/schemas/SearchField'
        batchSize:
          type: integer
          format: int32
        page:
          type: integer
          format: int32
        text:
          type: string
        sort:
          type: array
          items:
            $ref: '#/components/schemas/projectv1.SortField'
        ruleFamily:
          type: array
          items:
            type: string
        actionKind:
          type: array
          items:
            type: string
        effect:
          type: array
          items:
            type: string
        principalType:
          type: array
          items:
            type: string
        resourceType:
          type: array
          items:
            type: string
        enabled:
          type: boolean
    SearchPolicyRulesResponse:
      type: object
      properties:
        policyRules:
          type: array
          items:
            $ref: '#/components/schemas/PolicyRule'
        total:
          type: integer
          format: int32
    SelfSignedTLSClientAuth:
      type: object
      properties:
        credentials:
          type: array
          items:
            $ref: '#/components/schemas/MTLSClientAuthCredential'
    projectv1.SortField:
      type: object
      properties:
        field:
          type: string
          minLength: 1
          maxLength: 100
        desc:
          type: boolean
      required:
        - field
    TLSClientAuth:
      type: object
      properties:
        credentials:
          type: array
          items:
            $ref: '#/components/schemas/MTLSClientAuthCredential'
    TemplateLocalizationOverrides:
      type: object
      properties:
        id:
          type: string
          maxLength: 254
        version:
          type: integer
          format: int32
        modifiedTime:
          type: string
          format: int64
        languages:
          type: object
          additionalProperties:
            type: object
    ThirdPartyApplicationClientAssertion:
      type: object
      properties:
        keySource:
          type: string
          minLength: 1
        jwksUri:
          type: string
          maxLength: 2048
        publicKey:
          type: string
          maxLength: 8192
        signAlgorithm:
          type: string
          maxLength: 16
      description: >-
        ThirdPartyApplicationClientAssertion is one private_key_jwt trust entry
        (RFC 7523 section 2.2): a JWKS URL
         or a PEM public key. On a CIMD app the list is derived from the client's metadata document on every refresh.
      required:
        - keySource
    ThirdPartyApplicationRARSettings:
      type: object
      properties:
        schemas:
          type: array
          items:
            $ref: '#/components/schemas/RARTypeSchema'
          maxItems: 50
    projectv1.ThirdPartyApplicationSessionSettings:
      type: object
      properties:
        enabled:
          type: boolean
        refreshTokenExpiration:
          type: integer
          format: int32
        refreshTokenExpirationUnit:
          type: string
        sessionTokenExpiration:
          type: integer
          format: int32
        sessionTokenExpirationUnit:
          type: string
        userTemplateId:
          type: string
        keyTemplateId:
          type: string
        keySessionTokenExpiration:
          type: integer
          format: int32
        keySessionTokenExpirationUnit:
          type: string
    ThirdPartyApplicationWorkloadClientAssertion:
      type: object
      properties:
        federationType:
          type: string
          minLength: 1
        trustDomain:
          type: string
          maxLength: 255
        issuer:
          type: string
          maxLength: 2048
        jwksUri:
          type: string
          maxLength: 2048
        allowedSubjects:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 2048
          minItems: 1
          maxItems: 20
        signAlgorithm:
          type: string
          maxLength: 16
      description: >-
        ThirdPartyApplicationWorkloadClientAssertion is one workload identity
        trust entry (RFC 7521 section 4.2): a
         SPIFFE trust domain (keys from its bundle endpoint, or from its OIDC Discovery Provider when issuer is set),
         or an OIDC issuer. The assertion's sub names the workload, not the client; allowedSubjects binds the
         workloads this client accepts.
      required:
        - federationType
        - allowedSubjects
    UpdateDynamicRegistrationTemplateRequest:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/DynamicRegistrationTemplate'
      required:
        - template
    UpdateDynamicRegistrationTemplateResponse:
      type: object
      properties:
        template:
          $ref: '#/components/schemas/DynamicRegistrationTemplate'
    UpdatePolicyRuleRequest:
      type: object
      properties:
        policyRule:
          $ref: '#/components/schemas/PolicyRule'
    UpdatePolicyRuleResponse:
      type: object
      properties:
        policyRule:
          $ref: '#/components/schemas/PolicyRule'
    UpdatePolicyRuleSettingsRequest:
      type: object
      properties:
        settings:
          $ref: '#/components/schemas/PolicyRuleSettings'
      required:
        - settings
    UpdatePolicyRuleSettingsResponse:
      type: object
      properties:
        settings:
          $ref: '#/components/schemas/PolicyRuleSettings'
    UpdateResourceRequest:
      type: object
      properties:
        resource:
          $ref: '#/components/schemas/Resource'
      required:
        - resource
    UpdateResourceResponse:
      type: object
      properties:
        resource:
          $ref: '#/components/schemas/Resource'
    WellKnownCustomization:
      type: object
      properties:
        id:
          type: string
        version:
          type: string
          format: int64
        hiddenFields:
          type: array
          items:
            type: string
            maxLength: 100
          maxItems: 50
        removedValues:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/WellKnownValueList'
        scopesSupported:
          $ref: '#/components/schemas/WellKnownValueDelta'
        claimsSupported:
          $ref: '#/components/schemas/WellKnownValueDelta'
        enabled:
          type: boolean
          description: >-
            Applies the customization to the served documents. Off by default:
            the configuration is kept and the base document is served until it
            is enabled
    WellKnownValueDelta:
      type: object
      properties:
        extra:
          type: array
          items:
            type: string
            maxLength: 500
          maxItems: 100
        excluded:
          type: array
          items:
            type: string
            maxLength: 500
          maxItems: 100
      description: >-
        Delta over a base advisory list: extra values are advertised in addition
        to the
         base values, excluded values are removed from them
    WellKnownValueList:
      type: object
      properties:
        values:
          type: array
          items:
            type: string
            maxLength: 500
          maxItems: 100
      description: Wrapper for map values - proto3 forbids repeated types as map values
    WorkloadMintBinding:
      type: object
      properties:
        allowedAudiences:
          type: array
          items:
            type: string
            maxLength: 254
        maxTtlSeconds:
          type: integer
          format: int32
        allowedSubjects:
          type: array
          items:
            type: string
            maxLength: 254
    WorkloadMintSettings:
      type: object
      properties:
        id:
          type: string
        version:
          type: string
          format: int64
        bindings:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/WorkloadMintBinding'
      description: >-
        Bindings is keyed by credential id, meaning the management key id of the
        caller that is
         allowed to mint. Keying by anything else breaks the security model: a policy is bound to
         the minting credential so a key cannot mint outside the policy provisioned for it.
    WorkloadMintSettingsResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/WorkloadMintSettings'
    SearchField:
      type: object
      properties:
        field:
          type: string
        valArr:
          type: array
          items:
            type: string
        valStr:
          type: string
        negative:
          type: boolean
        valType:
          type: string
      description: Custom Attributes
    DeleteAllTestUsersResponse:
      type: object
      properties: {}
    StringArray:
      type: object
      properties:
        values:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 254
        and:
          type: boolean
    WIFTrustedIssuer:
      type: object
      properties:
        name:
          type: string
          maxLength: 100
        issuer:
          type: string
        expireTime:
          type: integer
          format: int32
        audience:
          type: string
          maxLength: 500
        claimFilters:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/google.protobuf.Value'
        expireTimeUnit:
          type: string
    PatchUserRoleNames:
      type: array
      items:
        type: string
      description: >-
        Project-level role names for the user. Omit this field to leave the
        user's roles unchanged, send an empty array to remove all of them, or
        send an array of role names to replace them.
      example:
        - Tenant Admin
    EmptyBody:
      type: object
      nullable: true
  securitySchemes:
    Descope Project ID:
      type: http
      scheme: bearer
      bearerFormat: Project ID
      description: Project ID as bearer token.
    Descope Project ID:Refresh JWT:
      type: http
      scheme: bearer
      bearerFormat: ProjectId:RefreshJwt
      description: Project ID:Refresh JWT as bearer token.
    Descope Project ID:Access Key:
      type: http
      scheme: bearer
      bearerFormat: ProjectId:AccessKey
      description: Project ID:Access Key as bearer token.
    Descope Project ID:Session JWT:
      type: http
      scheme: bearer
      bearerFormat: Project ID:Session JWT
      description: Project ID:Session JWT as bearer token.
    Descope Project ID and Management Key:
      type: http
      description: Project ID:Management Key as bearer token.
      scheme: bearer
      bearerFormat: ProjectId:ManagementKey
  parameters:
    oauthProviderEnum:
      in: query
      name: provider
      description: Name of OAuth provider (case sensitive)
      schema:
        type: string
        enum:
          - apple
          - discord
          - facebook
          - github
          - gitlab
          - google
          - microsoft
    authRedirectUrl:
      in: query
      name: redirectURL
      description: URL to redirect end user to after they have successfully signed-in
      schema:
        type: string
security:
  - Descope Project ID: []
    Descope Project ID:Refresh JWT: []
    Descope Project ID:Session JWT: []
    Descope Project ID and Management Key: []
    Descope Project ID:Access Key: []
externalDocs:
  description: Descope Server
  url: https://docs.descope.com
tags:
  - name: Email
  - name: Text Message (SMS)
