temporaryApiKeys

Update an API key

Update an API key's name, expiry, or test status.

patch/api/temporary-keys/{id}/

Path parameters

idstring required

The ID of the temporary API key to update.

Headers

Authorizationstring required

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, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Request body

namestring

Key name.

expiry_datestring date-time

Expiry date (ISO 8601).

is_testboolean

Test or production key.

prefixstring

Key prefix.

Response

Updated API key.

idstring

API key ID.

namestring

Key name.

prefixstring

Key prefix.

is_testboolean

Test or production key.

expiry_datestring date-time

Expiry date.

max_usageinteger

Max usage count. -1 = unlimited.

rate_limitinteger

Calls per minute.

spending_limitnumber double

Spending limit in USD.

created_atstring date-time

Changes