View sync status
This endpoint returns the live status of every sync the caller can access, one entry per sync, with separate read and write statuses (green or red), the last time data was read from the EHR and the last time the sync picked up write commands. Pass subdomain to scope to one institution and location_ids to narrow further. A location with no sync behind it returns no entry.
Authorization
Authorization In: header
Query Parameters
Used to scope the request to the specified institution
Return only syncs whose read status is green or red
Value in
- "green"
- "red"
Return only syncs whose write status is green or red
Value in
- "green"
- "red"
Return the status of sync services running on the specified locations
Header Parameters
The NexHealth API version
"v3.0.0"Response Body
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
application/vnd.Nexhealth+json;version=2
curl -X GET "https://example.com/sync_status" \ -H "Nex-Api-Version: v3.0.0"{ "code": false, "description": "Description", "error": [ "Error message" ], "data": [ { "institution_id": 1, "sync_source_type": "DataSource", "sync_source_name": "My Source", "emr": { "id": 11, "name": "dentrix", "display_name": "Dentrix", "type": "onprem" }, "read_status": "green", "read_status_at": "2020-06-05T20:16:57.007Z", "write_status": "red", "write_status_at": "2020-06-05T20:16:57.007Z", "locations": [ { "id": 7, "name": "Default", "street_address": "123 Law St", "street_address_2": "85335, North East", "city": "New York", "state": "NY", "zip_code": "54700", "phone_number": "8888750851", "email": "defaultLocation@nexhealth.com", "inactive": false } ] } ], "count": 2}