gets the command history for the device
get /api/v1/mdm/devices/{device_id}/commandhistory
https://{server-hostname}:8383/api/v1/mdm/devices/{device_id}/commandhistory
MDMInventory.READCopied!
Authorization: d92d4xxxxxxxxxxxxx15f52
Unique identifier of the device. Obtain from the Get Device List response
Maximum number of records to return in a single response. Used together with offset for pagination
Pagination continuation token returned by a previous response. Pass it to fetch the next page of results
Zero-based index of the first record to return. Used together with limit for pagination
Token used for delta/incremental fetches. Pass the token returned from a previous response to retrieve only items modified since that point
Number of days to look back from the current time when filtering results
Start of the time range to filter by (epoch milliseconds, inclusive)
End of the time range to filter by (epoch milliseconds, inclusive)
curl --request GET \
--url 'https://appdomain/api/v1/mdm/devices/{device_id}/commandhistory?limit=SOME_INTEGER_VALUE&skip-token=SOME_STRING_VALUE&offset=SOME_INTEGER_VALUE&delta-token=SOME_STRING_VALUE&days=SOME_INTEGER_VALUE&start_time=SOME_STRING_VALUE&end_time=SOME_STRING_VALUE' \
--header 'Accept: application/json' \
--header 'Authorization: d92d4xxxxxxxxxxxxx15f52'Metadata about the result set
Total number of command history records
Pagination links for navigating results
URL to the next page of results
URL to the previous page of results
Delta token for incremental queries
Array of commands sent to the device
Overall command status: 0 - failed, 1 - Initiated, 2 - Success, 4 - In progress, -1 - not applicable
Management status of the device
Unique command identifier
Name of the command (e.g., AssetScan)
Timestamp when the command was added
Device identifier
User ID who initiated the command
Unique command history record identifier
Username who initiated the command
Array of status updates showing the lifecycle of the command
Timestamp of the status update in milliseconds
Description of the command status at this point
Command identifier
Status code: 0 - failed, 1 - Initiated, 2 - Success, 4 - In progress, -1 - not applicable
User ID who initiated the command
Name of the command
Username who initiated the command
Remarks for this status update
Remark arguments (may be null)
Remarks about the command
Paginated command history with lifecycle details
{
"metadata": {
"total_record_count": 4
},
"delta-token": "aHR0cDovL2xvY2FsaG9zdDo5MDIwL2FwaS92MS9tZG0vcHJvZmlsZXMvc2NlcHNldHRpbmdzOjoxNTQyOTU0OTEzOTI0",
"paging": {
"next": "https://appDomain/api/v1/mdm/devices/9007199254741001/commandhistory?skip-token=MjozOjE6MTU0Mjk1NDkxMzkxOA%3D%3D",
"previous": "https://appDomain/api/v1/mdm/devices/9007199254741001/commandhistory?skip-token=Aexzsjk6nkL1psqmWdKigzGxOA%3D%3D"
},
"commands": [
{
"command_status": 2,
"managed_status": 2,
"command_id": 9007199254741304,
"added_time": "1523370360750",
"device_id": "9007199254741001",
"added_by": 9007199254740996,
"command_history_id": 9007199254740996,
"command_life": [
{
"updated_time": 1560141503246,
"status_description": "Command Success",
"command_id": 9007199254741304,
"status_code": 2,
"added_by": 9007199254740996,
"command_name": "AssetScan",
"added_by_name": "admin",
"remarks": "--"
}
],
"remarks_args": null,
"command_name": "AssetScan",
"added_by_name": "admin",
"remarks": "--"
}
]
}
![]()
Duration: 1 minute | Threshold: 250 | 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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.