API Response Formats
Every endpoint in the Dental API returns JSON in a consistent envelope, so your integration can parse success and failure the same way across the whole surface. There are two exceptions on success: the Upload endpoints return their documented fields at the top level, and the Admin endpoints return status and data only. Empty pagination, metadata and warnings are left out of a response rather than returned empty. This page describes the request headers, the standard response envelope, pagination, and the FHIR response format. For the full list of HTTP status codes and support_code values, see Validation, Limits & Character Handling.
Required headers
Every request must include the following headers:
| Yes | Your organisation identifier (for example | Identifies the practice database to route to. |
| Yes | Your API key | Issued per integration account. One key can be mapped to several organisations. Keep it secret; never embed it in client-side code. |
| No |
| All responses are JSON regardless of this header. Sending it is recommended for forward compatibility, but it is not currently enforced: requests without it, or with a different value, still succeed. |
Standard response envelope
Successful responses share a single shape. data is an array for non-FHIR endpoints, except the admin endpoints, which return data as an object. FHIR endpoints place a single FHIR Bundle object under data.
{
"status": true,
"message": "Success",
"data": [
{ "...": "one or more records" }
],
"pagination": {
"page": 1,
"per_page": 10,
"total_rows": 1,
"total_pages": 1
}
}
status:trueon success,falseon error.message: a short human-readable summary ("Success"on the happy path).data: an array of records. Empty ([]) when there is nothing to return. A list endpoint that matches no records returns200withstatus: true, the messageNo records found.and an emptydataarray. An endpoint that looks up a single record by its id returns404with the same message.pagination: present on list endpoints (see below). Single-record and write responses may return an empty object ({}) or omit it.
Pagination
List endpoints accept page and per_page query parameters and echo a pagination block:
| The page returned (1-based). |
| Records per page. |
| Total matching records across all pages. |
| Total number of pages available. |
per_page has an upper bound; values above the maximum are rejected with a validation error. See Validation, Limits & Character Handling for the exact limit.
Error responses
Errors use the same envelope with status: false and an empty data array. Where the platform can attribute the failure to a specific cause, it includes a stable support_code you can quote to Centaur Software support:
{
"data": [],
"status": false,
"message": "postcode must be a valid Australian postcode (4 digits, range 0200-9999; got 'ABCD').",
"support_code": "PW-6020"
}
messageis human-readable and, where possible, field-specific.support_codeis a stable identifier. Treat it as optional: many ordinary 4xx responses (authentication, organisation mismatch, not-found, request-schema validation) are message-only and carry nosupport_code. Always readmessageas the fallback.
The complete reference (HTTP status code conventions, every support_code, field limits, character handling, and the message-only responses) lives on the Validation, Limits & Character Handling page. It is the single source of truth; this page does not duplicate it.
Date and time
- Time zone: date and date-time values are the practice’s local time, with no offset (for example
2026-06-09T14:30:00is 2:30 pm at the practice). A practice in Perth reports Perth time and a practice in Sydney reports Sydney time. FHIRAppointment.start,Appointment.endand every resource’smeta.lastUpdatedare the exception: they carry the offset of the location’s time zone. Thetime_zonefield on GET Locations shows each location’s zone. Peak and off-peak organisation rate limits use Australian Eastern Time all year, following daylight saving (AEST in winter, AEDT in summer): see Rate Limits. - Format for date values:
YYYY-MM-DD(ISO 8601 date). Example:2026-06-09. - Format for datetime values:
YYYY-MM-DDTHH:MM:SS(ISO 8601). Example:2026-06-09T14:30:00. Request filters (from_date,to_date) take dates only (YYYY-MM-DD); a date with a time is rejected with422. - Inclusive bounds: date range filters are inclusive on both ends.
Warnings
Many responses carry a top-level warnings[] array. Confirmed live: each entry is a plain human-readable string, not a structured object. warnings[] signals that the request succeeded but with a side-effect the caller should be aware of (capping, sanitisation, default-range injection, transformation).
{
"status": true,
"message": "Success",
"data": [],
"warnings": [
"No bounded from_date/to_date window supplied; defaulted to patients updated in the last 90 days (from_date='2026-08-07', to_date='2026-11-05'). Supply patient_id, patient_card, date_of_birth, or BOTH ends of from_date/to_date to bypass this injection."
]
}
Typical reasons for a warnings[] entry (not an exhaustive list):
Recency window auto-injected |
| Broad call had no narrowing filter; a 90-day window was auto-applied. |
Row cap applied |
| A row limit was applied (10,000 broad / 1,000 DOB). Rows were left out only when |
Notes ASCII-folded |
| Non-ASCII characters were folded to ASCII equivalents before saving. |
Slot search range shortened |
| The date range was longer than the limit and was shortened; the text gives the dates searched and the date to continue from. |
Older cached copy returned | Read endpoints | The practice database was unavailable, so an older cached copy was returned ( |
Row ceiling reached | On-premise list reads | An on-premise read reached the 100,000-row ceiling; walk the history in smaller date windows. |
warnings[] is omitted (or empty) when nothing notable happened.
warnings[] is also returned on error responses from the write endpoints (a 4xx, and 500 PW-6017), so a note about how your request was changed before it was sent (for example a field that was left out) is not lost when the write is refused. 500 PW-6016, where the patient was confirmed not saved, returns an empty warnings[] list.
Metadata
Most endpoints return a top-level metadata object. It is a stable part of the response contract, not internal debug output, and it is worth reading on every call. Two fields in particular, patients_default_window_injected and patient_fanout_cap_applied, tell you when a response may not be the complete result set. patients_default_window_injected: true means only recently changed records were searched. patient_fanout_cap_applied: true means a row limit was applied to the query; the result is incomplete only when pagination.total_rows equals patient_fanout_cap_value. In either case narrow your query (for example with patient_id or a tighter date range) before treating the response as exhaustive.
| boolean |
|
| boolean |
|
| integer or null | The size (in days) of the window above, when injected; |
| boolean |
|
| integer or null | The row cap that was applied, when capping occurred; |
| boolean |
|
| integer | How old the cached copy is, in seconds. Present only when |
| boolean | Present and |
The window and cap fields are present on every response that carries metadata, and sit at false or null when nothing notable happened. cache_age_seconds and cache_stale appear only when they apply.
When contacting support about a specific call, quote the time of the request (with time zone), the org-id, the endpoint and the support_code.
Idempotency
Create requests can carry an Idempotency-Key header so that a retry never creates a second record. It applies to three endpoints: POST Patient (optional, recommended), POST Appointment (optional, recommended) and POST Append Treatment Note (required). Every other endpoint ignores the header, including PATCH Patient, PATCH Appointment, POST Appointment Cancel, POST Appointment Reschedule and POST Clinical Notes.
- Header:
Idempotency-Key: <8 to 128 characters>, using the lettersAtoZandatoz, the digits0to9, and the characters_,.and-. Leading and trailing spaces are trimmed. A UUID is a good choice. - Invalid format: a badly formed key returns
400withsupport_codeRP-4000and the message “Idempotency-Key must be 8-128 chars, URL-safe ([A-Za-z0-9_.-]).” On POST Append Treatment Note a missing key returns400RP-4000with the message “The Idempotency-Key header is required for this request.” - Scope: a key belongs to the practice (
org-id) and the endpoint. It is not tied to your API key, so two applications connected to the same practice share the key space. Always use random values. - Order of checks: request validation (
422for the request schema,400for business rules such asAW-6040) runs before the key is checked. A request rejected there does not use the key.
Same key, same request, after it succeeded | For 24 hours the original response is returned again: the same status, the same body and the same record id. A replay carries no marker to tell it apart from the first response. Date-time values use the same format as in the first response. The order of fields in the JSON body does not matter. |
Request saved, but the details could not be read back (rare) |
|
Same key, different request |
|
Same key while the first request is still running |
|
First request rejected by a definite error (any | The key is released. Correct the request and retry with the same key. |
First request has an unknown outcome (a timeout or lost connection after the request reached the practice database) | The key is held for 15 minutes for cloud-hosted practices and 75 minutes for practices connected through Halo Connect. The response, whatever its status ( |
After an unknown outcome, once the hold ends | Check whether the record exists before creating it again: GET Patients Lite for patients, GET Appointments with |
Appointment created through Halo Connect with no clear answer | About 70 seconds later the API checks the appointment book. A retry with the same key then returns the saved appointment, with a |
Duplicate protection is temporarily unavailable |
|
No key sent | No duplicate protection. A retry after a timeout can create a second record. |
PATCH Patient, PATCH Appointment, POST Appointment Cancel and POST Appointment Reschedule do not take part in this scheme. If one of them times out or returns 502, 503 or 504, read the record again before sending the change a second time: it may already have been saved.
FHIR response format
HL7 FHIR R4 output is served from dedicated endpoints under /api/v1/fhir/...: there is no fhir=true query parameter. Passing fhir=true to a normal read returns 400 with “Unexpected parameters: fhir, Please try again.” Do not send a fhir parameter to a write endpoint: POST Clinical Notes rejects it with the same 400.
Each FHIR endpoint returns the standard envelope with an HL7 FHIR R4 Bundle (type searchset) inside data. The bundle’s entry[] contains the primary resource plus any referenced resources (for a Patient, the referenced Practitioner and Location are included).
{
"status": true,
"message": "Success",
"data": {
"resourceType": "Bundle",
"type": "searchset",
"total": 1,
"entry": [
{
"resource": {
"resourceType": "Patient",
"id": "72",
"name": [ { "use": "official", "family": "Citizen", "given": ["Jane"], "prefix": ["Ms"] } ]
},
"search": { "mode": "match" }
}
]
},
"pagination": { "page": 1, "per_page": 10, "total_rows": 1, "total_pages": 1 }
}
Resource mapping:
GET Patients / Patient By ID |
|
GET Appointments / Appointment By ID |
|
GET Practitioners |
|
GET Locations |
|
GET Clinical Notes |
|
GET Treatments |
|
FHIR is read-only; there are no FHIR write endpoints. Write endpoints always return the standard envelope.
On this page
- API Response Formats