4e064cf81dae

latestOpenAPI 3.1.02026-08-131831,331960.0 KB
temporaryApiKeys

Update an API key

Update an API key's name, expiry, usage, rate, or spending limit.

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, 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 body

namestring

Key name.

expiry_datestring date-time

Expiry date (ISO 8601).

max_usageinteger

Maximum use count. -1 means unlimited.

rate_limitnumber double nullable
spending_limitnumber double nullable

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_limitnumber double nullable

Requests per minute. null uses the organization default.

spending_limitnumber double

Spending limit in USD.

createdstring date-time

When the API key was created.

unique_organization_idstring nullable

Owning organization UUID.