| 401 | Invalid token: Not enough segments | Malformed token sent to a non-edge endpoint expecting a JWT | Edge endpoints accept pg_* keys directly. For auth-service endpoints, exchange your key via POST https://auth.polargrid.ai/v1/auth/session. See Authentication. |
| 401 | Token has expired | Your session JWT has expired (default TTL: 1 hour) | Request a new session token, or use direct API key auth (no JWT needed on edge endpoints). |
| 403 | {"Message": null} | Request blocked at the AWS infrastructure level (CloudFront/WAF) | Verify your API key is active in the dashboard. This error comes from AWS infrastructure, not the PolarGrid application. |
| 402 | Billing access denied | Your organization has no payment method or credits | Add a payment method in Settings > Billing, or contact support for credits. |
| 404 | Model not loaded | The model you requested is not deployed on this edge node | Call GET /v1/models to see available models, or switch to a different region. |
| 405 | Method Not Allowed | You sent an unsupported HTTP method (e.g., POST/PUT to a GET-only endpoint) | Check the API Reference for the correct HTTP method for each endpoint. |
| 429 | Rate limit exceeded | Too many requests in a short window | Back off and retry. Check Retry-After header for the wait time. |
| 502 | TTS backend error | The TTS synthesis engine failed (often bad voice ID or empty input) | Check that your voice parameter matches a valid voice ID and input is not empty. |