pnl.memedocs

Auth · limits · errors

The contract behind every call: the key, the ceilings, the error codes, paging and request ids.

Authentication

Send the key as Authorization: Bearer pnl_…. It is shown once, when it is minted or bought, and stored only as a hash: a lost key is replaced, never recovered.

  • No key is a caller too, on the MCP server and the REST tools: the public tier, the free reads, 20 rows a call. A door the API reference marks as needing a key answers 401 without one.
  • A data key reads, and only reads. Its plan decides the menu and the ceilings. Mint a free one in the Builder API window; the plans are on Plans & keys.
  • Keep it on a server. Anything in a browser bundle is public, and a browser’s EventSource cannot send the header anyway.
  • Revoke with the key itself: DELETE /api/keys on the site host.

A key authenticates reads. It cannot approve spending, sign a transaction, or stand in for a wallet.

Limits

Two ceilings, counted apart: calls a day, which reset at 00:00 UTC, and a pace a minute, which refills on its own. Either answers 429 with Retry-After. A failed call costs nothing.

PlanCalls / dayPer minuteOpen streams
No keyshared30 per address0
FREE500300
BUILDER10,0001201
PRO50,0003005
NETWORK2,500,0001,80025
FLEET800,0002,400100

Every door that runs a read counts against the same day: the MCP server, the REST tools, POST /v1/skills/run, and each stream you open. The public tier also caps a call at 20 rows.

Usage

Ask what is left: the get_usage tool on MCP or REST, or GET /api/usage on the site host with the same key. Neither shows or grants anything beyond the key that asks.

curl
curl https://pnl.meme/api/usage \
  -H "Authorization: Bearer pnl_..."

Errors

Every error has one shape, whatever failed behind it. Branch on code; quote request_id when you report one.

Error
{
  "error": {
    "code": "permission_denied",
    "message": "\"network.smart\" is not included in this key's plan. It is available from the pro plan.",
    "type": "permission_error",
    "request_id": "<uuid>",
    "required_plan": "pro"
  }
}
HTTPCodeMeansDo this
400invalid_requestThe body or a field was refused; the message names the field.Fix the field. Every tool's fields are on /docs/tools.
401missing_api_keyThe door needs a key and none was sent.Send Authorization: Bearer <key>.
401invalid_api_keyThe key is not one we issued.Check for a cut-off paste, or mint a new key.
401revoked_api_keyThe key was revoked.Mint a new key.
403permission_deniedYour plan does not include it. required_plan names the plan that does.Upgrade the key on /docs/data-key.
404not_foundNo such route, or no such tool for this caller.GET /v1/tools/openapi lists the kit.
413result_too_largeThe answer would exceed what one call carries.Ask for fewer rows.
429rate_limit_exceededToo many calls this minute, or every stream your plan holds is open.Wait Retry-After seconds.
429quota_exceededToday's allowance is spent.It resets at 00:00 UTC; Retry-After counts down to it.
502upstream_errorA read behind the call failed.Retry. A failed call costs nothing.
503service_unavailableWe could not admit or record the call just now.Retry after Retry-After, with the same key and body.
503no_provider_availableThe capability cannot answer on this deployment right now.Retry later, or pick another read.
504upstream_timeoutThe read took too long.Retry, or narrow the call.

On the MCP server

A key that does not authenticate is the 401 above, before any message is read. After that the server answers in JSON-RPC: a protocol error is the client’s to fix, a tool error the model’s to read.

CodeMeans
-32700The body is not JSON.
-32600Not one JSON-RPC 2.0 message, or a body over the size a message needs.
-32601A method this server does not have. On revision 2026-07-28 the status is 404.
-32602A tool or prompt this caller is not shown, or arguments that are not an object. On 2026-07-28 also a request missing _meta protocolVersion or clientCapabilities (status 400).
-320202026-07-28: MCP-Protocol-Version, Mcp-Method or Mcp-Name is missing or does not match the body. Status 400.
-320222026-07-28: a protocol version this server does not speak. Status 400; data.supported lists the ones it does.
-32000Too many requests, on a method other than tools/call.
isError: trueThe tool ran and refused: the text starts with the house error code, then the sentence to act on.

Headers

HeaderMeans
X-Request-IdOn every response, and as request_id in every error. Quote it when you report a problem.
Retry-AfterOn every 429 and on a 503 we expect to clear: seconds to wait.
MCP-Protocol-VersionSent by MCP clients. 2026-07-28, 2025-06-18 and 2025-03-26 are spoken; another is a 400.

Paging

  • A list takes limit, bounded per tool (the bounds are on Tools). Past the bound is a 400 naming the field. On the public tier a larger limit is lowered to 20.
  • The leaderboard pages by offset; its answer carries next_offset for the page after.
  • The pump.fun launch feed pages by after: the seq the last page ended on.
  • get_changes_since keeps a named cursor per key: each call answers what changed since the last one and moves it.
  • The partner Data APIs page by an opaque cursor handed back verbatim; each one’s page states its rule.
NORMALsigned outpolling? keys