x-api-key HTTP header.
Getting your API key
- Sign in to your sunor dashboard.
- Navigate to API Keys.
- Click Create API Key and give it a name.
- Copy the key immediately — it will only be shown once.
Using your API key
Include thex-api-key header in every request:
Error responses
Example error response:
Security tips
- Store your API key in environment variables, not in source code.
- Rotate keys periodically from the API Keys page.
- If you suspect a key has been compromised, delete it immediately and create a new one.
- Each key is tied to your account — anyone with the key can use your credits.