API Reference v1
Get API Key API Key

DELETE /v1/auto-sell-tasks/{id}

Delete an auto sell task

Remove the item. Existing protection orders remain. Released wallets fall back to the chain default, when present. The response identifies the removed item; subsequent reads or deletes return not_found. No close_position option. Requires the copytrade:write scope.

Required scope: copytrade:write

Path parameters

FieldTypeRequiredDescription
idstring✓Globally unique auto sell item ID.

Headers

FieldTypeRequiredDescription
If-Matchstring✓Current quoted chain version from ETag. All items on the chain share this version; re-read after a conflict.

Responses

200 — Committed

FieldTypeRequiredDescription
dataobject✓Response payload.
data.idstring✓Auto sell item ID.
data.chainstring✓Chain of the item.
data.namestring✓Auto sell task name.
data.statusenum ("active" | "paused" | "deleted")✓Requested item state. deleted appears only in the DELETE response.
data.versionnumber | null✓Version shared by all items on this chain; also returned as the ETag when present.
data.sync_statestring✓Chain-level synchronization: off (no enabled items), syncing, active (acknowledged), or publish_failed (saved; awaiting retry).
data.covers_new_walletsboolean✓Whether this is the chain default covering future wallets.
data.walletsarray<string>✓Stored exclusions for a default item, otherwise selected wallet addresses.
data.covered_walletsarray<string>✓Currently covered active wallet addresses, resolved from the domain wallet ownership projection. Specific items take precedence over the default.
data.ruleobject✓Rule for future buys; existing protection orders are unchanged by edits, pause or deletion.
data.rule.enabledboolean✓Whether new qualifying buys receive protection orders.
data.rule.min_sell_usdstringMinimum automatic sell amount in USD for buys protected by this rule.
data.rule.retain_bpsnumberRetained share in basis points, frozen for each buy covered by this rule.
data.rule.scopestring✓Buy coverage: apm_manual or wallet_all; neither includes task buys.
data.rule.exitsobject✓Stored price/time, dev sell and migration sell exits in the shared executor snake_case format, without input range validation. Event exits retain the rule in force when each buy happened; migration sell requires a launch-curve buy and dev sell cannot be cancelled per order.
data.rule.sellobject✓Stored sell trade parameters for this item.
data.rule.sell.slippage_pctstring✓Stored sell-side max slippage. "1" = 1%.
data.rule.sell.gasobject✓Stored sell-side gas settings.
data.rule.sell.gas.priority_feestringPriority fee as a decimal string: SOL on Solana, Gwei on EVM chains. BSC defaults to the tip lane on at 0.05 gwei with a 0.0005 BNB landing fee. Solana defaults to 0.002 SOL for buys and 0.001 SOL for sells, each with a 0.001 SOL landing fee (totals of 0.003 and 0.002 SOL, as for new tasks in the web app), so a task created without gas returns its sell side under sell. In gas and sell.gas, creating a task with priority_fee and no effective high_tip.enabled turns the tip lane off. In gas, sell.gas and follow_sell.gas, priority_fee also sets high_tip.priority_fee unless the request gives its own, so it reaches every route.
data.rule.sell.gas.landing_feestringLanding tip in the native currency (SOL on Solana). Omit to retain the chain default. When the effective Solana fee mode is manual, the priority fee and this tip are used on every landing route without a per-route split; the tip is charged only when the trade succeeds, and some routes do not pass it to the block producer, so only the priority fee ranks there. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In auto mode, use the total fee budget to read these tiers.
data.rule.sell.gas.auto_gasbooleanAutomatic gas estimation. Arc defaults to true; set false to use priority_fee.
data.rule.sell.gas.high_tipobjectAlternative high-tip fee lane. Enabling this lane is unsupported on Robinhood and Arc.
data.rule.sell.gas.high_tip.enabledbooleanEnable the alternative high-tip fee lane where the execution route supports it. BSC defaults to enabled at 0.05 gwei with a 0.0005 BNB landing fee. For ordinary buys and sells, explicit gas.priority_fee without high_tip.enabled disables this lane on create. PATCH omission keeps the current value. On Solana this is the manual mode's dual lane; auto fee mode is buy_fee_auto / sell_fee_auto.
data.rule.sell.gas.high_tip.priority_feestringPriority fee for the high-tip lane; same unit as gas.priority_fee. In gas, sell.gas and follow_sell.gas, the lane takes the ordinary priority_fee from the same request when its own priority_fee is omitted.
data.rule.sell.gas.high_tip.landing_feestringLanding tip for the high-tip lane in native currency. BSC defaults to 0.0005 BNB at 0.05 gwei; when the lane is on, BSC private routes pay it to the block builder on fill. Solana tip guidance: below 0.0001 SOL, ordinary orders have no acceleration routes and failed orders still pay fees. Anti-MEV orders need at least 0.000001 SOL (LANDING_FEE_TOO_LOW below this), and only a very few protected routes take tips in this range. From 0.0001 to below 0.001 SOL, some routes are available. At 0.001 SOL or above, all routes for the selected mode are available. These tiers do not block saving settings. In Solana manual mode, use the higher of the normal and high-tip values to read these tiers.
data.rule.sell.gas.anti_mevbooleanSend the transaction through a private anti-MEV route. Omit to use the chain default (on for bsc, off for robinhood/solana/arc). On Solana, Anti-MEV fills are slower than normal mode. Below 0.000001 SOL the executor rejects the order with LANDING_FEE_TOO_LOW. From that minimum up to (but below) 0.0001 SOL, only a very few Anti-MEV routes take it. Past your slippage the transaction is dropped and shows as not filled, still with a small on-chain fee. Raise the tip, widen slippage or turn off Anti-MEV.
data.created_atstring✓Creation time in RFC 3339 UTC.
data.updated_atstring✓Last item update time in RFC 3339 UTC.
metaobject✓Request id, plus paging fields when this operation is a list.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.
meta.persistenceenum ("committed")✓The change is committed to storage; sync_state reports executor synchronization separately.

