API keys
Create an API key
Creates an API key with the provided name and type. The API key is returned in the response.
POST
cURL
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.
Authorizations
Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.
Body
application/json
Request to create an API key.
Type of the API key.
Available options:
PERSONAL, WORKSPACE_MANAGE_ALL, WORKSPACE_EXPORT_METRICS, WORKSPACE_INVOKE Examples:
"PERSONAL"
"WORKSPACE_EXPORT_METRICS"
"WORKSPACE_INVOKE"
"WORKSPACE_MANAGE_ALL"
Optional name for the API key
Example:
"my-api-key"
List of model IDs to scope the API key to, only present if type is 'WORKSPACE_EXPORT_METRICS' or 'WORKSPACE_INVOKE'
Example:
["aaaaaaaa"]
Response
200 - application/json
Represents an API key.
The API key string
cURL