Create an API key
Authentication
Request
Expiry date (ISO 8601).
Max usage count. -1 = unlimited.
Test key (true) or production key (false).
Expiry date (ISO 8601).
Max usage count. -1 = unlimited.
Test key (true) or production key (false).
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan_params.credential_override in the request body, not in this authentication field.
Optional. Spending, token, or request caps to create and scope to this key in the same call. The response echoes the created policies in full (each with its id, meter_definition_id, and current_state). Caps are stored and visible as soon as they are created, but the gateway enforces them only where the limit system is enabled for your environment. Where it is not enabled, a cap records no usage and never blocks.