Create a task
curl --request POST \
--url https://api.maxcare.ai/v4/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"noteId": "nte_3cc73cb69c59403ca9108af6c5693b25",
"providerId": "prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a",
"notes": "Review missing plan for Impression #3: Irritant Contact Dermatitis",
"assigneeIds": [
"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a"
]
}
'import requests
url = "https://api.maxcare.ai/v4/tasks"
payload = {
"noteId": "nte_3cc73cb69c59403ca9108af6c5693b25",
"providerId": "prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a",
"notes": "Review missing plan for Impression #3: Irritant Contact Dermatitis",
"assigneeIds": ["prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a"]
}
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Organization-Id': '<x-organization-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
noteId: 'nte_3cc73cb69c59403ca9108af6c5693b25',
providerId: 'prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a',
notes: 'Review missing plan for Impression #3: Irritant Contact Dermatitis',
assigneeIds: ['prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a']
})
};
fetch('https://api.maxcare.ai/v4/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/v4/tasks",
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([
'noteId' => 'nte_3cc73cb69c59403ca9108af6c5693b25',
'providerId' => 'prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a',
'notes' => 'Review missing plan for Impression #3: Irritant Contact Dermatitis',
'assigneeIds' => [
'prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxcare.ai/v4/tasks"
payload := strings.NewReader("{\n \"noteId\": \"nte_3cc73cb69c59403ca9108af6c5693b25\",\n \"providerId\": \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\",\n \"notes\": \"Review missing plan for Impression #3: Irritant Contact Dermatitis\",\n \"assigneeIds\": [\n \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.maxcare.ai/v4/tasks")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"noteId\": \"nte_3cc73cb69c59403ca9108af6c5693b25\",\n \"providerId\": \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\",\n \"notes\": \"Review missing plan for Impression #3: Irritant Contact Dermatitis\",\n \"assigneeIds\": [\n \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v4/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"noteId\": \"nte_3cc73cb69c59403ca9108af6c5693b25\",\n \"providerId\": \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\",\n \"notes\": \"Review missing plan for Impression #3: Irritant Contact Dermatitis\",\n \"assigneeIds\": [\n \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"id": "tsk_a1b2c3d456784abc9def0123456789ab",
"status": "not_started",
"syncStatus": "synced",
"notes": "Review missing plan for Impression #3",
"source": "manual",
"ehrType": "modmed",
"assignedProviders": [
{
"id": "prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a",
"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": "nte_3cc73cb69c59403ca9108af6c5693b25"
}
}{
"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": "not_found",
"message": "Resource not found",
"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"
}Tasks
Create a task
Creates a new task and pushes it to the EHR synchronously. Returns the task with syncStatus ‘synced’ on success, or 502 if the EHR push fails. Requires a providerId to authenticate with the EHR.
POST
/
tasks
Create a task
curl --request POST \
--url https://api.maxcare.ai/v4/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"noteId": "nte_3cc73cb69c59403ca9108af6c5693b25",
"providerId": "prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a",
"notes": "Review missing plan for Impression #3: Irritant Contact Dermatitis",
"assigneeIds": [
"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a"
]
}
'import requests
url = "https://api.maxcare.ai/v4/tasks"
payload = {
"noteId": "nte_3cc73cb69c59403ca9108af6c5693b25",
"providerId": "prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a",
"notes": "Review missing plan for Impression #3: Irritant Contact Dermatitis",
"assigneeIds": ["prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a"]
}
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Organization-Id': '<x-organization-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
noteId: 'nte_3cc73cb69c59403ca9108af6c5693b25',
providerId: 'prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a',
notes: 'Review missing plan for Impression #3: Irritant Contact Dermatitis',
assigneeIds: ['prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a']
})
};
fetch('https://api.maxcare.ai/v4/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/v4/tasks",
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([
'noteId' => 'nte_3cc73cb69c59403ca9108af6c5693b25',
'providerId' => 'prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a',
'notes' => 'Review missing plan for Impression #3: Irritant Contact Dermatitis',
'assigneeIds' => [
'prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxcare.ai/v4/tasks"
payload := strings.NewReader("{\n \"noteId\": \"nte_3cc73cb69c59403ca9108af6c5693b25\",\n \"providerId\": \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\",\n \"notes\": \"Review missing plan for Impression #3: Irritant Contact Dermatitis\",\n \"assigneeIds\": [\n \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
req.Header.Add("Authorization", "Bearer <token>")
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.maxcare.ai/v4/tasks")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"noteId\": \"nte_3cc73cb69c59403ca9108af6c5693b25\",\n \"providerId\": \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\",\n \"notes\": \"Review missing plan for Impression #3: Irritant Contact Dermatitis\",\n \"assigneeIds\": [\n \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v4/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"noteId\": \"nte_3cc73cb69c59403ca9108af6c5693b25\",\n \"providerId\": \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\",\n \"notes\": \"Review missing plan for Impression #3: Irritant Contact Dermatitis\",\n \"assigneeIds\": [\n \"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"id": "tsk_a1b2c3d456784abc9def0123456789ab",
"status": "not_started",
"syncStatus": "synced",
"notes": "Review missing plan for Impression #3",
"source": "manual",
"ehrType": "modmed",
"assignedProviders": [
{
"id": "prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a",
"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": "nte_3cc73cb69c59403ca9108af6c5693b25"
}
}{
"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": "not_found",
"message": "Resource not found",
"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
Body
application/json
Note ID to attach the task to
Example:
"nte_3cc73cb69c59403ca9108af6c5693b25"
Provider ID of the user creating/owning the task
Example:
"prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a"
Task description / notes
Example:
"Review missing plan for Impression #3: Irritant Contact Dermatitis"
Array of provider IDs to assign the task to (at least one required)
Example:
["prv_d4e5f6a7b8c94d0e1f2a3b4c5d6e7f8a"]
