DocsAuthentication

Authentication

TickerLayer uses one API key for both REST and the public WebSocket upgrade. Keys are validated server-side on every request. Never commit raw keys to source control.

Open .md

API keys

Each account can have up to 5 active API keys, created, renamed and revoked in the dashboard. All keys belong to the same account, so they share its rate limits, monthly quota and WebSocket connection allowance; an extra key does not add capacity.

REST

MethodSend the key asUse
Headerx-api-key: <YOUR_API_KEY>Preferred: keeps the key out of server and proxy URL logs.
Query parameter?apiKey=<YOUR_API_KEY>Compatibility fallback; use the header for new integrations.
cURL example
curl -sS "https://api.tickerlayer.com/crypto/symbols" \
  -H "x-api-key: <YOUR_API_KEY>"

Browsers & CORS

Servers and tools
Backend services, native apps, curl and Postman are not affected by browser CORS rules.
Browser apps
JavaScript in a web page can call REST only from an approved origin. Contact us to allowlist your domain.

WebSocket

Authenticate once, on the HTTP upgrade URL, with the apiKey query parameter. It is a native WebSocket server (not Socket.IO), with no in-frame handshake.

Connection URL
wss://stream.tickerlayer.com/?apiKey=<YOUR_API_KEY>

Case-sensitive

The parameter name must be exactly apiKey; other spellings are rejected with 401. Upgrade-time details: WebSocket authentication.

Error codes

StatusMeaning
401 UnauthorizedMissing or invalid API key. On a WebSocket upgrade an inactive key also gets 401.
403 ForbiddenOn REST: the key is inactive, the plan leaves out the data, or the package has ended. On a WebSocket upgrade: the plan does not include WebSocket, or the package has ended.

All error bodies: Errors reference.

Report a security issue

If you find a vulnerability in the API, the stream, the MCP server, the dashboard or this site, email [email protected]. The same contact is published for scanners at /.well-known/security.txt.

What to send
The affected URL or endpoint, the steps to reproduce it and what you could reach. Leave API keys and other people’s data out of the report.
How to test
Use your own account and keys. Do not run load or denial-of-service tests, and do not read, change or delete data that is not yours.
What happens next
We reply to every report, tell you when the issue is fixed, and ask you to keep the details private until then. Research done in good faith under these rules is welcome. There is no paid bounty.