/api/v1/bot/{botId}/status
Status
Bot status
Returns whether the bot is online, current region, position, and optionally balance.
Parameters
format(query, optional) — Set to text for plain ok / error responses instead of JSON.
Example response
{"online":true,"region":"Example Region","position":"128.0,128.0,25.0","balanceL":5000}
curl
curl -sS -H "Authorization: Bearer obt_example_secret_replace_in_portal" "https://getonebot.com/api/v1/bot/12345/status"
LSL (llHTTPRequest)
llHTTPRequest(
"https://getonebot.com/api/v1/bot/12345/status",
[HTTP_METHOD, "GET", HTTP_CUSTOM_HEADER, "Authorization", "Bearer obt_example_secret_replace_in_portal"],
""
);
C#
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "obt_example_secret_replace_in_portal");
var response = await client.GetAsync("https://getonebot.com/api/v1/bot/12345/status");
var json = await response.Content.ReadAsStringAsync();