API Reference v1
Get API Key API Key

Errors

Response envelope

Every successful response is wrapped the same way:

{
  "data": { "...": "the resource, or a list" },
  "meta": { "request_id": "req_k3j2h1g4f5d6s7a8q9w0" }
}

A list endpoint’s meta also carries next_cursor — see Pagination. Every failure looks like:

{
  "error": { "code": "not_found", "message": "...", "details": [{ "field": "...", "reason": "..." }] },
  "meta": { "request_id": "req_k3j2h1g4f5d6s7a8q9w0" }
}

error.details is only present when at least one field-level validation issue exists. X-Request-Id is also set on the response headers of every request — include it when reporting an issue.

This envelope is this API’s own public contract; it is not the same shape the APM web app’s internal API uses.

Common errors

These can be returned by any endpoint of this API, on top of whatever is documented per-endpoint. Cell gateway paths (direct manual trading under gateway_url) do not use this envelope or these codes: success bodies are bare objects and errors are {error:{code,message}} with upper-case codes (such as UNAUTHENTICATED, RATE_LIMITED, INSUFFICIENT_BALANCE); see Direct manual trading.

Statuserror.codeMeaning
401unauthorizedMissing, invalid, revoked or expired bearer token
403insufficient_scopeToken doesn’t carry the scope this endpoint requires
403account_disabledAccount disabled; contact APM support; Account disabled
403ip_not_allowedCaller’s IP isn’t in the token’s allowlist
429rate_limitedRate limit exceeded — see Rate limits
500internal_errorUnexpected server error

Write endpoints add their own optimistic-concurrency and idempotency errors — see Idempotency & concurrency.

Wallet rankings

503 wallet_rankings_unavailable means the ranking could not be read and no cached result is available. Retry later. An unpublished ranking is a successful read with empty items: a null version for a single ranking, a null data_day for the merged ranking. See Read wallet rankings.

Read-only task configurations

Copy Trade and Sniper responses include read_only. When it is true, the task uses settings this API cannot express. Configuration PATCH requests, including name changes, return 409 task_read_only; pausing the task does not remove this restriction. GET, pause, resume, delete and labels-only PATCH remain available under their existing rules. Edit the configuration in the app.

Sniper create and PATCH requests with target.mode: "token" return 400 unsupported_target_mode: sniping specific token addresses is retired. Use launchpad mode with creator or keyword filters.

Publicly known private keys

On BSC, Robinhood and Arc, the 20 default Hardhat/Anvil account addresses cannot be used as wallet leaders or target.creators.allowed. Comparisons ignore address case. Creation and parameter edits return HTTP 400 validation_error; the response identifies the affected field and addresses. Clear these addresses before editing an existing config. For ordinary wallet copy trading, PATCH the same configuration with the complete nonempty replacement leaders list, after pausing it and waiting for engine synchronization; include the current If-Match value. This editing capability is pending release. FOMO/Pump-bound leader identities remain fixed.

target.creators.blocked accepts these addresses. Removing them is allowed. Existing resources remain readable, and pause/resume keeps its existing rules. This restriction does not apply to Solana.

Task buy-fee rejections

The default task limit is 25% (2500 bps). An absent enabled flag uses a valid stored limit or this default; explicit false disables filtering. GET/list keep an absent enabled flag absent and return the effective limit; this still means known-fee filtering is on. Sending true opts into the user-set unknown-fee rule below. See Maximum buy fee for create, PATCH and read behavior.

buy_fee_too_high means the known buy fees or taxes exceeded the task limit; buy_fee_unknown means a component could not be determined for a copy buy in Price protection on EVM or Solana with buy_fee_filter_enabled:true and a valid limit. On Solana, a Meteora DLMM variable fee counts at this buy’s highest possible rate; if the buy’s total fee at that rate exceeds the limit, or another fee cannot be determined, the rejection code is buy_fee_unknown. When the enable field is absent, the default caps known fees only: undetectable components are not counted and the buy goes through on every chain in both Speed first and Price protection. For example, buy_fee_too_high: fee=2428bps max=1000bps steps=pool:2428 unknown=dlmm_variable reports 24.28% against 10%. fee may contain decimals, such as 1247.5bps (12.475%). An early snipe attempt can wrap the message in snipe_attempt_failed:. These are order rejection reasons, not HTTP validation errors.

signal_block_gap_unknown means the executor could not read its current block (slot on Solana), so it skipped the copy buy. When the gap is known and fails the configured comparison, the reason is strategy_leaf_rejected:<id>, where id identifies the condition.

