Commands › Movement
walkto
Walks straight to the point with no obstacle avoidance. Use automove to path around obstacles.
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "walkto",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"coords": "128/128/25",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
coordsstring | no | Region coordinates as "x/y/z". Required unless x, y and z are all sent. |
xnumber | no | X coordinate (send with y and z instead of coords). |
ynumber | no | Y coordinate. |
znumber | no | Z coordinate. |
Example response
{
"success": true,
"result": "OK",
"resulttext": "Walking to 128, 128, 25"
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Answers immediately. The webhook events autopilot_completed (arrived) or autopilot_stuck (no progress for 10s) report the outcome.
- Coordinates are rounded down to whole metres and the height is ignored.
- Only "x/y/z" works for coords — commas are rejected.