Update an API key

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

Path parameters

idstringRequired
The ID of the temporary API key to update.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
namestringOptional
Key name.
expiry_datedatetimeOptional

Expiry date (ISO 8601).

is_testbooleanOptional
Test or production key.
prefixstringOptional
Key prefix.

Response

Updated API key.
idstring
API key ID.
namestring
Key name.
prefixstring
Key prefix.
is_testboolean
Test or production key.
expiry_datedatetime
Expiry date.
max_usageinteger

Max usage count. -1 = unlimited.

rate_limitinteger
Calls per minute.
spending_limitdouble
Spending limit in USD.
created_atdatetime

Errors

401
Unauthorized Error
404
Not Found Error