400 — validation_error / missing_idempotency_key / unsupported_chain_feature

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

401 — unauthorized (missing/invalid/revoked/expired Bearer token)

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

403 — insufficient_scope / ip_not_allowed

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

404 — not_found

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

409 — version_conflict / auto_sell_wallet_conflict / auto_sell_default_conflict / not_paused / idempotency_conflict / idempotency_in_progress

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

412 — version_conflict (malformed If-Match)

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

428 — precondition_required

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

429 — rate_limited (Retry-After response header set)

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.

500 — internal_error

FieldTypeRequiredDescription
errorobject✓Why the request failed.
error.codestring✓Stable machine-readable error code.
error.messagestring✓Human-readable explanation of the error.
error.totalnumberNumber of distinct blacklisted wallets the account would have on this chain after saving.
error.limitnumberMaximum distinct blacklisted wallets per account on this chain.
error.detailsarray<object>Only present when at least one field-level validation issue exists.
error.details[].fieldstring✓Request field this issue refers to, or a dotted path such as buy.amount.
error.details[].reasonstring✓Why that field was rejected.
error.details[].codestringStable machine-readable reason for a strategy spec issue, for example unsupported_leaf or pump_callers_required. Present only on strategy spec validation errors; reason may change.
metaobject✓Request id for this failure.
meta.request_idstring✓Id of this request. Also sent as the X-Request-Id response header.
Example request
curl -X DELETE "https://api.apm.fun/v1/auto-sell-tasks/cfg_8f2a1c9b" \
  -H "Authorization: Bearer apm_live_<prefix>.<secret>" \
  -H "If-Match: "3""
Example response 200
{
  "data": {
    "id": "cfg_8f2a1c9b",
    "chain": "string",
    "name": "string",
    "status": "active",
    "version": null,
    "sync_state": "string",
    "covers_new_wallets": true,
    "wallets": [
      "0x8f2a1c9bde34567890abcdef1234567890abcdef"
    ],
    "covered_wallets": [
      "0x8f2a1c9bde34567890abcdef1234567890abcdef"
    ],
    "rule": {
      "enabled": true,
      "min_sell_usd": "string",
      "retain_bps": 0,
      "scope": "string",
      "exits": {},
      "sell": {
        "slippage_pct": "12.50",
        "gas": {
          "priority_fee": "0.05",
          "landing_fee": "0.05",
          "auto_gas": true,
          "high_tip": {
            "enabled": true,
            "priority_fee": "0.05",
            "landing_fee": "0.05"
          },
          "anti_mev": true
        }
      }
    },
    "created_at": "string",
    "updated_at": "string"
  },
  "meta": {
    "request_id": "cfg_8f2a1c9b",
    "persistence": "committed"
  }
}