Enable lost mode on the managed device sends enable lost mode command to device
Request URL https://{serverurl} /api/v1/mdm/devices/{device_id}/actions/enable_lost_mode
Scope
Header Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Request Parameters - Request Headers Content-Type string Mandatory
- Path Parameters - Request Body application/json JSON object
Hide Sub-Attributes phone_number string Optional
Contact phone number displayed on the lost device
lock_message string Optional
Message displayed on the lost device lock screen
lost_mode_title string Optional
Title displayed on the device in lost mode
footnote string Optional
Footnote displayed on the device in lost mode
audit_message string Optional
Audit message for the action
ticket_id string Optional
Associated ticket ID for the action
send_email_to_user boolean Optional
Send email to user when lost mode is enabled
send_email_to_admin boolean Optional
Send email to admin when lost mode is enabled
do_not_notify boolean Optional
Do not notify the user about the action
Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
--url https://appdomain/api/v1/mdm/devices/{device_id}/actions/enable_lost_mode \
--header 'Accept: application/json' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'Content-Type: application/json' \
--data '{}'import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.net.http.HttpTimeoutException;
public class Main {
public static void main(String[] args) {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://appdomain/api/v1/mdm/devices/{device_id}/actions/enable_lost_mode"))
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
.method("POST", HttpRequest.BodyPublishers.ofString("{}"))
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomain")
payload = "{}"
headers = {
'Content-Type': "application/json",
'Accept': "application/json",
'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52"
}
conn.request("POST", "/api/v1/mdm/devices/{device_id}/actions/enable_lost_mode", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
headersMap = Map();
headersMap.put("Content-Type", "application/json");
headersMap.put("Accept", "application/json");
data=Map();
response = invokeUrl
[
url: "https://appDomain/api/v1/mdm/devices/{device_id}/actions/enable_lost_mode"
type: POST
headers: headersMap
body: data
connection: connection_name
]
info response;
$headers=@{}
$headers.Add("Content-Type", "application/json")
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52")
$response = Invoke-WebRequest -Uri 'https://appdomain/api/v1/mdm/devices/{device_id}/actions/enable_lost_mode' -Method POST -Headers $headers -ContentType 'application/json' -Body '{}'Sample Request Body Enable lost mode with contact details
Copied!
{
"send_email_to_user": "true",
"lock_message": "This device has been lost. Please contact the administrator.",
"send_email_to_admin": "true",
"lost_mode_title": "Device Lost",
"do_not_notify": "false",
"phone_number": "+1-555-0****00",
"audit_message": "Device reported lost by user",
"footnote": "Kindly contact administrator",
"ticket_id": "9007199254741090",
"passcode": "1234"
}
▼ Show full
Sample Response: HTTP 202
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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.