SmileCloudDocs

Treatments

Treatments are the procedures performed or recorded for a patient, with the treatment definition, provider, appointment, and plan embedded. All endpoints require the treatments:read scope.

#The treatment object

FieldTypeDescription
idstringUnique treatment record id.
patientobject | nullEmbedded patient summary.
treatmentobject | nullThe treatment definition (id, name, code).
providerobject | nullProvider who performed it (id, name).
appointmentobject | nullLinked appointment (id, start, end).
planobject | nullTreatment plan it belongs to (id, name).
quantityintegerNumber of units.
pricenumber | nullRecorded price.
performed_atstring | nullISO 8601 time performed.
created_atstring | nullISO 8601 timestamp.
updated_atstring | nullISO 8601 timestamp.

#List a patient's treatments

GET

Returns a paginated list of treatments for the patient.

ParameterInDescription
idpathThe patient id.
appointment_idqueryOnly treatments for one appointment.
limit, cursorqueryPagination.
bash
curl https://api.smile-app.co.il/v1/patients/8842/treatments \
  -H "Authorization: Bearer sk_live_..."
json
{
  "data": [
    {
      "id": "9001",
      "patient": { "id": "8842", "first_name": "Dana", "last_name": "Levi" },
      "treatment": { "id": "44", "name": "Composite filling", "code": "D2391" },
      "provider": { "id": "12", "name": "Dr. Cohen" },
      "appointment": { "id": "55021", "start": "2026-07-01T09:00:00+03:00", "end": "2026-07-01T09:30:00+03:00" },
      "plan": { "id": "70", "name": "Restorative 2026" },
      "quantity": 1,
      "price": 480.0,
      "performed_at": "2026-07-01T09:20:00+03:00"
    }
  ],
  "next_cursor": null
}

#Retrieve a treatment

GET

bash
curl https://api.smile-app.co.il/v1/treatments/9001 \
  -H "Authorization: Bearer sk_live_..."

#Catalog vs. recorded treatments

Two related things named "treatment"

The catalog treatment (/v1/catalog/treatments) is the menu of procedures a clinic offers - name, code, default price. A recorded treatment (here) is one actually performed for a patient, referencing a catalog treatment via its embedded treatment object.