Errors & limits

Errors use standard HTTP status codes and a stable, machine-readable code.

Error format

{
  "error": {
    "code": "insufficient_credits",
    "message": "Not enough balance in your API wallet. Recharge at /developers."
  }
}

Branch on error.code; error.message is for people and may change.

Error codes

StatusCodeMeaningCharged
400invalid_requestThe body is missing a field or a value is invalid.No
400chart_failedThe Kundli could not be computed. Check date, time, place and timezone.No
401invalid_api_keyMissing, wrong or revoked API key.No
402insufficient_creditsYour wallet balance is too low. Recharge at /developers.No
404not_foundThe consultation does not exist or belongs to another account.No
409consultation_closedThe consultation closed 7 days after it started. Create a new one.No
409consultation_not_readyThe consultation is not ready to take questions yet. Retry shortly.No
429answer_pendingTwo questions are already waiting for answers. Wait for one to be answered.No
503unavailableKaal is temporarily unavailable. Retry later.No

Limits

LimitValue
Consultation lifetime7 days from creation, then read-only
Question length2–600 characters
Unanswered questions per consultation2
fullName length120 characters
Active API keys per account10

Retrying