Response envelope
The envelope is not uniform across the surface — it depends on the endpoint family. Enveloped (legacy/api/v1/* + raw stats/swaps):
/api/v1/pairs, /api/v1/candles, /api/v1/candles/latest, /api/v1/stats, /api/v1/top-movers, /api/v1/protocols (and the raw /stats/*, /swaps/* families).
Top-level (no wrapper): newer endpoints return the payload directly — no success/data keys:
/screener,/search,/trending,/tokens/{mint}/intel,/tokens/{mint}/risk
/screener returns { results, total_matches, limit, offset, warnings } at the top level.
Errors are always enveloped, even for the top-level endpoints, and error is an object:
error.code (the codes). error.message is for humans and is not a stable format; a 5xx message is generic and never carries the internal cause.
/screener: a malformedmint,mints[]orcreatorfilter is a 400INVALID_PARAM(messageinvalid parameter: invalid_filter:mint|creator|mints). An unsupported filter (e.g.risk_score) instead stays 200 and adds a note to thewarnings[]array./search: a malformedcreator(ordeployer) ormintsis a 400INVALID_PARAM(invalid_filter:creatororinvalid_filter:mints).minton/searchis matched as text, likequery, and is never rejected. An unsupported filter stays 200 with awarnings[]note, as on/screener./tokens/{mint}/inteland/tokens/{mint}/risk: a malformedmintis a 400INVALID_PARAM, an unknown mint a 404NOT_FOUND, and a failed lookup a 503UNAVAILABLE(retry). A failed lookup is never reported as a 404;/tokens/{mint}/riskanswers 504GATEWAY_TIMEOUTif its lookup times out./tokens/{mint}/holders,/holders/top,/snipers,/insiders,/smart-moneyand/whales: a malformedmintis a 400INVALID_PARAMon every tier.- Not on this shape yet:
/swaps/*and/stats/*send a flat{ "error": "invalid_parameter", "message": "..." }(their 401 and 429 carry theerrorobject but nosuccess), and/tokens/{mint}/concentrationsends{ "error": "..." }. They are being moved to the envelope; until then, iferroris a string, treat it as the message.
Base paths
Endpoints live under different base paths, and one is served by a separate service:
All paths share the same host,
https://api.dexploit.dev, and the same Authorization / API-key auth.
Rate limits
Paid tiers are capped requests-per-second with unlimited monthly usage. The Free tier is capped at 10 requests per second, 10,000 requests per calendar month, and 14 days of history. Pick a tier that matches your sustained throughput.
Free is strict. You get 10 requests in any one second, and the 11th gets a 429. Staying quiet beforehand earns no extra.
Developer and Pro allow short bursts. Developer sustains 100 requests per second and Pro 500. Developer can send a short burst above its rate, but never more than about 120 in any one second. A burst bigger than the allowance can be refused even when you are under your rate over a whole second, so spread your requests across the second instead of sending a second’s worth at once.
Over the limit you get a 429 with
Retry-After: 1.
GraphQL: each top-level field counts as one request against your per-second limit (max 10 per request), and a request your key cannot cover is refused whole with a 429. See GraphQL.
Inspecting your usage
CallGET /credits at any time to see your current tier, RPS cap, how much of your per-second allowance is in use, and feature flags:
current_window_used is the number of requests counted in the current second and rps_window_secs is 1. On Developer and Pro the limit is a rate, so current_window_used is how much of your allowance is in use right now, on the same scale as rps_cap: 0 when you have been idle, and rps_cap when it is used up and the next request would get a 429. It is not a count of the requests in the last second, and rps_window_secs (still 1) is not a window you are counted in. current_window_remaining is rps_cap minus current_window_used.
monthly_used is your cumulative request count for the current calendar month. On paid tiers monthly_cap, monthly_remaining and monthly_resets_at are null and monthly_enforced is false; the count is informational, so you can size up your typical load. On the Free tier the cap is 10,000 requests per month and monthly_resets_at is 00:00 UTC on the 1st. The cap is applied only while monthly_enforced is true.
Rate limiting
When you go over your tier’s limit you get HTTP 429 withcode: "RATE_LIMIT_EXCEEDED" and a Retry-After: 1 header. Wait that long and retry; GET /credits shows how much of your allowance is in use.
Free-tier monthly cap and history window
Whilemonthly_enforced is true in /credits, a Free key that has used its 10,000 requests for the calendar month gets HTTP 429 with code: "MONTHLY_QUOTA_EXCEEDED". The error carries error.limit, error.used and error.reset_at, where reset_at is an RFC 3339 timestamp, 00:00 UTC on the 1st (for example "2026-11-01T00:00:00Z"). Retrying sooner will not help; wait for the reset or upgrade.
A Free key whose request names a time older than 14 days gets HTTP 403 with code: "HISTORY_WINDOW_EXCEEDED". The time can be a start/end, from/to, timestamp, start_time/end_time, since_ms, before, a pagination cursor, or a swap looked up by a signature older than that. The error carries error.oldest_allowed (RFC 3339 UTC, the earliest time the key may request) and error.window_days:
candles query returns the same three keys (code, oldest_allowed, window_days) in errors[].extensions.
A candles request (REST or GraphQL) that names no start, or an actor chart (such as /holders/chart/{token}) that names no from, is not refused. Its range begins no earlier than the window, so a Free key gets the last 14 days at most, and fewer rows than limit on candles when the default range is longer.
The history check applies to these endpoints:
The GraphQL
candles query is checked the same way, on start and end. /price/history, /chart/{token}, /api/v1/candles/latest and aggregates are not windowed. Ask for a time inside the window, or upgrade for full history. Paid keys are not affected by either limit.
Tier-locked features
Some endpoints are paid-tier-only. Free tier callers get HTTP 200 withtier_locked: true rather than a 429:
/tokens/{mint}/smart-money, /tokens/{mint}/whales.
Streaming caps
Each API key has one pool of concurrent streams, sized by its tier. Every open stream on every transport draws from that same pool: a gRPCdexploit.v1.SwapStream stream, a gRPC dexploit.v1.PriceStream stream, a /ws or /ws/swaps WebSocket, and a /ws/ohlcv WebSocket. The pool is shared across all of our streaming servers, so your cap is the same wherever your streams land.
A Free key holding one
/ws/swaps connection is therefore refused when it opens /ws/ohlcv, and the other way round.
Opening a stream when the pool is full is refused with this message:
A slot is freed as soon as the server sees the stream close. A connection that dies without closing (a dropped NAT mapping, a laptop that went to sleep) is detected by the server, and its slot freed, within about 75 seconds for a WebSocket and about 60 seconds for gRPC. A WebSocket that sends no frame and answers none of our Pings for 75 seconds is closed with code
1011, so keep your client library answering Pings (most do automatically). Close sockets explicitly when you can, and expect a refusal for up to that long after an unclean drop. A client that reconnects at once can also be refused while its previous connection is being torn down: wait a few seconds, or retry with a short backoff. A refusal means the pool is full, not that the server is busy, so do not retry in a tight loop.
The wallet_tags filter is Pro+ only — on lower tiers the filter is silently dropped and the response carries x-dexploit-tier-locked-filter: wallet_tags metadata. See gRPC: SwapStream for the full reference.
Stale responses
A few wallet routes answer from a short-lived copy so that a burst of identical requests runs one computation. When the copy is past its refresh age you still get it at once, one refresh runs behind it, and the response carries the headerX-Cache: stale. A response without that header is fresh. A stale body can predate the wallet’s latest trade: request again after a few seconds to get the refreshed one.
If a refresh fails or times out, the
/stats/trader and /swaps/trader routes return the stored copy (no older than 10 minutes, marked stale) instead of an error. With no copy to fall back on, a computation that runs out of time (the database’s time limit or 40 seconds in total) is a 503 with Retry-After: 5 and { "error": "service_unavailable", ... }: retry. This is true of every /swaps/* and /stats/* route: a request that times out is a 503, never a 500.

