API
Errors
The error envelope, every error code, and what to do about each one.
Error formatLink to this section
Every error is JSON with success: false and an error object. error.code is stable: branch on it. error.message is for people and may change.
403 Forbidden
{
"success": false,
"error": {
"message": "Insufficient scope",
"code": "INSUFFICIENT_SCOPE"
},
"requestId": "7d1f5c2e-3b8a-4c6e-9f10-2a4b6c8d0e1f",
"timestamp": "2026-11-20T01:15:00.000Z"
}Most errors include a requestId and timestamp. Responses produced before your request reaches an endpoint (UNAUTHORIZED, ACCOUNT_NOT_ACTIVE, RATE_LIMITED, RATE_LIMIT_UNAVAILABLE) carry only success and error, so do not require the other fields.
Error codesLink to this section
| Status | Code | Meaning | What to do | Retry? |
|---|---|---|---|---|
400 | VALIDATION_ERROR | /api/v1/appointments only: from or to is not a date, or limit or page is out of range. | Fix the parameter. | After fixing the request |
401 | UNAUTHORIZED | The request has no API key, or an empty one. | Send Authorization: Bearer … or X-API-Key. | After fixing the request |
401 | INVALID_API_KEY | The key is unknown, revoked or expired. | Use a current key. | After fixing the request |
403 | INSUFFICIENT_SCOPE | The key does not have the scope this endpoint needs. | Use a key with the scope. | After fixing the request |
403 | PLAN_REQUIRED | The organisation is not on the Enterprise plan. | Contact IntelliDent. | No |
403 | ACCOUNT_NOT_ACTIVE | The organisation’s account is not active (for example awaiting approval or suspended). The body also has error.accountStatus, which is null for API-key requests. | Contact IntelliDent. | No |
429 | RATE_LIMITED | Over the key’s per-minute limit. | Wait Retry-After seconds. | Yes, with backoff |
500 | INTERNAL_ERROR | An unexpected error on our side. error.details.requestId identifies it. | Retry with backoff; contact support with the requestId if it persists. | Yes, with backoff |
503 | RATE_LIMIT_UNAVAILABLE | The rate limiter could not count the request, so it was refused rather than let through. | Wait Retry-After seconds. | Yes, with backoff |
Statuses the Public API does not use
The v1 endpoints are read-only, so they never return409 Conflict or 422. An unknown path returns 404 and an unsupported method on a known path returns 405; neither has the JSON error envelope.Tenant isolation
There is no “forbidden for this organisation” error, because a key can never name another organisation: every endpoint reads only the key’s own organisation. See Security & data access.When to retryLink to this section
- Retry
429and503after theRetry-Afterheader, and500with exponential backoff (for example 1 s, 2 s, 4 s, capped at a few attempts). - Do not retry
400,401or403unchanged: the same request will fail the same way. - All Public API endpoints are GET requests with no side effects, so retrying is always safe. There is no Idempotency-Key header.
A ready-made backoff helper is on the Rate limits page.