Skip to main content
DELETE
/
user
/
api-keys
/
{id}
Revoke one of my API keys
curl --request DELETE \
  --url https://{organization_id}.platform.barndoor.ai/api/llm-gateway/user/api-keys/{id} \
  --header 'Authorization: Bearer <token>'
{
  "revoked": true
}

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Path Parameters

id
string<uuid>
required

Response

Key revoked

revoked
boolean
Example:

true