Skip to main content
POST
cURL
Create a full-access or restricted API key. Provide permissions to restrict access; the full key is returned only once. A restricted key with api_key: write may only create restricted keys with the same or fewer permissions, and they expire no later than the key that creates them.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
predeterminado:2026-08-27

API version used by this reference. Send this header to select this contract explicitly.

Cuerpo

application/json
name
string
requerido
Minimum string length: 1
expiresInDays
integer
predeterminado:365
Rango requerido: x <= 9007199254740991
permissions
object

Respuesta

Success

id
string
requerido
name
string
requerido
apiKey
string
requerido
prefix
string
requerido
expiresAt
string<date-time>
requerido
createdAt
string<date-time>
requerido
object
string
requerido
Allowed value: "api_key"
livemode
boolean
requerido