Error
object
Show fields
codestringRequiredStable. Branch on this, never on message.
| Code | Status | Meaning |
|---|---|---|
unauthorized |
401 | missing, unknown or revoked key (no RateLimit headers) |
scope_not_granted |
403 | the user didn't grant details.scope |
forbidden |
403 | your partner account isn't allowed this (details.reason, e.g. no_access for frame:live when live mode isn't enabled for you; details.scope) |
permission_denied |
403 | this key lacks the key permission the call needs (details.permission, e.g. users:export; details.reason: "key_permission"): use a key that has it, or add it in the partner portal |
not_managed |
409 | the call is for managed users only, and this user is linked (their own Chartnaut account and plan apply; details.reason: "not_managed") |
switched_off |
403 | this part of the API is paused for you (everything, writes, frames, links, demo account creation, bulk actions); contact [email protected] |
not_linked |
404 | the user isn't linked to you (details.user when the user was named in the request) |
not_found |
404 | no such object for you; an id of the wrong type or shape is this too |
conflict |
409 | external_ref already used (sessions: details.existing_id; accounts: details.field); the same Idempotency-Key still running; lock or unlock on an ended session |
expected_count_mismatch |
409 | a bulk action matched a different number (details.expected, details.actual) |
invalid_request |
400 | malformed body or unknown field (named in message, no details), a bad field (details.field where the endpoint names it), bad id, missing Idempotency-Key, invalid rules. Also 413 for a body over 2 MiB |
idempotency_key_reused |
422 | the Idempotency-Key was used with a different path or body |
plan_limit |
422 / 403 | the user's Chartnaut plan doesn't allow it (details.reason), or your developer plan's cap (details.owner: "developer", details.limit: apps (an app past your plan's count after a downgrade takes no new users), free_linked, managed_users, data; with used, cap). No auto top-up: upgrade on the Developers page |
seat_limit |
403 | your Business seats are full this month (details.limit seats or pro_seats, used, cap): a new managed user can't start until you add seats; users active this month carry on |
partner_limit |
422 | one of your partner limits (details.limit, and for demo accounts details.max) |
rate_limited |
429 | your rate limit: details.limit is rate_minute or rate_burst. Also, with no details and Retry-After: 60, any call from an IP that sent 30 bad keys this minute, good keys included. See Retry-After |
internal |
500 | retry; if it persists contact [email protected] |
messagestringRequireddetailsobjectUsed by#
- GETList your linked users
- POSTCreate a managed user
- GETRead a linked user
- DELDelete a managed user
- PATCHChange a managed user's level or features
- POSTExport a managed user's data
- GETRead an export
- DELUnlink a user
- POSTGet a frame URL for a user
- GETList a user's alert fires
- POSTMake a link for one of your users
- GETThe scripts published to an app
- POSTPublish one of your scripts to your app
- DELTake a script off your app
- GETList your sessions, by user, label or status
- POSTCreate a backtest session for a user
- POSTCreate up to 500 sessions in one call
- POSTEnd, lock or unlock many sessions
- GETRead a session
- PATCHChange a session's labels or page control
- GETA session's closed trades
- GETA session's rule breaches
- GETList demo accounts you created, or a user's own accounts
- POSTCreate a demo account for a user
- POSTCreate up to 500 demo accounts in one call
- POSTLock, unlock or close everything on many demo accounts
- GETRead an account
- PATCHChange a demo account's labels
- GETAn account's closed trades
- GETA user's own account's open positions
- GETA demo account's rule breaches
- GETSend a test.ping
