Create a temporary API key
Authentication
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.
Request
Expiry date (ISO 8601).
Max usage count. -1 = unlimited.
Test key (true) or production key (false).
Caps to create and scope to this key. The response includes each created policy with its id, meter_definition_id, and current_state. Once a block rule's cap is reached, gateway requests with the key get 429.
Response
Max usage count. -1 = unlimited.
Spending limit in USD. null when not set.
The API key value. Only returned on creation - store it securely.