Authentication

Every Anaxer API request is authenticated with an API key: a header on REST, and the apiKey query parameter or a header on streams.

Get a key

Create a free account and an API key in the Anaxer console. The free plan needs no card. One key works for REST and streams.

REST

curl https://api.anaxer.com/v1/creations \
  -H "Authorization: Bearer YOUR_KEY"

Send the key as a Bearer token in the Authorization header, or in an x-api-key header; use whichever your HTTP client makes easier. The health check, GET /health, needs no key.

Streams

wss://api.anaxer.com/v1/stream?apiKey=YOUR_KEY

Pass the key as the apiKey query parameter when you open the WebSocket. From a server, you can send an Authorization: Bearer header on the upgrade request instead, which keeps the key out of the URL.

Network

Anaxer serves Solana mainnet data only. There is no devnet or testnet endpoint.

Key security

Can I use my Anaxer API key in a browser?

Avoid it. A key in browser JavaScript, or in a WebSocket URL opened from the browser, is visible in the page source and in network logs. Proxy requests and streams through your backend and keep the key in an environment variable on the server.

What do I do if my API key leaks?

Rotate it from the console. The old key stops working immediately.

Last updated · Changelog