Skip to main content

Error reference

All errors return a JSON body:

{ "message": "<reason>" }

Validation failures add an errors array with the exact field(s) that failed. Some endpoints add structured fields — documented per endpoint.

Status codes​

400 — Bad request​

Validation error or a business rule violation that doesn't need a more specific code (e.g. "insufficient SOL balance", "bots in this state can't be canceled").

{
"message": "Validation failed",
"errors": [
{ "msg": "nHoldersCount must be one of: 500, 1000, 2500, 5000, 10000, 20000", "path": "nHoldersCount" }
]
}

401 — Unauthorized​

Missing / expired / invalid / revoked access token, or a token issued for a previous key version; missing x-api-key on an auth endpoint; reused refresh token. Get a fresh pair via /auth/api/refresh or /auth/api/token and retry.

403 — Forbidden​

API key invalid or deactivated (Forbidden: API is inactive). Also returned when a wallet imported through /wallets/import (reserved for Smart Sell) is used to sign anywhere else, e.g. transfer, swap, token or aged-wallet/split payments.

Target Volume ordering endpoints answer 403 with Target Volume is not available when the product is not enabled for the account.

404 — Not found​

Resource doesn't exist or doesn't belong to the caller. Endpoints that take a list of ids include a missing array pointing at the bad entries.

409 — Conflict​

State that should be singleton already exists, or the resource state does not allow the action:

  • /referrals/create when the user already has a code
  • /holders/initialize or /makers/initialize when the user already has a pending Holders or Makers order (pendingHoldersId / pendingMakersId)
  • /target-volume/initialize when the user already has an open order (order); /target-volume/pay or cancel while another payment is in progress
  • /aged-wallets/initialize when the user already has an open order (pendingOrderId)
  • a request with the same Idempotency-Key is still running

Response body includes the existing id where one applies, so you can recover.

410 — Gone​

A split quote has expired, or an aged-wallets order expired before it was paid.

422 — Unprocessable​

The pool cannot take a Target Volume order — too little liquidity, an unsupported pool type, a target or speed it cannot run. message says why and is safe to show to the end user. Pick another pool, target or speed.

429 — Too many requests​

Per-client or per-IP request limit exceeded. The response carries a Retry-After header (seconds) and { "message", "retryAfter" }. See Limits.

502 / 503 — Upstream or feature unavailable​

  • 502 — a payment or transfer could not be confirmed (aged-wallets pay, holders pay). Check the status endpoint before paying again.
  • 503 — the feature is temporarily unavailable (/aged-wallets/*, /trending/*, Organic holders), an upstream service is down, or idempotency storage is unavailable (Idempotency is unavailable, retry later). Retry later.

500 — Internal server error​

Generic server-side failure. No implementation details leak into the response. Retry with exponential backoff.


Per-wallet / per-entry failures​

Some endpoints return 200 even when part of the work failed, and report per-entry outcome.

POST /trading/swap returns an aResults array:

{
"success": true,
"aResults": [
{ "sWalletAddress": "…", "signature": "3k…", "success": true },
{ "sWalletAddress": "…", "signature": null, "success": false,
"reason": "insufficient SOL", "required": 5050000, "current": 0 }
],
"stats": { "requested": 2, "eligible": 1, "succeeded": 1, "failed": 1 }
}

POST /token/create pre-validates balances and rejects the whole call with 400 if any wallet is short:

{
"message": "insufficient SOL balance on one or more wallets",
"wallets": [
{ "type": "sniper#2", "address": "…", "requiredSol": 0.11, "currentSol": 0.05 }
]
}

Retry policy​

  • 5xx / 429 — exponential backoff (honour Retry-After), max ~3 retries. Send an Idempotency-Key on endpoints that accept one so a retry cannot repeat the action; 5xx and 429 responses are not stored against the key.
  • 401 with "expired" — refresh the token, retry once.
  • 400 / 404 / 409 — don't retry; same input gets the same result.
  • Fire-and-forget timeouts (/token/create, /holders/initialize) — don't retry the HTTP call; the job may already be running. Use the status endpoint to reconcile.