Skip to main content

Revoke an API key or disconnect an application.

POST/api/v1/api-keys/{api_key_id}/revokeapi_keys:revoke

A caller revokes the keys they created; Revoke Other Users Api Tokens allows revoking any key of the company. A revoked key stops working at once. Revoking the key this request authenticated with ends this session's access.

Scopeapi_keys:revoke (sensitive)
AsynchronousNo
MCP toolrevoke_api_key
Portal permissionsrevoke_api_tokens

Parameters​

NameInTypeRequiredDescription
api_key_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Responses​

StatusDescriptionBody
200Success.application/json APIKeyRevocation
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

APIKeyRevocation​

FieldTypeRequiredDescription
already_revokedbooleanRequired
api_key_idstringRequired
is_current_grantbooleanRequiredTrue when the revoked key is the one this request authenticated with.
namestring or nullRequired
revokedbooleanRequiredTrue when this call revoked the key; false when it was already revoked.
revoked_atstring (date-time) or nullRequired
was_connected_applicationbooleanRequiredTrue for a connected application (an MCP grant), false for an API key.