Api reference
Get resource-level sync states
Return the cursor and last-sync timestamp for every resource type the integration tracks (patients / customers, invoices, products, payments, etc.). Used by the sync dashboard to surface which resource classes are up to date and which are lagging.
Related endpoints
POST /integrations/{provider}/activate— Activate integrationPOST /integrations/{provider}/deactivate— Deactivate integrationGET /integrations/{provider}— Get integration statusPOST /integrations/{provider}/test— Test integration credentialsPOST /integrations/{provider}/sync— Trigger manual syncGET /integrations— List all integrationsPUT /integrations/{provider}/status— Update integration statusPUT /integrations/{provider}/sync-toggle— Toggle integration sync
Common errors
401 unauthenticated— missing, malformed, or revoked API key.
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Path Parameters
provider*string
Value in
"practicehub" | "wodify" | "terminal"Response Body
application/json
curl "https://api.revkeen.com/v2/integrations/practicehub/sync-states" \ -H "x-api-key: $REVKEEN_API_KEY"{
"success": true,
"data": [
{
"resourceType": "string",
"lastSyncAt": "2019-08-24T14:15:22Z",
"lastSyncStatus": "string",
"itemsProcessed": 0,
"lastSyncError": "string",
"cursor": "string"
}
]
}Empty
Empty