Skip to main content
Exchange a sponsor token for the first org-scoped API key, billing snapshot, limits, and MCP install metadata
Audience: application and coding agent.

Canonical metadata

  • requestId
  • organization
  • apiKey
  • billing
  • limits
  • distribution
  • sponsorToken

Example request

Example response

Authentication

This exchange is intentionally pre-auth. Do not send x-api-key or Authorization; submit the short-lived, single-use sponsor token in the JSON body. A human organization member creates that sponsor token through POST /v1/agent/bootstrap_tokens. The issued API-key secret is returned once and must not be logged.

Give this prompt to your agent

Failure posture

  • bootstrap_token_invalid returns 404; obtain a valid sponsor token
  • bootstrap_token_expired returns 410; request a new sponsor token
  • bootstrap_token_already_used returns 409; sponsor tokens are single-use
  • bootstrap_token_scope_invalid returns 400; self-serve exchange scopes are limited to read:sec
  • api_key_limit_reached returns 402; resolve the organization’s active API-key limit before retrying