Authentication
Every central API request (except the self-describing spec endpoints on the Overview) requires a bearer API token:
Authorization: Bearer apm_live_<prefix>.<secret>
Generate a token from the Get API Key page linked at the top of this reference. The secret half is shown only once — store it yourself. The <prefix> identifies the token for revocation/audit; it is safe to log.
Telegram one-click login does not count as a recent identity check. Telegram-only accounts confirm API key creation, rotation and permission increases in @apmfun_bot; check the action and its details before confirming. Granting an AI app write permissions is confirmed in @apmfun_bot the same way.
Accounts created on or after November 3, 2026 at 00 UTC must contact support for API access approval before creating any API key or approving an MCP OAuth client; older accounts and rotation of existing keys are unaffected.
Multiple keys per account
An account can hold up to 10 unrevoked keys at once. Expired keys still occupy a slot until revoked. Each key has its own name, scopes, IP allowlist and expiry, and can be rotated or revoked without affecting the others — for example, a read-only key for a dashboard and a separate trading key for a bot. All keys of the account share one rate limit.
Scopes
A token carries one or more scopes that gate which endpoints it can call:
| Scope | Grants |
|---|---|
copytrade:read | Read Copy Trading configs, Auto Sell items and their orders |
copytrade:write | Create/update/pause/resume Copy Trading configs; create/update/delete/pause/resume Auto Sell items (requires copytrade:read) |
copytrade:delete | Delete (soft-delete) Copy Trading configs (requires copytrade:read) |
sniper:read | Read Sniper configs and their orders |
sniper:write | Create/update/pause/resume Sniper configs (requires sniper:read) |
sniper:delete | Delete (soft-delete) Sniper configs (requires sniper:read) |
portfolio:read | Read account wallet balances and aggregated positions |
orders:read | Read account-wide order history, order details, open orders and request-ID lookups; obtain a read-capable Cell token |
GET /v1/me and GET /v1/wallets accept a token with any *:read scope. Each endpoint page in this reference states the exact scope it requires.
Manual trading adds orders:buy, orders:sell and orders:cancel; each requires orders:read. Read is account-wide, as is cancellation, which covers any untriggered pending order in the account. These new permissions require explicit opt-in and are excluded from MCP. See Direct manual trading for the short-lived Cell token flow.
IP allowlist
A token can also carry an IP allowlist, configured on the same page used to generate it. Requests from an address outside it are rejected with 403 ip_not_allowed — see Errors.
INFO
The three “invalid” / “revoked” / “expired” token states all answer the same generic 401 unauthorized — the API deliberately does not tell a caller which one applies, so a caller can’t use the response to fingerprint whether a token used to be valid.