Skip to content

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. message is for people and may be reworded.
  • details appears on validation errors and maps each field to what is wrong.
  • request_id is also in the X-Request-Id header. Log it, and quote it when you contact support.

Error codes

StatusCodeWhat to do
400MALFORMED_JSONThe body is not valid JSON, or not a JSON object.
400INVALID_IDEMPOTENCY_KEYUse 1–255 printable ASCII characters.
400HTTPS_REQUIREDCall https://, not http://.
401UNAUTHORIZEDSend your key. Authentication
401INVALID_API_KEYKey is wrong, revoked or expired. Check Developer Settings.
401INVALID_TOKENA host or guest link is damaged or expired. Create a new one.
403INSUFFICIENT_SCOPEThe key may not do this.
403ORIGIN_NOT_ALLOWEDBrowser call from a site not allowed for this key.
403FORBIDDENAccount inactive, or a hard delete without permission.
404NOT_FOUNDWrong path, or a meeting that is not yours.
405METHOD_NOT_ALLOWEDWrong HTTP method; the Allow header lists the right ones.
409SCHEDULE_CANCELLEDThe meeting was cancelled; it cannot be changed.
409SCHEDULE_ENDEDToo late for a guest link.
410GONEA link for a cancelled meeting, or a one-time code already used.
413PAYLOAD_TOO_LARGEKeep the body under 100 KB.
415UNSUPPORTED_MEDIA_TYPEAdd Content-Type: application/json.
422VALIDATION_FAILEDFix the fields listed in details.
429RATE_LIMITEDWait Retry-After seconds. See below.
500INTERNAL_ERROROur 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, 503Retry with a growing delay (1 s, 2 s, 4 s …). For creates, reuse the same Idempotency-Key so you never get two meetings.
429Retry after Retry-After.
Other 4xxDo not retry unchanged; fix the request.