POST Clinical Notes
Creates a clinical note for a patient. The note is stored as a clinical/treatment record, and the response returns the new record’s treatment_id.
Request body
| integer | Required. Patient the note belongs to. |
| string | Required. Free-text note content, up to 20,000 characters. Submit as plain text. |
| integer | Authoring practitioner. If omitted, the patient's default is applied and returned in the response. |
| integer | Location where the note is recorded. If omitted, the patient's default is applied and returned in the response. |
Returns
A 200 response returns the persisted note as a clinical/treatment record. It includes both a note_id (the note’s own identifier) and a treatment_id (the identifier of the underlying treatment record the note is attached to), which are two distinct IDs, not aliases of each other, plus the resolved practitioner_id and location_id, and a pagination block. The note_id depends on the practice’s data model version: see GET Clinical Notes.
{
"status": true,
"message": "Success",
"data": [
{
"note_id": 8043040,
"treatment_id": 1043040,
"patient_id": 25407,
"note_date": "2026-05-27",
"note_source": "Treatment",
"item_code": "9999",
"tooth": "",
"surface": "",
"notes": "Patient reports sensitivity on upper left.",
"practitioner_id": 315,
"location_id": 4,
"created_date": "2026-05-27T22:31:18.689000",
"updated_date": "2026-05-27T22:31:18.689000"
}
],
"pagination": {
"page": 1,
"per_page": 100,
"total_rows": 1,
"total_pages": 1
}
}
Error responses
Clinical notes use the standard write-validation pipeline. A request body that is missing or is not valid JSON returns 422 and nothing is written. Missing fields return RP-4000, a non-integer patient_id returns TYP-INT, and a non-existent patient reuses the patient code PW-6013. See Validation, Limits & Character Handling for the full catalogue. The examples below are live-verified against Sandbox.
400 |
|
|
400 |
|
|
400 |
| A field exceeds the maximum length the practice management system accepts after special characters were converted to plain text (for example |
400 | None | Script-shaped content such as |
400 |
|
|
400 |
|
|
400 |
|
|
400 | None |
|
403 | None | Missing or invalid |
404 |
|
|
422 | None | Request body missing or not valid JSON. Nothing is written. |
429 |
| Request rate limit exceeded for this organisation. Honour the |
429 |
| Per-minute limit for your integration account exceeded. Honour the |
429 |
| Daily limit for your integration account exceeded. Honour the |
500 | None | Unexpected internal error. |
502 |
| The practice database service could not be reached. The note may or may not have been saved: check before sending it again. |
503 |
| Service temporarily unavailable. A more specific code can be returned instead: |
504 |
| The API timed out waiting for the practice database. The note may still have been saved: check before sending it again. |
Required parameter missing (400):
{ "data": [], "status": false, "message": "Missing required parameters: patient_id. Both patient_id and note parameters are required", "support_code": "RP-4000" }
patient_id not an integer (400):
{ "data": [], "status": false, "message": "patient_id must be an INTEGER; got non-numeric value", "support_code": "TYP-INT" }
note exceeds the maximum length (400):
{ "data": [], "status": false, "message": "One or more fields exceed the maximum length the practice management system accepts (fields: note (20001>20000)). Shorten the affected field(s) and resubmit. [AW-6026]", "support_code": "AW-6026" }
Request body not valid JSON (422). The number in the message is the character position of the error, so it differs from request to request:
{ "data": [], "status": false, "message": "'0': JSON decode error" }
Patient not found (404):
{ "data": [], "status": false, "message": "Patient 999999999 not found.", "support_code": "PW-6013" }
Content rejected by security policy (400):
{ "data": [], "status": false, "message": "Request rejected by security policy. Check your input does not contain HTML or script content." }
Invalid or missing API key (403):
{ "message": "Forbidden" }
Organisation not associated with the key (400):
{ "data": [], "status": false, "message": "Given Organisation NOPE123 is not associated with provided token." }
Rate limit exceeded (429):
{ "status": false, "message": "Request rate limit exceeded for this organisation. Please slow down.", "support_code": "RL-001", "retry_after": 60, "retry_after_seconds": 60, "data": [] }
Important notes
- Apostrophes: an apostrophe in
noteis stored as sent, once (O'Brien). Before November 2026 it was stored twice (O''Brien). See the Change Log. - The request body is required. Required fields are
patient_idandnote.practitioner_idandlocation_idare optional. noteis free text up to 20,000 characters.- The note is persisted as a clinical/treatment record; the
200response returns both anote_idand atreatment_id(distinct identifiers, not aliases of each other). - If
practitioner_idorlocation_idare omitted, the patient’s defaults are applied and returned in the response. - Do not send a
fhirquery parameter: write endpoints reject it with400(Unexpected parameters: fhir). FHIR output is available on read endpoints only; useGET /api/v1/fhir/clinical-notesto read notes as FHIR Observation resources. patient_id(andpractitioner_id/location_id) must be integers; a non-numericpatient_idis rejected withTYP-INT.- Submit
noteas plain text. Content that looks like HTML or script, and very long or unusual payloads, is rejected by the security policy with a400. - Retries and duplicates: this endpoint does not support idempotent retries; an
Idempotency-Keyheader is ignored. If a request times out (504) or the connection drops, the note may already have been saved. Before sending it again, read the patient’s clinical notes (GET Clinical Notes withpatient_id,mode=1and today’sfrom_date) and check whether the note is there. To add text to an existing completed treatment with retry protection, use POST Append Treatment Note. - Platform errors: errors such as
MOD-4268(the practice database needs an upgrade) andRP-5037(the Halo Connect daily request quota for the practice is used up; retry after the time given) can be returned by any endpoint. See Validation, Limits & Character Handling.
Quick example
curl -X POST "https://api-uat.dental4web.com.au/api/v1/clinical-notes" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"patient_id": 25407, "note": "Patient reports sensitivity on upper left."}' Header Parameters
Body Parameters
The unique identifier for a patient in the database.
The unique identifier for a practitioner.
The unique identifier for a practice location.
Clinical note. Maximum 20000 characters.
Response
Response Attributes
Show child attributes
Show child attributes
Response Attributes
Response Attributes
Response Attributes
Response Attributes
POST
/
1