Skip to main content
curl --request DELETE \
  --url https://api.baseten.co/v1/gateway/groups/abc123hash/api_keys/aBcDeFg \
  --header "Authorization: Api-Key $BASETEN_API_KEY"
{
  "prefix": "aBcDeFg"
}

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

Revoke a single federated API key by its prefix. Other keys under the same group are unaffected. Revocation is irreversible: the key can’t authenticate any further request and can’t be restored. To restore access for the same downstream customer, mint a new key under the same group with Create an API key.

Authentication

Authorization
string
required
Workspace API key with management scope, formatted as Api-Key <your-key>.

Path parameters

group_id
string
required
Internal Baseten ID of the owning group.
api_key_prefix
string
required
The key’s prefix.

Response

prefix
string
required
The prefix of the revoked key.

Errors

StatusMeaning
403 ForbiddenThe group or key exists but isn’t in your workspace, or the caller doesn’t have management scope.
404 Not FoundNo group or key with these identifiers in your workspace, or the key has already been revoked.
curl --request DELETE \
  --url https://api.baseten.co/v1/gateway/groups/abc123hash/api_keys/aBcDeFg \
  --header "Authorization: Api-Key $BASETEN_API_KEY"
{
  "prefix": "aBcDeFg"
}