Skip to main content
POST
Create an API key

Authorizations

session
string
cookie
required

HttpOnly session cookie set on login. Used by the scrnshot dashboard only — /v1/keys and /v1/billing/* are not part of the programmatic API and cannot be called with an API key.

Body

application/json
name
string

Optional label for the key.

Example:

"production"

Response

Created

id
integer
required
name
string
required
key
string
required

Plaintext API key. Shown only in this response — store it now.

Example:

"sk_live_9f2b1c7a4e6d8f0a1b2c3d4e5f6a7b8c"

key_prefix
string
required

First segment of the key, safe to display after creation.

Example:

"sk_live_9f2b"

created_at
string<date-time>
required