API keys
Create a team API key
Creates a team API key with the provided name and type. The API key is returned in the response.
POST
cURL
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.
Path Parameters
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
Previous
Usage summaryReturns billing usage data within the specified date range. Includes dedicated model serving, training, and model APIs usage. The date range must not exceed 31 days.
Next
cURL