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
Example request
{
"name": "CI deploy key",
"environment": "sandbox",
"role": "issuer"
}Response
The API key was created. The full token is returned 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."
}