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

StatusCodeMeaningWhat to doRetry?
400VALIDATION_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
401UNAUTHORIZEDThe request has no API key, or an empty one.Send Authorization: Bearer … or X-API-Key.After fixing the request
401INVALID_API_KEYThe key is unknown, revoked or expired.Use a current key.After fixing the request
403INSUFFICIENT_SCOPEThe key does not have the scope this endpoint needs.Use a key with the scope.After fixing the request
403PLAN_REQUIREDThe organisation is not on the Enterprise plan.Contact IntelliDent.No
403ACCOUNT_NOT_ACTIVEThe 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
429RATE_LIMITEDOver the key’s per-minute limit.Wait Retry-After seconds.Yes, with backoff
500INTERNAL_ERRORAn unexpected error on our side. error.details.requestId identifies it.Retry with backoff; contact support with the requestId if it persists.Yes, with backoff
503RATE_LIMIT_UNAVAILABLEThe 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 return 409 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 429 and 503 after the Retry-After header, and 500 with exponential backoff (for example 1 s, 2 s, 4 s, capped at a few attempts).
  • Do not retry 400, 401 or 403 unchanged: 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.