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

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.

Fetch one federated API key by its prefix. Only metadata is returned; the plaintext key is shown exactly once at creation and is unrecoverable afterward. To inspect the model access and limits the key resolves to, fetch its group and read the effective_models block.

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 (the substring before the . in the full key string). Returned as prefix from Create an API key and from List API keys for a group.

Response

prefix
string
required
The key’s prefix.
name
string
Display name set when the key was minted. null if no name was provided.

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 been revoked.
curl --request GET \
  --url https://api.baseten.co/v1/gateway/groups/abc123hash/api_keys/aBcDeFg \
  --header "Authorization: Api-Key $BASETEN_API_KEY"
{
  "prefix": "aBcDeFg",
  "name": "prod-key-1"
}