Skip to content

6 min read · Updated 28 November 2026

Which OrbitFlare API Key Do I Use? Fixing Auth Errors

Which OrbitFlare API key goes where: the license key, Apex API key or Customer API key, how to send each one, and what each auth error means.

An OrbitFlare API key only opens the kind of service it was made for. RPC, WebSockets and the gRPC streams take your license key; sending transactions through Apex takes the Apex API key; managing your account by API takes the Customer API key. When authentication fails, the usual cause is a valid key going to the wrong service or sitting in the wrong part of the request.

The three OrbitFlare API key types at a glance

Key Where you find it Works with How to send it
License key (ORBIT-XXXXXX-NNNNNN-NNNNNN) Dashboard, Services (the Licenses section in the docs) Solana RPC and WebSockets, Yellowstone gRPC, Jetstream, BNB Chain, Polygon, Robinhood Chain ?api_key= on the URL or an x-api-key header; on gRPC, the x-token metadata header
Apex API key Dashboard, Apex Apex transaction landing (*.apex.orbitflare.com) only x-api-key header, or ?api-key= with a hyphen
Customer API key Dashboard, API Keys (shown once when created) Account management at orbitflare.com/api/customer/v2 X-ORBIT-KEY header

Apex rejects the license key, and RPC rejects the Apex key. So if RPC calls go through while Apex turns your key down, you most likely haven't made a key for Apex yet; Apex tip rules, API key and confirming a transaction shows how.

Where the license key goes

  • HTTP RPC: append ?api_key=YOUR_API_KEY to the URL, or pass the key in an x-api-key header instead. With the header, the key stays out of URLs, which often get written to logs and proxies.
  • WebSocket: put ?api_key= on the wss:// URL. A browser can't add headers to a WebSocket handshake, so there the query parameter is your only choice.
  • Yellowstone and Jetstream: pass the key as x-token gRPC metadata. There is no query string in gRPC, and gRPC does not take x-api-key.

Watch the parameter name: RPC expects api_key (underscore), while Apex expects api-key (hyphen).

IP Whitelist or API Key Only

Each license works in one of two modes, which you choose under Authentication Mode on the license in your dashboard:

  • API Key Only: whoever has the key can connect, from any IP. That suits laptops and serverless functions, as long as the key stays secret.
  • IP Whitelist: connections are accepted only from the IPs on the license's IP whitelist. RPC and WebSocket requests still include ?api_key=, and gRPC still passes x-token.

Both the IP whitelist and the domain whitelist are yours to edit in the dashboard; there's no need to open a ticket. Switching servers? Whitelist the new IP, move the traffic over, and only then delete the old entry.

What each auth error means

Error What it means Fix
-32401 missing API key The request carried no key Add ?api_key= or the x-api-key header
-32402 invalid API key The key is wrong or was regenerated Copy the current key from the dashboard
-32404 IP not whitelisted Your IP, or the region you called, is not on the license Whitelist the IP, or call a region your license covers
gRPC Unauthenticated No x-token was sent Send the license key as x-token
gRPC PermissionDenied Yellowstone: the IP is not whitelisted in IP Whitelist mode Add the IP to the whitelist
Jetstream Unavailable: EOF or connection reset Invalid key, an IP that is not whitelisted, or an endpoint not on your license Check the key, the whitelist and the host
Apex -32001 Missing or invalid Apex key Create or copy the key under Dashboard > Apex

When the same machine gets answers from one region but -32404 from another, that second region isn't part of your license. For more depth, the authentication docs describe both modes and the RPC error codes page lists the remaining messages. An HTTP 429 points to a rate limit rather than to your key; RPS vs TPS has the details.

Keep keys out of reach

Keep keys in environment variables or a secret manager, and out of browser code and public repositories. Regenerate a leaked key in the dashboard; anything still sending the old one will then get -32402. If your browser app really has to call RPC itself, set the domain whitelist so the key works only from your site; using a custom RPC URL covers it.

Was this guide useful?

A useful starting point

Edit the brief, then copy it and open your assistant. Paste it into a new chat to get started.

Official sources included. You choose when to send.