Skip to main content
POST
Bootstrap first API key via Bearer JWT (advanced / headless)

Authorizations

X-API-Key
string
header
required

Issue from /v1/keys (or admin-issued for enterprise tier).

Headers

authorization
string | null

Body

application/json
default_magic
integer | null

Magic number (0..9223372036854775807) stamped on every order placed with this key that does not send its own magic. Give each bot its own key to tag its orders without code changes.

Required range: 0 <= x <= 9223372036854776000
default_magic_label
string | null

Bot label (max 32 printable characters) stamped on every order placed with this key that does not send its own magic_label.

Maximum string length: 32
name
string | null

Human-readable label

Maximum string length: 100
tier
string | null

Rate limit tier: free, pro, pro_plus, enterprise. Defaults to the tier your subscription or grant entitles you to. May be set lower than your entitlement; higher is refused.

permissions
string[] | null

Permissions: read, trade, admin

Response

Successful Response

Returned once on creation — the raw key is NOT stored.

id
integer
required
raw_key
string
required
key_prefix
string
required
rate_limit_tier
string
required
permissions
string[]
required
created_at
string
required
name
string | null
default_magic
integer | null

Magic number (0..9223372036854775807) stamped on every order placed with this key that does not send its own magic. Give each bot its own key to tag its orders without code changes.

default_magic_label
string | null

Bot label (max 32 printable characters) stamped on every order placed with this key that does not send its own magic_label.