Skip to main content
POST
Create API key
This reference describes API version 2026-07-24. Send Commet-Version: 2026-07-24 with your request.

Authorizations

x-api-key
string
header
required

Headers

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
default:2026-07-24

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

Body

application/json
name
string
required
Minimum string length: 1
expiresInDays
integer
default:365
Required range: x <= 9007199254740991
permissions
object

Response

Success

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