Delete an API key (v1 / programmatic)
DELETE /api/v1/api-keys/{id}
Revokes an API key owned by the authenticated account. Requires api-keys.revoke and returns {deleted: true}. A missing or out-of-scope key returns 404.
Authenticate with a portal session token.
Parameters
idstring path required
Responses
200 Key revoked.
application/json object
deletedboolean requiredValue:true
Generated sample
{
"deleted": true
}401 Missing or invalid bearer token.
application/json object
Any keys are accepted.
403 Authenticated caller lacks the required permission, ability, or role.
application/json object
Any keys are accepted.
404 Key was not found for this account.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string