Enable/Disable an API Key
Enable or disable a Regular API Key.
Request Parameters
| Field | Required | Type | Description |
|---|---|---|---|
disabled | Yes | boolean | true=disable, false=enable |
Response Example
{
"id": "key_01j...",
"disabled": true,
"status": "disabled",
"status_reason": "manual"
}
Enabling only clears the manual disable flag. If the user state, subscription, validity, or limit still does not meet the conditions, the response may still be disabled=true with the corresponding status_reason.
Enabling only clears the manual disable flag (manual). If the account is disabled, the subscription is pending, the key has expired, or the limit is exhausted, the response may still be disabled=true, with the reason explained by status_reason. After a disable or enable request is successfully submitted, the auth cache is invalidated immediately, and old authorization is not allowed to continue.
For general request conventions, data structures, and error codes, see the Key Management API overview.