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>"
}
'import requests
url = "https://api.usecobalt.com/v1/patient-notes"
payload = {
"note": "<string>",
"subject": "<string>",
"patient_mrn": "<string>",
"location_id": "<string>"
}
headers = {
"client_id": "<api-key>",
"client_secret": "<api-key>",
"access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
client_id: '<api-key>',
client_secret: '<api-key>',
access_token: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
note: '<string>',
subject: '<string>',
patient_mrn: '<string>',
location_id: '<string>'
})
};
fetch('https://api.usecobalt.com/v1/patient-notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usecobalt.com/v1/patient-notes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'note' => '<string>',
'subject' => '<string>',
'patient_mrn' => '<string>',
'location_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access_token: <api-key>",
"client_id: <api-key>",
"client_secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.usecobalt.com/v1/patient-notes"
payload := strings.NewReader("{\n \"note\": \"<string>\",\n \"subject\": \"<string>\",\n \"patient_mrn\": \"<string>\",\n \"location_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("client_id", "<api-key>")
req.Header.Add("client_secret", "<api-key>")
req.Header.Add("access_token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.usecobalt.com/v1/patient-notes")
.header("client_id", "<api-key>")
.header("client_secret", "<api-key>")
.header("access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\",\n \"subject\": \"<string>\",\n \"patient_mrn\": \"<string>\",\n \"location_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usecobalt.com/v1/patient-notes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["client_id"] = '<api-key>'
request["client_secret"] = '<api-key>'
request["access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\",\n \"subject\": \"<string>\",\n \"patient_mrn\": \"<string>\",\n \"location_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"patient_note_id": "<string>",
"job_id": 123
}{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "User not found."
}{
"success": true,
"message": "<string>"
}Patient Notes
Create Patient Note
Creates a free-standing chart note on a patient. Unlike a note tied to an appointment, this writes directly to the patient’s chart.
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>"
}
'import requests
url = "https://api.usecobalt.com/v1/patient-notes"
payload = {
"note": "<string>",
"subject": "<string>",
"patient_mrn": "<string>",
"location_id": "<string>"
}
headers = {
"client_id": "<api-key>",
"client_secret": "<api-key>",
"access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
client_id: '<api-key>',
client_secret: '<api-key>',
access_token: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
note: '<string>',
subject: '<string>',
patient_mrn: '<string>',
location_id: '<string>'
})
};
fetch('https://api.usecobalt.com/v1/patient-notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.usecobalt.com/v1/patient-notes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'note' => '<string>',
'subject' => '<string>',
'patient_mrn' => '<string>',
'location_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access_token: <api-key>",
"client_id: <api-key>",
"client_secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.usecobalt.com/v1/patient-notes"
payload := strings.NewReader("{\n \"note\": \"<string>\",\n \"subject\": \"<string>\",\n \"patient_mrn\": \"<string>\",\n \"location_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("client_id", "<api-key>")
req.Header.Add("client_secret", "<api-key>")
req.Header.Add("access_token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.usecobalt.com/v1/patient-notes")
.header("client_id", "<api-key>")
.header("client_secret", "<api-key>")
.header("access_token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"note\": \"<string>\",\n \"subject\": \"<string>\",\n \"patient_mrn\": \"<string>\",\n \"location_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.usecobalt.com/v1/patient-notes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["client_id"] = '<api-key>'
request["client_secret"] = '<api-key>'
request["access_token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"note\": \"<string>\",\n \"subject\": \"<string>\",\n \"patient_mrn\": \"<string>\",\n \"location_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"patient_note_id": "<string>",
"job_id": 123
}{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "User not found."
}{
"success": true,
"message": "<string>"
}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/locationsfor 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
}
- 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
Body
application/json
⌘I