Errors and limits
Errors return {"message", "code", "request_id"}:
| Status | code |
|---|---|
| 400 | invalid_request |
| 401 | unauthenticated, session_ended (the explore iframe's session is over) |
| 402 | ai_credits_exhausted |
| 403 | forbidden, embedding_not_enabled, embedding_permission_missing, browser_request |
| 404 | not_found |
| 409 | busy, limit_reached, not_an_api_user, agent_limit_reached |
| 429 | rate_limited |
| 503 | unavailable (the explore iframe couldn't check its session; it retries on its own) |
| 500 | internal (email support@mitzu.io with the request_id) |
Each API key can make 30 calls per second, and each server IP 100 calls a second and 6,000 Embed API calls a minute. Questions are limited to 200 per key per day and 20 per user per hour.