Authentication
All API requests require an API key passed as a header. Use Authorization: Bearer as the primary scheme.
API Key
Asterwise also accepts the key via an X-API-Key: <key> header for compatibility, but Authorization: Bearer is recommended.
Authorization: Bearer YOUR_API_KEY
Create your key in the Asterwise Dashboard. Email and password sign-ups confirm their email first; Google sign-ups are confirmed already. A key only works while its account's email is confirmed; otherwise calls return email_not_verified.
Rate Limits
| Plan | Calls/month | Rate limit |
|---|---|---|
| Sandbox | 500 | 10/min |
| Builder | 10,000 | 60/min |
| Launch | 50,000 | 200/min |
| Scale | 300,000 | 500/min |
Errors
| Code | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 403 | Email not confirmed yet (email_not_verified): confirm it, then retry |
| 429 | Rate limit exceeded |
| 422 | Validation error — check request body |
| 500 | Internal server error |