All requests to the Snipex API must include a valid API key in the Authorization header.
Getting a key
- Sign in at snipex.dev/dashboard
- Click New key
- Give it a name and click Create
- Copy the full key — it’s only shown once
Keys are prefixed with snx_.
Using your key
Pass it as a Bearer token in every request:
Authorization: Bearer snx_your_api_key
Example:
curl -X POST https://api.snipex.dev/v1/search \
-H "Authorization: Bearer snx_your_api_key" \
-H "Content-Type: application/json" \
-d '{"query": "..."}'
Security best practices
Never expose your API key in client-side code, public repositories, or logs.
- Store keys in environment variables, not hardcoded in source code
- Use one key per application or environment (staging vs. production)
- Rotate keys immediately if you suspect they’ve been compromised — delete the old one from the dashboard and create a new one
- On the server side, pass requests through a backend proxy rather than calling Snipex directly from the browser
Errors
| Status | Meaning |
|---|
401 Unauthorized | Missing, invalid, or revoked API key |
429 Too Many Requests | Rate limit exceeded — see Rate Limits |