# Retrieve AD sync status for a domain Retrieves the AD synchronization status and last sync details for a specific domain including next sync time, last succeeded sync, and error information. ## Endpoint `GET /dcapi/som/domains/{domain_id}/syncStatus` ## Request URL `https://{server-hostname}:8383/dcapi/som/domains/{domain_id}/syncStatus` ## Scope `SOM.READ` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — Mandatory - `application/domainTreeSyncStatus.v1+json` ### Path Parameters - **domain_id** `string` — Mandatory ## Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/som/domains/{domain_id}/syncStatus \ --header 'Accept: application/domainTreeSyncStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` - `JSON Object` - **isDomainSyncInProgress** `boolean` - Indicates whether an Active Directory synchronization is currently running for this domain - **resourceId** `long` - Unique resource identifier of the domain being synced - **nextSyncTime** `string` - Scheduled date and time for the next automatic synchronization (formatted as `yyyy-MM-dd HH:mm:ss`) - **lastSyncInitiated** `string` - Date and time when the most recent synchronization was initiated (formatted as `yyyy-MM-dd HH:mm:ss`) - **lastSuccessfulSync** `string` - Date and time of the last synchronization that completed without errors (formatted as `yyyy-MM-dd HH:mm:ss`) - **isUpdateSuccess** `boolean` - Indicates whether the most recent synchronization completed successfully without errors - **errorCode** `string` - Error code identifying the synchronization failure. Present only when the last sync failed - **message** `string` - Detailed error description explaining why the synchronization failed. Present only when the last sync failed ## Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 ### No sync running ```json { "resourceId": 1, "nextSyncTime": "2026-04-08 14:00:00", "isUpdateSuccess": true, "isDomainSyncInProgress": false, "lastSyncInitiated": "2026-04-08 08:00:00", "lastSuccessfulSync": "2026-04-08 08:02:30" } ``` ### Sync is running ```json { "resourceId": 1, "nextSyncTime": "2026-04-08 20:00:00", "isDomainSyncInProgress": true, "lastSyncInitiated": "2026-04-08 14:00:00", "lastSuccessfulSync": "2026-04-08 08:02:30" } ``` ## Rate Limit **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.