Skip to content

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.

These are the codes the key, scope and limit checks can return on any route.

CodeStatusMeaningWhat to do
API_KEY_REQUIRED401The 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_KEY_INVALID401The credential is not a well-formed pf_live_ key (prefix, length, charset or checksum) or no key record exists for itCheck 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_KEY_REVOKED403The key was revoked (by its owner or by the pump.fun team); issue a new key in the developer consoleStop using this key. Create a new one in the developer console and deploy it.
API_ORG_SUSPENDED403The key's org is suspended or closed, so none of its keys is served; contact developers@pump.funStop calling. Email developers@pump.fun with your organisation name (see Status and support).
API_ORG_NOT_APPROVED403The 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_SCOPE_FORBIDDEN403The key does not hold the API scope this route needs; requiredScope names itRequest the scope named in requiredScope by email to developers@pump.fun with the key prefix, or stop calling the route.
API_REGION_RESTRICTED403The Developer API is not available in the region the request came from (the same regional availability as pump.fun); the body names no countryStop 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_KEY_RATE_LIMITED429A 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 retryAfterMsWait 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_CREDENTIAL_NOT_ALLOWED400Each host accepts only its own credential kindSend 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 error field: it is the envelope with message and retryAfterSeconds (5), and the response carries Retry-After: 5.

Wait Retry-After, then retry the same request. Do not retry in a tight loop.

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.

Terminal window
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.

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_REQUIRED on GET /portfolio-summary and GET /portfolio-summary/chart: these routes serve the signed-in user when user is omitted, but an API key is never a session. Send user=<wallet or username> on every keyed call; do not retry unchanged.
  1. 404 with "error": "Not Found" on a route from the reference: the URL is missing the /v1 prefix. Call https://api.pump.fun/v1/...; see above.
  2. 401: the key is missing or wrong. Fix the header or the key; do not retry unchanged.
  3. 403 API_KEY_REVOKED, API_ORG_SUSPENDED, API_ORG_NOT_APPROVED: stop calling and check the developer console.
  4. 403 API_SCOPE_FORBIDDEN: request the scope in requiredScope.
  5. 403 API_REGION_RESTRICTED: the request came from a region where pump.fun is not available; no key or scope change helps.
  6. 429: wait Retry-After, then retry. Check window to 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.
  7. 503 with no error field: wait Retry-After (5 seconds), then retry the same request.
  8. Anything else: read error, log X-Request-Id, and quote both in a support request.