POST
/
api
/
api_keys

Body

application/json
name
string
required

A free-form name for the API key. Need not be unique. 50 characters max.

Maximum length: 50
expiryDate
string | null

Once API key expires, clients cannot use it anymore.

Response

201 - application/json
created
string
required
creator
string | null
required
name
string
required

A free-form name for the API key. Need not be unique. 50 characters max.

Maximum length: 50
prefix
string
required
revoked
boolean
required

If the API key is revoked, clients cannot use it anymore. (This cannot be undone.)

secret
string
required

The API key itself. Will be generated on creation but not returned in future requests.

expiryDate
string | null

Once API key expires, clients cannot use it anymore.