Create API Key
Creates a new API key for an application.
The key value is returned exactly once, in this response. Later reads expose the key’s metadata (name, expiry, status) but never the secret again. Store it in your secret manager the moment you receive it; if it is lost, the only remedy is to create a new key.
Rotation. Set an expiry even for long-lived keys, and rotate before it lands: create the new key, deploy it, then let the old one expire. A rotation then never needs a window where no valid key exists.
Authorizations
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
Application ID. Must belong to the organization resolved from your secret key, otherwise the request returns 404 with APPLICATION_004.
"app_7poyXj8GXuv76e"
Body
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.
ISO-8601 timestamp at which the key stops working. Must be in the future.