Skip to main content
POST
Generate a new API key

Headers

Authorization
string
required

Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Body

application/json
name
string

Optional name for the API key

Example:

"My API Key"

Response

201 - application/json

The generated API key

id
number
required

API key ID

Example:

1

key
string
required

The API key string

Example:

"bc_1234567890abcdef"