DELETE/api/v1/projects/{project_id}/keys/{key_id}
MCP tool: revoke_api_key
operationId revoke_api_key
Revoke a project key
Revokes the key for good: from then on it is refused with
key_revoked. Records key.revoked. Revoking a revoked key changes
nothing. An admin key may revoke any key of a live project; a project
key needs scope keys, in its own project, and may revoke itself.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_idrequired |
path | string · uuid | The project’s id |
key_idrequired |
path | string · uuid | The key’s id |
Request body
None.
Responses
204
The key is revoked
No content.
404
No such project or key in it, or another project’s (not_found)
429
The key is over its rate limit, api.rate_limit_per_minute requests a minute on this node (rate_limited)
| Header | Type | Description |
|---|---|---|
Retry-After | integer | Seconds until the key’s next request passes; rounded up. |
504
Postwind’s storage did not answer within its time limit (storage_timeout). A change the request makes may still take effect: check before repeating it. A repeat with the same Idempotency-Key never runs it twice: it is 409 idempotency_key_in_progress until the key’s 24 h end