curl --request GET \
--url https://api.maxcare.ai/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.maxcare.ai/v1/tasks"
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/v1/tasks', 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/v1/tasks",
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/v1/tasks"
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/v1/tasks")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v1/tasks")
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": {
"tasks": [
{
"id": "a1b2c3d4-5678-4abc-9def-0123456789ab",
"status": "not_started",
"syncStatus": "synced",
"notes": "Review missing plan for Impression #3",
"source": "manual",
"ehrType": "modmed",
"assignedProviders": [
{
"id": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"firstName": "James",
"lastName": "Wilson",
"displayFirstName": "Dr. James",
"displayLastName": "Wilson, MD",
"username": "jwilson",
"roles": [
"Physician"
],
"individualNpi": "1234567890",
"canFinalize": true,
"canCosign": false
}
],
"createdAt": "2026-03-20 18:35:10.209452+00",
"ehrCreatedAt": "2026-01-04 09:12:44.000000+00",
"updatedAt": "2026-03-23 03:15:47.285+00",
"noteId": "3cc73cb6-9c59-403c-a910-8af6c5693b25"
}
],
"pagination": {
"page": 1,
"pageSize": 100,
"totalCount": 250,
"totalPages": 3
}
}
}{
"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 tasks
Returns a paginated list of tasks. Filter by source, status, note, patient, provider, or date range. Each task carries a source: ‘ai_check’ and ‘manual’ are MaxCare-created; ‘ehr’ means the task was raised inside the connected EHR and mirrored here, and is read-only (PATCH returns 400). An EHR practice’s first inbound sweep can publish thousands of ‘ehr’ tasks at once, and they sort to the head of the default createdAt DESC order — pin ?source=ai_check,manual if you page a fixed depth and prune what you did not see.
curl --request GET \
--url https://api.maxcare.ai/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.maxcare.ai/v1/tasks"
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/v1/tasks', 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/v1/tasks",
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/v1/tasks"
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/v1/tasks")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v1/tasks")
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": {
"tasks": [
{
"id": "a1b2c3d4-5678-4abc-9def-0123456789ab",
"status": "not_started",
"syncStatus": "synced",
"notes": "Review missing plan for Impression #3",
"source": "manual",
"ehrType": "modmed",
"assignedProviders": [
{
"id": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
"firstName": "James",
"lastName": "Wilson",
"displayFirstName": "Dr. James",
"displayLastName": "Wilson, MD",
"username": "jwilson",
"roles": [
"Physician"
],
"individualNpi": "1234567890",
"canFinalize": true,
"canCosign": false
}
],
"createdAt": "2026-03-20 18:35:10.209452+00",
"ehrCreatedAt": "2026-01-04 09:12:44.000000+00",
"updatedAt": "2026-03-23 03:15:47.285+00",
"noteId": "3cc73cb6-9c59-403c-a910-8af6c5693b25"
}
],
"pagination": {
"page": 1,
"pageSize": 100,
"totalCount": 250,
"totalPages": 3
}
}
}{
"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
Filter by who raised the task (comma-separated). Values: ai_check, manual, ehr. Omit to receive all of them. ehr tasks are mirrored from the connected EHR by an inbound sweep, so a practice's first sweep can publish thousands at once, and they carry the MIRROR time in createdAt (see ehrCreatedAt for the EHR's own) — which puts them at the head of the default createdAt DESC page. If you page a fixed number of pages and prune local rows you did not see, pin this to ai_check,manual rather than letting a sweep push your own tasks off the end. Supplying the parameter with NO values — ?source= or ?source=, — is a 400, not an empty filter.
"ai_check,manual"
Filter by task status (comma-separated)
"not_started,in_progress"
Filter by note ID (UUID)
"3cc73cb6-9c59-403c-a910-8af6c5693b25"
Filter by assigned provider ID (UUID)
"d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a"
Filter by patient ID (UUID). Matches tasks anchored to one of that patient's VISITS, and tasks anchored to the patient directly — the anchor ehr tasks usually carry. NOT exhaustive: a task anchored to a bill, claim or appointment also belongs to a patient and is NOT returned here, while it does appear in the unfiltered list. So this filter narrows, it does not enumerate a patient's tasks.
"8de03039-3a9e-417a-b2b3-a8b8df183631"
Filter tasks created on or after this date (ISO 8601)
"2025-01-01"
Filter tasks created on or before this date (ISO 8601)
"2025-12-31"
Sort field
createdAt, updatedAt, status "createdAt"
Sort direction
asc, desc "desc"