sell_fee_too_high means that, at buy time, known sell-back fees along the buy route exceeded the configured cap, including pool fees and token sell tax. Unknown components and fees equal to the cap pass. Copy Trade and Sniper configs on Solana, BSC and Robinhood use sell_fee_filter_enabled: true with sell_fee_max_bps (integer 0–9999; 100 bps = 1%). Absent or false disables the filter; 0 is the strictest cap. Enabling without a cap in the create body or stored config merged with PATCH returns 400 validation_error. GET/list return stored values as-is; omitted PATCH fields stay unchanged. For example, sell_fee_too_high: fee=523.75bps max=500bps reports 5.2375% against a 5% cap. This checks whether to buy, not actual sell orders. The Open API field addition is pending deployment; check the live specification before use.

SOL slippage rejection

reason_codeMeaningAction
follow_sol_slippage_exceededCopy or sniper buy quote is below the SOL output floor; not sentRaise SOL slippage or switch to percentage

This applies only to Solana copy and sniper buys. It is not an HTTP validation error and does not mean a transaction was broadcast or filled.

Copy and sell rejection reasons

These rejections had no reason_code before. Their error_msg now starts with the code, followed by diagnostic detail.

reason_codeMeaningAction
leader_reference_revertedThe followed transaction failed on chain or in simulation; there is no fill to copyNone
leader_reference_unavailableThe followed transaction’s receipt could not be read yetNone
exceeded_slippageThe copy quote is below the minimum output set by the followed fill and your slippage; not sentWiden slippage if you want more fills
token_migration_in_progressThe token’s curve completed and no migrated pool appeared within the waitTrade after the migration completes
token_reserved_by_pending_sellsThe whole token balance is held by sells still pendingWait for the pending sells to finish
pending_buy_supersededAnother transaction from the wallet used the buy’s nonce; the buy never landedNone
leader_revert_expectedSolana: the followed transaction is expected to fail, so price protection skipped this copyNone
leader_tx_unprovenSolana: the followed transaction could not be fully confirmed, so price protection skipped this copyNone
leader_debit_beyond_legsSolana: the followed sell’s fill could not be identifiedNone
snipe_risk_limitSolana: the sniper task reached its risk limitCheck the task’s risk settings

These are order rejection reasons, not HTTP errors, and do not mean a transaction was broadcast or filled.

Solana Anti-MEV orders

reason_codeMeaningAction
anti_mev_not_landedAnti-MEV order not filled: slippage may have been exceeded, or the auction was lost.Raise the tip, widen slippage or turn off Anti-MEV.

In order history, a task order that timed out has status=expired. A pending buy or sell that ends with this reason has status=failed. A small on-chain fee can still apply.

Retired managed-sell tasks

Managed-sell tasks are retired. Open API has no managed-sell creation endpoint. Archived managed-sell tasks are read-only: configuration writes (including resume, pause and delete) return HTTP 409 task_read_only, and labels-only PATCH remains available; migrated managed-sell tasks cannot be resumed (HTTP 409 managed_sell_retired) but can be paused or deleted. Per-item Auto Sell uses /v1/auto-sell-tasks.

Auto Sell conflicts

Statuserror.codeMeaning
404not_foundItem missing, deleted or owned by another account
409auto_sell_wallet_conflictA selected wallet belongs to another specific item; explicitly move it or revise the selection
409auto_sell_default_conflictAnother item is already the chain default
409version_conflictStale chain version or a domain write conflict; read again before retrying
409not_pausedNon-name edits require a paused item and settled chain synchronization

Missing If-Match returns 428; malformed If-Match returns 412. Other task resources keep their existing 412 version-conflict behavior.

Strategy task errors

Strategy task routes do not require a Lab flag. They retain authentication, scope and ownership checks: insufficient scope returns 403 insufficient_scope; a missing or foreign task returns 404 not_found. Invalid specifications return 400 validation_error, unsupported execution features or changed FOMO bindings return 400 unsupported_chain_feature, and unavailable wallets return 400 wallet_unavailable. Field errors use details[].field paths starting with spec., for both create and PATCH. Strategy spec issues also carry a stable details[].code, for example unsupported_leaf, pump_callers_required, pump_caller_not_found or pump_caller_lookup_failed; reason is human-readable and may change.

Active creation or changing enabled through PATCH returns 400 validation_error. Use pause/resume to change that state. Non-name edits before the task is paused and synced return 409 not_paused; missing If-Match returns 428 precondition_required, and stale versions return 412 version_conflict.