curl --request POST \
--url https://api.maxcare.ai/v4/sync-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"resourceType": "claim",
"resourceId": "clm_a1b2c3d456784abc9def0123456789ab"
}
'import requests
url = "https://api.maxcare.ai/v4/sync-requests"
payload = {
"resourceType": "claim",
"resourceId": "clm_a1b2c3d456784abc9def0123456789ab"
}
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({resourceType: 'claim', resourceId: 'clm_a1b2c3d456784abc9def0123456789ab'})
};
fetch('https://api.maxcare.ai/v4/sync-requests', 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/sync-requests",
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([
'resourceType' => 'claim',
'resourceId' => 'clm_a1b2c3d456784abc9def0123456789ab'
]),
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/sync-requests"
payload := strings.NewReader("{\n \"resourceType\": \"claim\",\n \"resourceId\": \"clm_a1b2c3d456784abc9def0123456789ab\"\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/sync-requests")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"resourceType\": \"claim\",\n \"resourceId\": \"clm_a1b2c3d456784abc9def0123456789ab\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v4/sync-requests")
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 \"resourceType\": \"claim\",\n \"resourceId\": \"clm_a1b2c3d456784abc9def0123456789ab\"\n}"
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"id": "srq_c1d2e3f456784abc9def0123456789ab",
"resourceType": "claim",
"resourceId": "clm_a1b2c3d456784abc9def0123456789ab",
"status": "queued",
"errorKind": null,
"resourceUpdatedAt": "2026-08-09T12:00:00.000Z",
"requestedAt": "2026-08-09T12:00:00.000Z",
"completedAt": null
}
}{
"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": "conflict",
"message": "Cannot edit a signed note",
"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"
}{
"code": "unexpected_integration_error",
"message": "EHR sync failed",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}Request a re-sync of a resource with the EHR
Asks for one on-demand re-sync of a single resource (claim, bill, patient, note, appointment) with the source EHR. Asynchronous: returns 202 with the queued request; poll GET /sync-requests/ until ‘completed’ or ‘failed’ (or subscribe to the sync_request.completed webhook), then re-read the resource. Requires the resource’s read scope (e.g. read:claims for a claim). Guardrails: one re-sync per resource per 5 minutes (409; appointments: per connector per 30 minutes, because one appointment re-sync sweeps that connector’s whole schedule window), and 500 API re-syncs per organization per 24h (429).
curl --request POST \
--url https://api.maxcare.ai/v4/sync-requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"resourceType": "claim",
"resourceId": "clm_a1b2c3d456784abc9def0123456789ab"
}
'import requests
url = "https://api.maxcare.ai/v4/sync-requests"
payload = {
"resourceType": "claim",
"resourceId": "clm_a1b2c3d456784abc9def0123456789ab"
}
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({resourceType: 'claim', resourceId: 'clm_a1b2c3d456784abc9def0123456789ab'})
};
fetch('https://api.maxcare.ai/v4/sync-requests', 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/sync-requests",
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([
'resourceType' => 'claim',
'resourceId' => 'clm_a1b2c3d456784abc9def0123456789ab'
]),
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/sync-requests"
payload := strings.NewReader("{\n \"resourceType\": \"claim\",\n \"resourceId\": \"clm_a1b2c3d456784abc9def0123456789ab\"\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/sync-requests")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"resourceType\": \"claim\",\n \"resourceId\": \"clm_a1b2c3d456784abc9def0123456789ab\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maxcare.ai/v4/sync-requests")
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 \"resourceType\": \"claim\",\n \"resourceId\": \"clm_a1b2c3d456784abc9def0123456789ab\"\n}"
response = http.request(request)
puts response.read_body{
"code": "success",
"data": {
"id": "srq_c1d2e3f456784abc9def0123456789ab",
"resourceType": "claim",
"resourceId": "clm_a1b2c3d456784abc9def0123456789ab",
"status": "queued",
"errorKind": null,
"resourceUpdatedAt": "2026-08-09T12:00:00.000Z",
"requestedAt": "2026-08-09T12:00:00.000Z",
"completedAt": null
}
}{
"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": "conflict",
"message": "Cannot edit a signed note",
"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"
}{
"code": "unexpected_integration_error",
"message": "EHR sync failed",
"trace_id": "550e8400-e29b-41d4-a716-446655440000"
}Authorizations
Marketplace API key
Headers
Target clinic organization ID
Body
What kind of resource to re-sync with the EHR
claim, bill, patient, note, appointment "claim"
The resource's id in its prefixed form (clm_/bil_/pat_/nte_/apt_), or a raw UUID
"clm_a1b2c3d456784abc9def0123456789ab"
