v8

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-05730512.7 KB
API Keys

Create an API key

Create a named API key for an environment. The full token is returned once in this response — store it immediately. A requested role is clamped so it never exceeds the caller's own role.

post/v1/api-keys

Request body

namestring

You optionally set a name for the key. Defaults to default.

environmentstring

You optionally set the environment: sandbox or prod. Defaults to sandbox.

rolestring

You optionally set the role: owner, admin, issuer, verifier, issuer-verifier, or reader. Clamped to at most the caller's role.

Example request

{
  "name": "CI deploy key",
  "environment": "sandbox",
  "role": "issuer"
}

Response

The API key was created. The full token is returned once.

uuidstring uuid

You receive the UUID for this API key.

namestring

You receive the API key name.

environmentstring

You receive the environment for this key: sandbox or prod.

rolestring

You receive the role granted to this key.

created_atstring date-time

You receive the timestamp when the key was created.

tokenstring

You receive the full API key token. Store it now — it is only returned once.

notestring

You receive a reminder that the token is only shown once.

Example response

{
  "uuid": "d1e2f3a4-b5c6-7d80-9e1f-2a3b4c5d6e7f",
  "name": "default",
  "environment": "sandbox",
  "role": "owner",
  "created_at": "2026-07-02T23:51:58.746686+00:00",
  "token": "sk_live_3f9a1c...s9Zx",
  "note": "Save this API key now. It will not be shown again."
}