Create a team API key
Creates a team API key with the provided name and type.
Authorizations
Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.
Path Parameters
Body
Request to create an API key.
Type of the API key.
PERSONAL, ROUTES, WORKSPACE_MANAGE_ALL, WORKSPACE_EXPORT_METRICS, WORKSPACE_INVOKE, WORKSPACE_MANAGE_API_KEYS "PERSONAL"
"ROUTES"
"WORKSPACE_MANAGE_API_KEYS"
"WORKSPACE_EXPORT_METRICS"
"WORKSPACE_INVOKE"
"WORKSPACE_MANAGE_ALL"
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'
Team ID for a team-scoped key. When omitted, uses the team in the URL if present, otherwise your organization's default team. Must match the URL team when both are provided. Not supported for PERSONAL or WORKSPACE_MANAGE_API_KEYS keys.
1Response
Represents an API key.
The API key string