Skip to main content
POST
Typescript (SDK)

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Headers

Idempotency-Key
string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Maximum string length: 255

Body

application/json
name
string | null

Optional human-readable label for the key. Defaults to "Default" when omitted.

Response

API key created (includes the full secret)

object
string
required
id
string
required
name
string | null
required
last4
string
required
token_type
string
required
token
string | null
required
last_used_at
string | null
required
expires_at
string | null
required
created_at
string
required