Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.knoxcall.com/llms.txt

Use this file to discover all available pages before exploring further.

Mint phantom token

POST /admin/ai-gateway/{gatewayId}/agents/{agentId}/keys
Request body
{
  "name": "CI pipeline token",
  "kind": "agent",
  "dpop_required": false,
  "expires_at": "2026-12-31T23:59:59Z",
  "scope": { "models": ["claude-3-5-sonnet-20241022"] }
}
Response
{
  "key": {
    "id": "tok-...",
    "name": "CI pipeline token",
    "prefix": "kc_live_a_",
    "token": "kc_live_a_...",
    "dpop_required": false
  },
  "message": "Save this token now. It will not be shown again."
}
The raw key.token value is returned exactly once — at minting time. KnoxCall stores only a sha256 hash. Save it to your secrets manager immediately.