Workspace account
DELETE /v1/me/api-keys/{key_id}
Revoke an API key.
Family: Workspace account · Operation ID: revokeTenantApiKey
Access
Workspace API key: Authorization: Bearer <key>. The key is scoped to its workspace; the backend checks operation permissions and quota.
Required scope: admin
Create a key in Developer settings. Set API_BASE_URL to the current app origin.
Request example
curl --fail-with-body -X DELETE "$API_BASE_URL/v1/me/api-keys/{key_id}" \
-H "Authorization: Bearer $API_KEY"Replace each {parameter} segment in the path with its URL-encoded value.
Parameters
[
{
"description": "API key identifier",
"in": "path",
"name": "key_id",
"required": true,
"schema": {
"format": "uuid",
"type": "string"
}
}
]Responses
200
{
"description": "API key revoked"
}default
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorEnvelope"
}
}
},
"description": "Request error"
}