Skip to main content
POST
Create an API key

Authorizations

Authorization
string
header
required

A workspace API key issued in Settings → Developer, sent as Bearer sk_….

Body

application/json
name
string
required

A label so you can find the key later.

Required string length: 1 - 80
environment
enum<string>
default:test

The key environment. Only test is issued today; live keys require a paid plan.

Available options:
test

Response

201 - application/json

The created key, including the raw secret.

id
string
required
key
string
required

The raw secret key. Shown once, at creation; store it now.

keyPrefix
string
required