Skip to main content
POST
Set API Key Credit Limit

Authentication

Requires an API key in the Authorization header.

Request

string
required
The ID of the API key to update.
integer
The maximum number of credits this key may spend. Must be >= 0. Send null to remove the cap (unlimited usage).

Set a limit

Remove the limit (unlimited)

Response

string
Confirmation message.
integer
The newly-applied credit cap, or null when the cap was removed.
Setting a limit requires a non-readonly role in the active workspace.