Skip to main content

Revoke an API key

Permanently revoke a key so it can no longer authenticate requests.

DELETE/api/admin/api-keys/{id} 🔒 API key · admin role

Permanently revokes a key. Any request using it afterward is rejected. Use this when a key is compromised or no longer needed.

Path parameters

ParameterTypeDescription
idstringThe API key ID to revoke.

Example request

curl -X DELETE https://app.talent-ray.com/api/admin/api-keys/apikey_xyz789 \
  -H "Authorization: Bearer tr_YOUR_ADMIN_KEY"

Response

200 OK

{
  "success": true
}

Status codes

StatusMeaning
200Key revoked.
401No valid API key.
403Caller is not an admin.
404Key not found.
429Rate limited.