gets the device's recent command and its status
https://{server-hostname}:8383/api/v1/mdm/devices/{device_id}/actions/recent_command Copied!
Authorization: d92d4xxxxxxxxxxxxx15f52
Unique identifier of the device. Obtain from the Get Device List response
curl --request GET \
--url https://appdomain/api/v1/mdm/devices/{device_id}/actions/recent_command \
--header 'Accept: application/json' \
--header 'Authorization: d92d4xxxxxxxxxxxxx15f52'Description of the last command status
Command status code: 0 - failed, 1 - Initiated, 2 - Success, 4 - In progress
Name of the last initiated command
KB article URL for troubleshooting command failures
Status of the last initiated command
{
"status_description": "Command Success",
"status_code": 2,
"command_name": "AssetScan",
"kb_url": "https://zylker.com/kb"
}
![]()
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.