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

# Every token exchange profile, and the endpoints using it



## OpenAPI

````yaml get /api/airouter/token-exchange
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/airouter/token-exchange:
    get:
      tags:
        - AI Router
      summary: Every token exchange profile, and the endpoints using it
      operationId: list_token_exchange_profiles_api_airouter_token_exchange_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenExchangeListResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    TokenExchangeListResponse:
      properties:
        profiles:
          items:
            $ref: '#/components/schemas/TokenExchangeProfile'
          type: array
          title: Profiles
      type: object
      title: TokenExchangeListResponse
    TokenExchangeProfile:
      properties:
        name:
          type: string
          title: Name
        token_url:
          type: string
          title: Token Url
        client_id:
          type: string
          title: Client Id
        has_client_secret:
          type: boolean
          title: Has Client Secret
          default: false
        audience:
          anyOf:
            - type: string
            - type: 'null'
          title: Audience
        scope:
          anyOf:
            - type: string
            - type: 'null'
          title: Scope
        resource:
          anyOf:
            - type: string
            - type: 'null'
          title: Resource
        subject_token_header:
          anyOf:
            - type: string
            - type: 'null'
          title: Subject Token Header
        cache_ttl_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Cache Ttl Seconds
        timeout_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timeout Seconds
        verify_tls:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Verify Tls
        endpoints:
          items:
            type: string
          type: array
          title: Endpoints
        updated_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated By
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
      type: object
      required:
        - name
        - token_url
        - client_id
      title: TokenExchangeProfile
      description: 'A profile as the UI sees it: everything but the secret itself.'
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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