curl --request GET \
--url https://api.maxcare.ai/v4/prescriptions \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.maxcare.ai/v4/prescriptions"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.maxcare.ai/v4/prescriptions', 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.maxcare.ai/v4/prescriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Organization-Id: <x-organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maxcare.ai/v4/prescriptions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxcare.ai/v4/prescriptions")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v4/prescriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"prescriptions": [
{
"id": "rxp_5f1c0000000040000000000000000001",
"ehrPrescriptionId": "40000001",
"patientId": "pat_8de0303900004000a000000000000001",
"status": "erx",
"ehrStatusText": "ERX",
"writtenOn": "2026-09-12",
"writtenBy": {
"providerId": "prv_1a2b000000004000a000000000000001",
"ehrStaffId": "222",
"name": "Jane Example, MD"
},
"createdBy": {
"providerId": "prv_1a2b000000004000a000000000000001",
"ehrStaffId": "222",
"name": "Jane Example, MD"
},
"facilityId": "fac_b2c3d4e5f6a74b8c9d0e1f2a3b4c5d6e",
"drug": {
"dispensableId": "900001",
"description": "Examplumab 150 mg/mL subcutaneous syringe",
"drugName": "Examplumab",
"ndc": "00000000001",
"controlledSubstance": false,
"deaSchedule": null
},
"sig": "Inject 1 mL under the skin every 4 weeks",
"quantity": "1",
"quantityQualifier": {
"code": "ML",
"name": "Milliliter"
},
"refills": 11,
"daysSupply": 28,
"substitutionAllowed": true,
"diagnosisCodes": [
"L40.0"
],
"sourcePrescriptionId": null,
"erx": {
"status": "pharmacy_verified",
"ehrStatusText": "Pharmacy received and verified",
"errorMessage": null,
"releasedAt": "2026-09-12T15:04:05.000Z",
"releasedBy": {
"providerId": "prv_1a2b000000004000a000000000000001",
"ehrStaffId": "222",
"name": "Jane Example, MD"
},
"pharmacy": {
"ncpdpId": "0000001",
"name": "Example Clinic Pharmacy"
},
"messageId": "EMA00000000000000000000000000000000",
"remainingRefills": 11
},
"updatedAt": "2026-09-30T12:00:00.000Z",
"syncedAt": "2026-09-30T12:00:00.000Z",
"deletedFromEhrAt": null
}
],
"pagination": {
"page": 1,
"pageSize": 100,
"totalCount": 1,
"totalPages": 1
}
}
}{
"code": "bad_request",
"message": "'id' must be a valid UUID",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "unauthorized",
"message": "Invalid or missing API key",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "forbidden",
"message": "Insufficient scope",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Maximum 1000 requests per 60 seconds.",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}List stored prescriptions (change feed)
The organization’s prescriptions as stored by the platform, across patients, served without calling the EHR. Filter by dispensableId to find everyone with a given drug. Walk changes with updatedSince + cursorId. The stored copy is refreshed in the background: a prescription still moving (pending or in e-prescribing) is re-read about hourly, charts with a recent or upcoming appointment about daily, so it can trail the EHR. GET /prescriptions/{id} reads one live. ModMed only.
curl --request GET \
--url https://api.maxcare.ai/v4/prescriptions \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.maxcare.ai/v4/prescriptions"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.maxcare.ai/v4/prescriptions', 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.maxcare.ai/v4/prescriptions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"X-Organization-Id: <x-organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maxcare.ai/v4/prescriptions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxcare.ai/v4/prescriptions")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v4/prescriptions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"prescriptions": [
{
"id": "rxp_5f1c0000000040000000000000000001",
"ehrPrescriptionId": "40000001",
"patientId": "pat_8de0303900004000a000000000000001",
"status": "erx",
"ehrStatusText": "ERX",
"writtenOn": "2026-09-12",
"writtenBy": {
"providerId": "prv_1a2b000000004000a000000000000001",
"ehrStaffId": "222",
"name": "Jane Example, MD"
},
"createdBy": {
"providerId": "prv_1a2b000000004000a000000000000001",
"ehrStaffId": "222",
"name": "Jane Example, MD"
},
"facilityId": "fac_b2c3d4e5f6a74b8c9d0e1f2a3b4c5d6e",
"drug": {
"dispensableId": "900001",
"description": "Examplumab 150 mg/mL subcutaneous syringe",
"drugName": "Examplumab",
"ndc": "00000000001",
"controlledSubstance": false,
"deaSchedule": null
},
"sig": "Inject 1 mL under the skin every 4 weeks",
"quantity": "1",
"quantityQualifier": {
"code": "ML",
"name": "Milliliter"
},
"refills": 11,
"daysSupply": 28,
"substitutionAllowed": true,
"diagnosisCodes": [
"L40.0"
],
"sourcePrescriptionId": null,
"erx": {
"status": "pharmacy_verified",
"ehrStatusText": "Pharmacy received and verified",
"errorMessage": null,
"releasedAt": "2026-09-12T15:04:05.000Z",
"releasedBy": {
"providerId": "prv_1a2b000000004000a000000000000001",
"ehrStaffId": "222",
"name": "Jane Example, MD"
},
"pharmacy": {
"ncpdpId": "0000001",
"name": "Example Clinic Pharmacy"
},
"messageId": "EMA00000000000000000000000000000000",
"remainingRefills": 11
},
"updatedAt": "2026-09-30T12:00:00.000Z",
"syncedAt": "2026-09-30T12:00:00.000Z",
"deletedFromEhrAt": null
}
],
"pagination": {
"page": 1,
"pageSize": 100,
"totalCount": 1,
"totalPages": 1
}
}
}{
"code": "bad_request",
"message": "'id' must be a valid UUID",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "unauthorized",
"message": "Invalid or missing API key",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "forbidden",
"message": "Insufficient scope",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}{
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Maximum 1000 requests per 60 seconds.",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}Authorizations
Marketplace API key
Headers
Target clinic organization ID
Query Parameters
Only prescriptions whose stored copy changed at/after this instant (ISO 8601 with an explicit UTC offset). When set, results are ordered by updatedAt then id. Pair with cursorId to walk without dropping rows; boundary rows re-deliver, so dedupe on id.
"2026-09-01T00:00:00.000Z"
Only prescriptions whose stored copy changed at/before this instant. Pin it to freeze a walk's window.
"2026-09-30T23:59:59.999Z"
Id of the last prescription you consumed, for a keyset walk: pass it with updatedSince set to that row's updatedAt and always request page 1. pagination.totalCount then counts from the cursor's updatedAt and shrinks as you walk; stop on a short page.
"rxp_5f1c0000000040000000000000000001"
Only this patient's prescriptions (pat_…)
FDB dispensable drug id
"900001"
Comma-separated statuses to include
"pending,erx"
Include prescriptions the EHR no longer lists (they carry deletedFromEhrAt). Defaults to false.
