curl --request POST \
--url https://api.baseten.co/v1/api_keys \
--header "Authorization: Api-Key $BASETEN_API_KEY" \
--data '{
  "name": "my-api-key",
  "type": "PERSONAL"
}'
{
  "api_key": "<string>"
}

Authorizations

Authorization
string
header
required

You must specify the scheme 'Api-Key' in the Authorization header. For example, Authorization: Api-Key <Your_Api_Key>

Body

application/json

Request to create an API key.

Response

200 - application/json

Represents an API key.