Skip to main content
DELETE /api/v1/projects/{project_id}/api-keys/{id} Requires api_keys.delete permission. A revoked key can no longer be used for authentication.

Path parameters

project_id
string
required
UUID of the project.
id
string
required
UUID of the API key to revoke.

Response

deleted
boolean
required
Always true when the revocation succeeds.

Errors

StatusWhen
401Missing or invalid Bearer token
403Caller lacks api_keys.delete permission
404Project or API key not found

Example

curl -X DELETE http://localhost:8080/api/v1/projects/p1b2c3d4-e5f6-7890-abcd-ef1234567890/api-keys/k1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer <token>"
{
  "deleted": true
}

Build docs developers (and LLMs) love