Errors & rate limits
Every response has the same shape, so one error handler covers the whole API.
Response shape
Success
{ "success": true, "data": { … }, "meta": { "request_id": "…" } }
Error
{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "The request contains invalid fields.",
"details": {
"title": "This field is required.",
"start_time": "This field is required.",
"duration_minutes": "This field is required.",
"timezone": "This field is required."
}
},
"meta": { "request_id": "ef7dfc66-d955-40e2-a111-ddef01b872fb" }
}
- Branch on
error.code. It never changes.messageis for people and may be reworded. detailsappears on validation errors and maps each field to what is wrong.request_idis also in theX-Request-Idheader. Log it, and quote it when you contact support.
Error codes
| Status | Code | What to do |
|---|---|---|
| 400 | MALFORMED_JSON | The body is not valid JSON, or not a JSON object. |
| 400 | INVALID_IDEMPOTENCY_KEY | Use 1–255 printable ASCII characters. |
| 400 | HTTPS_REQUIRED | Call https://, not http://. |
| 401 | UNAUTHORIZED | Send your key. Authentication |
| 401 | INVALID_API_KEY | Key is wrong, revoked or expired. Check Developer Settings. |
| 401 | INVALID_TOKEN | A host or guest link is damaged or expired. Create a new one. |
| 403 | INSUFFICIENT_SCOPE | The key may not do this. |
| 403 | ORIGIN_NOT_ALLOWED | Browser call from a site not allowed for this key. |
| 403 | FORBIDDEN | Account inactive, or a hard delete without permission. |
| 404 | NOT_FOUND | Wrong path, or a meeting that is not yours. |
| 405 | METHOD_NOT_ALLOWED | Wrong HTTP method; the Allow header lists the right ones. |
| 409 | SCHEDULE_CANCELLED | The meeting was cancelled; it cannot be changed. |
| 409 | SCHEDULE_ENDED | Too late for a guest link. |
| 410 | GONE | A link for a cancelled meeting, or a one-time code already used. |
| 413 | PAYLOAD_TOO_LARGE | Keep the body under 100 KB. |
| 415 | UNSUPPORTED_MEDIA_TYPE | Add Content-Type: application/json. |
| 422 | VALIDATION_FAILED | Fix the fields listed in details. |
| 429 | RATE_LIMITED | Wait Retry-After seconds. See below. |
| 500 | INTERNAL_ERROR | Our problem. Retry later; contact support with the request_id. |
| 503 | — | /v1/health only: the service is degraded. |
Rate limits
Each key may make 100 requests per minute. Each client IP address may make 300. The counter resets at the start of every minute. Every response tells you where you stand:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 57
X-RateLimit-Reset: 23 # seconds until the counter resets
Over the limit, you get 429. Wait the number of seconds in Retry-After, then continue.
HTTP/1.1 429 Too Many Requests
Retry-After: 46
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
{ "success": false, "error": { "code": "RATE_LIMITED", "message": "Too many requests. Please retry later." }, … }
Need more? Contact Hehllo support with your expected volume.
Retrying safely
Network error, 500, 503 | Retry with a growing delay (1 s, 2 s, 4 s …). For creates, reuse the same Idempotency-Key so you never get two meetings. |
429 | Retry after Retry-After. |
Other 4xx | Do not retry unchanged; fix the request. |