Skip to main content
POST
Create API Key

Authorizations

Authorization
string
header
required

Secret key in Bearer sk_... format. Server-to-server only — never embed it in a browser or mobile client. The organization is resolved from the key, so organization_id is never passed explicitly.

Path Parameters

app_id
string
required

Application ID. Must belong to the organization resolved from your secret key, otherwise the request returns 404 with APPLICATION_004.

Example:

"app_7poyXj8GXuv76e"

Body

application/json
name
string
required

A label for the key. Use something that identifies where it is deployed (prod-backend, ci-pipeline) — it is how you will recognise the key later, since the value itself is not visible.

expiresAt
string<date-time>

ISO-8601 timestamp at which the key stops working. Must be in the future.

Response

The created key, including its one-time value.

data
object
isSuccess
enum<boolean>
Available options:
true