Errors
Every refused request, whatever the layer that refused it, answers with one JSON envelope. Branch on error; message is for humans and may change.
{ "statusCode": 403, "timestamp": "2026-01-01T00:00:00.000Z", "path": "/moderation/ban/address/abc", "error": "API_SCOPE_FORBIDDEN", "message": "This key does not hold the moderation.read scope", "requiredScope": "moderation.read"}| Field | Meaning |
|---|---|
statusCode |
The HTTP status, repeated in the body. |
error |
A stable, machine-readable code. Branch on it. |
message |
Human-readable; may change without notice. |
path |
The path and query string of the request without the /v1 prefix: a call to /v1/users/123 reports /users/123. |
| extra fields | requiredScope on API_SCOPE_FORBIDDEN; retryAfterMs, limit and window on API_KEY_RATE_LIMITED. |
Platform codes
Section titled “Platform codes”These are the codes the key, scope and limit checks can return on any route.
| Code | Status | Meaning | What to do |
|---|---|---|---|
API_ | 401 | The keyed API host got no credential: send Authorization: Bearer <key> or x-api-key: <key> | Send the key in Authorization: Bearer or x-api-key. Do not retry the same request unchanged. |
API_ | 401 | The credential is not a well-formed pf_live_ key (prefix, length, charset or checksum) or no key record exists for it | Check the key: pf_live_ prefix, 57 characters, and if you set both headers they must carry the same key. Do not retry with the same key. |
API_ | 403 | The key was revoked (by its owner or by the pump.fun team); issue a new key in the developer console | Stop using this key. Create a new one in the developer console and deploy it. |
API_ | 403 | The key's org is suspended or closed, so none of its keys is served; contact developers@pump.fun | Stop calling. Email developers@pump.fun with your organisation name (see Status and support). |
API_ | 403 | The key's org application has not been approved yet (or a key is requested before approval) | Verify the contact email in the developer console (a first application is approved at that point), or wait for the decision shown there, then retry. |
API_ | 403 | The key does not hold the API scope this route needs; requiredScope names it | Request the scope named in requiredScope by email to developers@pump.fun with the key prefix, or stop calling the route. |
API_ | 403 | The Developer API is not available in the region the request came from (the same regional availability as pump.fun); the body names no country | Stop calling from this region. Availability follows pump.fun and is not per key; the body names no country. Do not retry from the same region. |
API_ | 429 | A key ceiling refused: the per-key burst bucket, the UTC daily limit (a limit of 0 means the key is paused; contact developers@pump.fun), the per-IP failed-auth throttle, or the per-IP lookup budget; retry after retryAfterMs | Wait Retry-After, then retry. Read window to tell the burst bucket (burst), the daily limit (day) and the two per-IP throttles (auth, lookup) apart. |
API_ | 400 | Each host accepts only its own credential kind | Send only an API key, and only to api.pump.fun. Never forward pump.fun session cookies or JWTs. |
| (no code) | 503 | The API could not verify the key or its limits (a backing store is down). Keyed requests fail closed by design. The body has no | Wait |
404 on a route that exists: the /v1 prefix
Section titled “404 on a route that exists: the /v1 prefix”Every route lives under the base URL https://api.pump.fun/v1. The API reference and the Scopes page list paths relative to it, so GET /users/{id} is called as https://api.pump.fun/v1/users/{id}. A request without the prefix answers 404 before the key is read, with a valid key or without one.
curl -sS https://api.pump.fun/users/123 -H "Authorization: Bearer $PUMP_API_KEY"{ "statusCode": 404, "timestamp": "2026-01-01T00:00:00.000Z", "path": "/users/123", "message": "Cannot GET /users/123", "error": "Not Found"}The body cannot tell you which mistake you made: path never includes /v1, and a path that does not exist under /v1 answers with the same 404. So when a route from the reference returns Not Found, check the URL first: it must start with https://api.pump.fun/v1/. The base URL on its own (https://api.pump.fun/v1 with nothing after it) is not a route and answers 404 too.
Route-level errors
Section titled “Route-level errors”Routes also return their own 400, 404 and 409 responses, documented per operation in the API reference. For those, error is either a registry code listed in the reference (for example CALLOUT_NOT_FOUND on GET /callout/{calloutId}) or a plain HTTP reason phrase ("Not Found"), which is not a code. The envelope shape is the same.
One route-level code is worth knowing before you call with an API key:
400 API_USER_REQUIREDonGET /portfolio-summaryandGET /portfolio-summary/chart: these routes serve the signed-in user whenuseris omitted, but an API key is never a session. Senduser=<wallet or username>on every keyed call; do not retry unchanged.
Handling checklist
Section titled “Handling checklist”404with"error": "Not Found"on a route from the reference: the URL is missing the/v1prefix. Callhttps://api.pump.fun/v1/...; see above.401: the key is missing or wrong. Fix the header or the key; do not retry unchanged.403 API_KEY_REVOKED,API_ORG_SUSPENDED,API_ORG_NOT_APPROVED: stop calling and check the developer console.403 API_SCOPE_FORBIDDEN: request the scope inrequiredScope.403 API_REGION_RESTRICTED: the request came from a region where pump.fun is not available; no key or scope change helps.429: waitRetry-After, then retry. Checkwindowto know whether it was the burst bucket (burst), the daily limit (day) or one of the per-IP throttles (auth,lookup); see Limits and headers.503with noerrorfield: waitRetry-After(5 seconds), then retry the same request.- Anything else: read
error, logX-Request-Id, and quote both in a support request.