Skip to main content
Every request needs an API key. Generate one from your dashboard.

Sending the key

Pass your key in the X-API-Key header on every request:
For browser-side WebSocket connections where headers aren’t easy, you can pass the key as a ?api_key= query string instead. See Streaming: WebSocket.

Key format and security

Keys look like ohlcv_<env>_sk_<48_random_chars> where <env> is live, dev, or test. Keys are hashed (SHA-256) at rest. You see the full key once at generation. Lost a key? Rotate to issue a new one — there’s no way to retrieve the original. Rotation issues a fresh key and grants the old one a 7-day grace period before it stops working.

Tiers and limits

Paid tiers are capped by requests-per-second only, with unlimited monthly volume. The Free tier also has a monthly request cap and a 14-day history window. Pick a tier that matches your sustained throughput. Free is strict: 10 requests in any one second. Developer and Pro allow short bursts: a whole second’s worth sent at once can be refused, and Developer never gets more than about 120 in any one second. Over the limit you get a 429 with Retry-After: 1. The Free monthly cap and history window are described in Quotas & errors. Some endpoints are tier-gated (/tokens/{mint}/smart-money, /tokens/{mint}/whales). Free callers receive HTTP 200 with tier_locked: true rather than 429 — see Quotas & errors.

Inspecting your usage

Call GET /credits at any time to see your current tier, RPS cap, how much of your per-second allowance is in use, and feature flags:
On paid tiers monthly_cap, monthly_remaining and monthly_resets_at are null and monthly_enforced is false. monthly_resets_at is 00:00 UTC on the 1st of the month. The Free monthly cap is applied only while monthly_enforced is true; see Quotas & errors.

Error responses

Errors are always enveloped, with error as an object:
Branch on error.code; error.message is for humans. A few families are not on this shape yet: /swaps/* and /stats/* send error as a string code with a sibling message, and /tokens/{mint}/concentration sends error as a string. If error is a string, treat it as the message. See Quotas & errors for the per-family breakdown. Full error catalog: see Quotas & errors.