Commands › Movement
bot_location
Where the bot is
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "bot_location",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
None besides authentication.
Returns
| Field | Type | Description |
|---|---|---|
region | string | Region name. |
x, y, z | number | Position within the region. |
Example response
{
"result": "OK",
"region": "Sandbox Island",
"x": 128.4,
"y": 127.9,
"z": 25
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.