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

# Exchange a one-time setup token for a scoped connector API key



## OpenAPI

````yaml /openapi.json post /api/v1/setup/exchange
openapi: 3.0.3
info:
  title: ai-cmo.dev Services API
  version: 1.0.0
servers: []
security: []
paths:
  /api/v1/setup/exchange:
    post:
      summary: Exchange a one-time setup token for a scoped connector API key
      operationId: exchangeSetupToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetupTokenExchange'
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetupTokenExchangeResult'
      security: []
components:
  schemas:
    SetupTokenExchange:
      type: object
      properties:
        token:
          type: string
          minLength: 1
          maxLength: 512
      required:
        - token
      additionalProperties: false
    SetupTokenExchangeResult:
      type: object
      properties:
        apiKey:
          type: string
        workspace:
          type: string
        scopes:
          type: array
          items:
            type: string
      required:
        - apiKey
        - workspace
        - scopes
      additionalProperties: false

````