Commands › Region & estate
region_info
About the bot's region
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "region_info",
"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_x, region_y | string | Global position in metres (divide by 256 for map grid coordinates). |
Example response
{
"result": "OK",
"region_name": "Sandbox Island",
"region_water_height": "20",
"region_x": "256000",
"region_y": "256000",
"region_image": "e1f2a3b4-0000-4000-8000-00000000000e",
"region_handle": 1099511628032000
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.