POST Append Treatment Note
Appends text to the clinical note of an existing completed treatment, as a clinician would in the practice management system, instead of creating a new note item. Requires an Idempotency-Key header: send a new unique key for each new note and reuse it only to retry that same request.
Use cases
- Add a follow-up comment to the note of a treatment that has already been completed.
- Record an update from a clinical app against the treatment it relates to, without creating a separate note item.
- Retry a note after a timeout without adding the text twice.
Request headers
| string | Required. A unique value you create for each new note: 8 to 128 characters using letters, digits, underscore, full stop or hyphen (a UUID works well). Reuse it only to retry the same request. See Idempotency below. |
Path parameters
| integer | Required. The completed treatment whose note the text is added to. 1 to 999,999,999. Get it from GET Treatments. |
Request body
| integer | Required. The patient who owns the treatment. 1 to 999,999,999. A treatment that belongs to a different patient is reported as not found. |
| string | Required. The text to add. Submit plain text. Line breaks at the start of the text, and spaces, tabs and line breaks at the end, are removed; spaces and tabs at the start are kept. The practice system adds a 30-character author stamp in front of your text, and the stamp counts toward the limit. Each line break counts as two characters. The whole note, after the append, can be at most 20,000 characters, so the text you send can be at most 19,970 characters when the note is empty. |
Returns
A 200 response returns the clinical note record of the treatment, with the same 13 fields as GET Clinical Notes. notes holds the whole note after the append, and treatment_id identifies the treatment that was changed.
{
"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.\r\n<27/05/2026 22:31 Dental API> Review in two weeks.",
"practitioner_id": 315,
"location_id": 4,
"created_date": "2026-05-27T22:31:18.689000",
"updated_date": "2026-10-27T09:12:44.120000"
}
]
}
Idempotency
An append is not safe to repeat: sending it twice adds the text twice to a clinical record. For this reason the Idempotency-Key header is required. A request without it is rejected and nothing is changed.
- Key format: 8 to 128 characters using letters, digits, underscore, full stop and hyphen. A UUID is a good choice. Create a new random key for each new note and reuse it only to retry the same request. Keys are shared by every application connected to the same practice, so never use predictable values. A missing key returns
400withsupport_codeRP-4000and the messageThe Idempotency-Key header is required for this request.A badly formed key returns400withRP-4000. - Replay after success: For 24 hours, the same key with the same request returns the original response again (same status and the same values). The replay returns the note as it was at the first call, not its current text. The replay uses the same date-time format as the first response. The order of fields in the JSON body does not matter.
- Saved, but the details could not be read back: In rare cases the text is saved but the API cannot read the note back to build the full response. You then receive
200with no error code, a message saying the note was saved but its details could not be retrieved, anddataholding onlynote_idandtreatment_id. Do not append the text again: read the patient’s clinical notes with GET Clinical Notes to get the note. The same response is returned if you retry with the same key within 24 hours. - Different request: The same key with a different request returns
422withsupport_codeRP-4221. A key belongs to the first request sent with it. - First request still running: Returns
409withsupport_codeRP-4091. Wait a few seconds and retry with the same key. - Request rejected: If the request is rejected with a definite error (for example a validation failure, or
404for a treatment that is not found), nothing was added and the key is released. Correct the request and retry with the same key. Validation runs before the key is checked, so a request rejected there does not use the key. - Unknown outcome: If a request times out or the connection is lost after the request reached the practice database, the outcome is unknown. The key is then held for 15 minutes for cloud-hosted practices, or about 75 minutes for practices connected through Halo Connect. The response carries
idempotency_outcomeset tounknown,idempotency_retry_blocked_until(UTC) andretry_after_seconds; a409,503or504also carries aRetry-Afterheader. Treat a504or a500TN-6098as an unknown outcome even if these fields are missing. A retry with the same key during the hold returns409withRP-4091and the same fields. Do not append the text with a new key during the hold. Afteridempotency_retry_blocked_until, read the patient’s notes with GET Clinical Notes and look for the text before appending again. - Key store unavailable: Returns
503withsupport_codeRP-5032,retry_after_seconds5 andRetry-After: 5. Nothing was added. Retry with the same key.
Error responses
See Validation, Limits & Character Handling for the full support code catalogue.
400 |
| The |
400 |
|
|
400 |
|
|
400 |
|
|
400 |
|
|
400 |
|
|
400 |
|
|
400 |
| The note has a line that looks like an author stamp ( |
400 |
| The practice database has not had the October 2026 data model V19 update. The message names the version the endpoint needs and the version the practice is on. Retrying does not help; the practice needs an upgrade. |
401 | None | The API key is valid but is not linked to an integration account. |
403 | None | Missing or invalid |
403 |
| The integration account does not have clinical write access. Contact Centaur Software. |
403 |
| Access denied. |
404 |
| The |
404 |
| The treatment was not found for this patient, or it belongs to another patient. |
409 |
| The first request with this |
409 |
| Another user is changing the treatment or its note. Nothing was added. Retry with the same key after a short delay. |
409 |
| The treatment or its note changed while the text was being saved. Retry with the same key. |
409 |
| The treatment has been deleted and cannot be changed. |
409 |
| The note for the treatment has been deleted and cannot be changed. |
422 | None | Required field missing, wrong type, or |
422 |
| The |
422 |
| The treatment is a lab work item and cannot have notes appended. |
422 |
| The treatment is a planned item, not a completed treatment. |
422 |
| Nothing is left of |
422 |
| The text you sent, with the author stamp added, is longer than 20,000 characters. |
422 |
| The note would be longer than 20,000 characters after the append. The message gives the current length. |
429 |
| A rate limit was exceeded. Wait for the number of seconds in the |
500 |
| The outcome could not be confirmed. The text may or may not have been added. The response carries the hold fields described under Idempotency. Read the patient's notes before appending again. |
500 |
| Database error. Nothing was added. |
502 |
| The practice database service could not be reached. Retry with the same key. |
503 |
| The notes of the treatment could not be locked. Retry with the same key. |
503 |
| Appending to treatment notes is temporarily unavailable. No note was added. |
503 |
| Duplicate protection is temporarily unavailable. Nothing was added. Retry with the same key. |
503 |
| The service or the practice is temporarily unavailable. When a |
504 |
| The API timed out waiting for the practice database. The text may already have been added. The response carries the hold fields described under Idempotency. |
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. - Data model: requires the October 2026 data model V19 update. A practice that has not had it receives
400withsupport_codeMOD-4267. - Access: the integration account needs clinical write access. Without it the request returns
403withsupport_codeTIER-4031. - Append only: the text is added to the end of the existing note on a new line. Existing text is never changed or removed. It works on completed treatments, including invoiced ones.
- Length: the practice system adds a 30-character author stamp (the date, the time and
Dental APIin angle brackets, then a space) in front of your text, and the stamp counts toward the limit. The whole note, after the append, can be at most 20,000 characters, so the text you send can be at most 19,970 characters when the note is empty. A note that would be longer is rejected and nothing is added; it is never cut short. - Author stamp: each entry you append is stored and returned with that stamp in front of it. When you look for your text after a timeout, search for part of the text you sent, not the whole note. Do not send a line that itself starts with a stamp (for example text copied back from GET Clinical Notes): it is rejected with
TN-6027. - Character conversion: accented letters and typographic punctuation are converted to plain equivalents before the note is saved (for example
ébecomese), so the saved text can differ from the text you sent. Characters with no plain equivalent, such as emoji, are rejected. - Not for new notes: to create a new clinical note item, use POST Clinical Notes.
- Never resend after a timeout: if a request returns
504,500withTN-6098, or the connection drops, the text may already have been added. Resend only with the sameIdempotency-Key, or read the patient’s notes first. - FHIR: do not send a
fhirquery parameter. Write endpoints reject it with400.
Quick example
curl -X POST "https://api-uat.dental4web.com.au/api/v1/treatments/1043040/notes" \
-H "x-api-key: $API_KEY" \
-H "org-id: $ORG_ID" \
-H "Idempotency-Key: 9b2f6c1e-4d7a-4e3b-8a15-2c6f0d8e7a41" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"patient_id": 25407, "note": "Review in two weeks."}' Header Parameters
(Required)
(Required) A unique value for each new note, 8 to 128 characters. Reuse it only to retry the same request.
Path Parameters
The completed treatment whose note the text is added to. 1 to 999,999,999.
Body Parameters
The patient who owns the treatment.
The text to append. The practice system adds a 30-character author stamp in front of it, which counts toward the limit. The whole note can be at most 20,000 characters after the append.
Response
{ "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.\r\nReview in two weeks.", "practitioner_id": 315, "location_id": 4, "created_date": "2026-05-27T22:31:18.689000", "updated_date": "2026-10-27T09:12:44.120000" } ] }
{ "data": [], "status": false, "message": "The Idempotency-Key header is required for this request.", "support_code": "RP-4000" }
{ "data": [], "status": false, "message": "Idempotency-Key reservation in progress; retry in a few seconds.", "support_code": "RP-4091" }
{ "data": [], "status": false, "message": "'note': field required" }
POST
/
1