Skip to main content
POST
Create a draft note

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string

Optional. A unique value you choose for this request, such as a UUID. When sent, a retry with the same key returns the first answer instead of applying the change twice. See Retries and idempotency.

Minimum string length: 1

Path Parameters

clinic_id
string<uuid>
required

Body

application/json
patient_id
string<uuid>
required
clinician_id
string<uuid>
required

clinic_staff.id — the clinician the draft is FOR, never the API caller.

content
object
required

Keyed by generateFieldId(section.title, index) for a template note, or free-form for a blank note. Unknown keys are refused (unknown_field), naming both the offending keys and the full valid list.

note_type
string | null

A static template's exact name, or omitted for a blank note.

custom_template_id
string<uuid> | null

This clinic's own custom template id.

origin_assistant_name
string

When given, origin=assistant_external instead of api.

citations
object[]

Response

OK.

data
object
required