Revoke an API key. Revoked keys are rejected with HTTPDocumentation Index
Fetch the complete documentation index at: https://docs.tumban.com/llms.txt
Use this file to discover all available pages before exploring further.
401 on every
subsequent request and cannot be reactivated.
Path parameters
The
key_id from Create API key or
List API keys.Response
204 No Content on success. There is no response body.
Permissions
Revoking an API key requires a dashboard session — API-key auth (Authorization: Bearer sk_…) is not accepted on this endpoint. This
prevents a leaked API key from being used to revoke every other key in
the organization.
| Caller | Scope |
|---|---|
Dashboard session, role=admin | May revoke any key in the organization. |
Dashboard session, role=member | May revoke only keys they created themselves. |
API key (sk_…) | Rejected with 403. |
404
— the same status as a missing key — so the endpoint cannot be used to
enumerate other users’ key_ids.
Example
Errors
| Status | Detail |
|---|---|
| 403 | API key management requires a dashboard session. API keys cannot revoke API keys. |
| 404 | API key not found or already revoked (also returned to a member targeting another user’s key). |
Using the dashboard
The dashboard currently shows the trash icon on every key row,
regardless of whether the signed-in member created the key.
Server-side permission checks still apply: a member who tries to
revoke another user’s key will receive a
404 from the API and the
row will not be removed.
