Skip to main content
POST
/
patient-notes
Create Patient Note
curl --request POST \
  --url https://api.usecobalt.com/v1/patient-notes \
  --header 'Content-Type: application/json' \
  --header 'access_token: <api-key>' \
  --header 'client_id: <api-key>' \
  --header 'client_secret: <api-key>' \
  --data '
{
  "note": "<string>",
  "subject": "<string>",
  "patient_mrn": "<string>",
  "location_id": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "patient_note_id": "<string>",
  "job_id": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.usecobalt.com/llms.txt

Use this file to discover all available pages before exploring further.

Request Parameters

  • note (string, required): Chart note body content
  • subject (string, required): Chart note title
  • patient_mrn (string, required): Medical Record Number (MRN) of the patient
  • location_id (string, required): EMR location ID. Must match a location returned by GET /v1/locations for the account.

Example Request

curl -X POST https://api.usecobalt.com/v1/patient-notes \
-H 'Content-Type: application/json' \
-H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \
-H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \
-H 'access_token: 493JKLHIU98789hLKH9HHJH' \
-d '{
    "note": "Patient reports feeling well since last visit. No new concerns to report.",
    "subject": "Wellness check-in",
    "patient_mrn": "MRN-12345",
    "location_id": "9b409d24-aa13-4ce5-a6b2-ea813eeb9530"
}'

Example Response

{
    "success": true,
    "message": "Patient note processing. A webhook event will be sent upon completion.",
    "patient_note_id": "abc123def456789012345678",
    "job_id": 12345
}
The response includes:
  • patient_note_id: Unique identifier for the created patient note record
  • job_id: Job execution identifier for tracking the async operation

Error Responses

Missing Required Field

{
    "success": false,
    "message": "Missing required field: subject"
}

Invalid Location

{
    "success": false,
    "message": "Invalid location_id. Must be one of: ..."
}

Webhook Notifications

When the patient note processing is complete, we will send a webhook to your registered endpoint.

Success

{
    "id": "evt_1J9X2q2eZvKYlo2CluR9g9gV",
    "access_token_reference_id": "user_1J9X2q2eZvKYlo2Cxyz",
    "object": "event",
    "created": "2025-10-09T10:30:00Z",
    "type": "patient_note.created",
    "job_id": "12345",
    "data": {
        "patient_note_id": "abc123def456789012345678",
        "emr_note_id": "10d1c8d3-aa69-472a-a9eb-f5fbd12bf99f",
        "patient_mrn": "MRN-12345",
        "location_id": "9b409d24-aa13-4ce5-a6b2-ea813eeb9530",
        "subject": "Wellness check-in",
        "note": "Patient reports feeling well since last visit. No new concerns to report."
    }
}

Failure

{
    "id": "evt_1J9X2q2eZvKYlo2CluR9g9gW",
    "access_token_reference_id": "user_1J9X2q2eZvKYlo2Cxyz",
    "object": "event",
    "created": "2025-10-09T10:35:00Z",
    "type": "patient_note.failed",
    "job_id": "12345",
    "data": {
        "patient_note_id": "abc123def456789012345678",
        "failure_reason": "Failed to create patient note"
    }
}

Authorizations

client_id
string
header
required
client_secret
string
header
required
access_token
string
header
required

Body

application/json
note
string
required

Chart note body content

subject
string
required

Chart note title

patient_mrn
string
required

Medical Record Number (MRN) of the patient

location_id
string
required

EMR location ID. Must match a location returned by GET /v1/locations for the account.

Response

Patient note queued successfully

success
boolean
message
string
patient_note_id
string

Unique identifier for the created patient note record

job_id
integer

Job execution identifier for tracking the async operation