Lists all API keys your account has access to.
cURL
curl --request GET \ --url https://api.baseten.co/v1/api_keys \ --header "Authorization: Api-Key $BASETEN_API_KEY"
{ "name": "my-api-key", "type": "PERSONAL" }
You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>
Authorization: Api-Key <Your_Api_Key>
A list of API keys.
A list of API key information
Show child attributes
The prefix of the API key
Type of the API key.
PERSONAL
WORKSPACE_MANAGE_ALL
WORKSPACE_EXPORT_METRICS
WORKSPACE_INVOKE
Optional name for the API key
"my-api-key"
List of model IDs to scope the API key to, only present if type is 'WORKSPACE_EXPORT_METRICS' or 'WORKSPACE_INVOKE'
["aaaaaaaa"]
The name of the team associated with the API key
Was this page helpful?