Skip to main content
POST
Generate API Key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string

Optional name for the API key. If not provided, a default name will be used.

Maximum string length: 100
Example:

"My Server API Key"

Response

201 - application/json

API key generated successfully

key
string

The generated API key

Example:

"sk_1234567890abcdef..."

id
number

The unique identifier for the API key

Example:

1