Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

machine_user_id
string
required

Body

application/json
name
string | null

Name of the API key: lowercase letters, numbers, and hyphens, at most 255 characters, and unique among the machine user's active keys. Defaults to a name derived from the machine user's.

Required string length: 1 - 255
Example:

"production"

Response

200 - application/json

Represents an API key.

api_key
string
required

The API key string