Skip to main content
POST
Create an API key (returns plaintext sk_live_ ONCE)

Authorizations

Authorization
string
header
required

Headers

X-Account-ID
string

Tenant database. Required when using a Zitadel JWT.

Body

application/json

Key spec

Key spec

expiry
enum<string>
Available options:
30d,
90d,
1y,
Example:

"90d"

name
string
Example:

"ci-deploy-bot"

Response

Created

created_at
string
created_by_email
string
created_by_sub
string
disabled_at
string
expires_at
string
id
string
key_id
string
last_used_at
string
last_used_ip
string
name
string
secret_key
string

sk_live__…

secret_last4
string