Documentation / Full bot API

Developers

Full bot API

Last updated Nov 14, 2026

Use the per-bot key from Bots → API. The numeric id is in the browser URL. Group actions need the group linked on Groups (Start the bot, then Sync).

In curl, replace YOUR_BOT_ID with the number from the bot API page. In LSL set BOT_ID to that same number.

GET /bots/{id}/status

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/status ^
  -H "X-Api-Key: fb_YOUR_KEY"
Example response
{
  "id": 42,
  "desired_state": "online",
  "runtime_status": "online",
  "current_region": "My Region",
  "hard_fail": false,
  "last_error": null
}
LSL (drop in a prim)
// Owner touch -> GET /bots/{id}/status
string  API_BASE = "https://fluxbots.net/api/v1";
string  API_KEY  = "fb_PASTE_KEY_HERE";
integer BOT_ID   = 42;

key gHttp;

default
{
    state_entry()
    {
        llSetText("Owner touch: bot status", <0.8, 0.8, 0.8>, 1.0);
    }

    touch_start(integer n)
    {
        if (llDetectedKey(0) != llGetOwner())
        {
            llInstantMessage(llDetectedKey(0), "Owner only.");
            return;
        }
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/status";
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "GET",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], "");
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("Status (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/invite

Need group_uuid (or numeric bot_group_id) plus avatar_uuid or avatar_name. Optional role_uuid. 422 if the group is not linked: sync Groups first. 30 invites/hour.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/invite ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"group_uuid\":\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\"avatar_uuid\":\"11111111-2222-3333-4444-555555555555\",\"avatar_name\":\"Jane Resident\"}"
LSL (drop in a prim)
// Touch -> invite toucher with your Full bot
string  API_BASE   = "https://fluxbots.net/api/v1";
string  API_KEY    = "fb_PASTE_KEY_HERE";
integer BOT_ID     = 42;
string  GROUP_UUID = "00000000-0000-0000-0000-000000000000";

key gHttp;

default
{
    state_entry()
    {
        llSetText("Touch to invite", <0.2, 0.95, 0.75>, 1.0);
    }

    touch_start(integer n)
    {
        key who = llDetectedKey(0);
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/invite";
        string body = llList2Json(JSON_OBJECT, [
            "group_uuid", GROUP_UUID,
            "avatar_uuid", (string)who,
            "avatar_name", llDetectedName(0)
        ]);
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], body);
        llInstantMessage(who, "Sending group invite...");
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        if (status >= 200 && status < 300) llOwnerSay("Invite OK: " + body);
        else llOwnerSay("Invite failed (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/eject

group_uuid (or bot_group_id) and avatar_uuid. Keep owner-only.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/eject ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"group_uuid\":\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\"avatar_uuid\":\"11111111-2222-3333-4444-555555555555\"}"
LSL (drop in a prim)
// Owner touch -> eject the toucher (put this on a staff HUD, or change the target)
string  API_BASE   = "https://fluxbots.net/api/v1";
string  API_KEY    = "fb_PASTE_KEY_HERE";
integer BOT_ID     = 42;
string  GROUP_UUID = "00000000-0000-0000-0000-000000000000";

key gHttp;

default
{
    touch_start(integer n)
    {
        if (llDetectedKey(0) != llGetOwner())
        {
            llInstantMessage(llDetectedKey(0), "Owner only.");
            return;
        }
        key who = llDetectedKey(0);
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/eject";
        string body = llList2Json(JSON_OBJECT, [
            "group_uuid", GROUP_UUID,
            "avatar_uuid", (string)who
        ]);
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], body);
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("Eject (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/notice

group_uuid or bot_group_id, plus subject and body.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/notice ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"group_uuid\":\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\"subject\":\"Staff\",\"body\":\"Meeting in 10.\"}"
LSL (drop in a prim)
// Owner touch -> group notice from your Full bot
string  API_BASE   = "https://fluxbots.net/api/v1";
string  API_KEY    = "fb_PASTE_KEY_HERE";
integer BOT_ID     = 42;
string  GROUP_UUID = "00000000-0000-0000-0000-000000000000";
string  SUBJECT    = "Staff";
string  BODY       = "Meeting in 10.";

key gHttp;

default
{
    touch_start(integer n)
    {
        if (llDetectedKey(0) != llGetOwner())
        {
            llInstantMessage(llDetectedKey(0), "Owner only.");
            return;
        }
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/notice";
        string body = llList2Json(JSON_OBJECT, [
            "group_uuid", GROUP_UUID,
            "subject", SUBJECT,
            "body", BODY
        ]);
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], body);
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("Notice (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/say

Local chat from the avatar. message max 1023. chat_type is normal (default), whisper, or shout.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/say ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"message\":\"Welcome in. Dance floor is open.\",\"chat_type\":\"normal\"}"
LSL (drop in a prim)
// Touch -> bot local chat
string  API_BASE  = "https://fluxbots.net/api/v1";
string  API_KEY   = "fb_PASTE_KEY_HERE";
integer BOT_ID    = 42;
string  MESSAGE   = "Welcome in. Dance floor is open.";
string  CHAT_TYPE = "normal"; // normal | whisper | shout

key gHttp;

default
{
    state_entry()
    {
        llSetText("Touch: bot says", <0.9, 0.85, 0.3>, 1.0);
    }

    touch_start(integer n)
    {
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/say";
        string body = llList2Json(JSON_OBJECT, [
            "message", MESSAGE,
            "chat_type", CHAT_TYPE
        ]);
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], body);
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("Say (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/im

avatar_uuid and message (max 1023).

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/im ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"avatar_uuid\":\"11111111-2222-3333-4444-555555555555\",\"message\":\"Thanks for stopping by.\"}"
LSL (drop in a prim)
// Touch -> bot IMs the toucher
string  API_BASE = "https://fluxbots.net/api/v1";
string  API_KEY  = "fb_PASTE_KEY_HERE";
integer BOT_ID   = 42;
string  MESSAGE  = "Thanks for stopping by.";

key gHttp;

default
{
    state_entry()
    {
        llSetText("Touch: bot IM", <0.4, 0.7, 1.0>, 1.0);
    }

    touch_start(integer n)
    {
        key who = llDetectedKey(0);
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/im";
        string body = llList2Json(JSON_OBJECT, [
            "avatar_uuid", (string)who,
            "message", MESSAGE
        ]);
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], body);
        llInstantMessage(who, "Bot will IM you shortly.");
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("IM (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/pay

Pays L$ from the bot's balance. amount min 1, max the bot pay cap (default 10000). Send avatar_uuid or avatar_name. Optional reason (max 120). Anyone with the API key can spend the bot's L$.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/pay ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"avatar_uuid\":\"11111111-2222-3333-4444-555555555555\",\"amount\":100,\"reason\":\"Prize\"}"
LSL (drop in a prim)
// Owner touch -> bot pays L$ to the toucher (OWNER_ONLY)
string  API_BASE   = "https://fluxbots.net/api/v1";
string  API_KEY    = "fb_PASTE_KEY_HERE";
integer BOT_ID     = 42;
integer AMOUNT     = 100;
string  REASON     = "Prize";
integer OWNER_ONLY = TRUE;

key gHttp;

default
{
    state_entry()
    {
        llSetText("Touch: bot pays L$" + (string)AMOUNT, <0.4, 0.9, 0.6>, 1.0);
    }

    touch_start(integer n)
    {
        key who = llDetectedKey(0);
        if (OWNER_ONLY && who != llGetOwner())
        {
            llInstantMessage(who, "Owner only.");
            return;
        }
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/pay";
        string body = llList2Json(JSON_OBJECT, [
            "avatar_uuid", (string)who,
            "amount", (string)AMOUNT,
            "reason", REASON
        ]);
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], body);
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("Pay (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/set-home

Queues Linden Set Home at the bot's current position (same as World, Set Home to Here). The bot must be online and standing where you want home. Then use login start SL home on Setup. IM !home teleports there.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/set-home ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -X POST
Example response
{
  "ok": true,
  "job_id": 1842
}
LSL (drop in a prim)
// Owner touch -> POST /bots/{id}/set-home
string  API_BASE = "https://fluxbots.net/api/v1";
string  API_KEY  = "fb_PASTE_KEY_HERE";
integer BOT_ID   = 42;

key gHttp;

default
{
    touch_start(integer n)
    {
        if (llDetectedKey(0) != llGetOwner()) return;
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/set-home";
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], "{}");
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("Set home (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/set-stand

Retired (410). Use POST /bots/{id}/set-home or Set Home Here on the panel.

POST /bots/{id}/group-chat

group_uuid and message (max 1023). The avatar must already be in that group.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/group-chat ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"group_uuid\":\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",\"message\":\"DJ in five.\"}"
LSL (drop in a prim)
// Owner says on channel 7 -> Full bot group chat
string  API_BASE   = "https://fluxbots.net/api/v1";
string  API_KEY    = "fb_PASTE_KEY_HERE";
integer BOT_ID     = 42;
string  GROUP_UUID = "00000000-0000-0000-0000-000000000000";
integer CHAN       = 7;

key gHttp;

default
{
    state_entry()
    {
        llListen(CHAN, "", llGetOwner(), "");
        llOwnerSay("Say /" + (string)CHAN + " your message");
    }

    listen(integer c, string name, key id, string msg)
    {
        if (id != llGetOwner()) return;
        string url = API_BASE + "/bots/" + (string)BOT_ID + "/group-chat";
        string body = llList2Json(JSON_OBJECT, [
            "group_uuid", GROUP_UUID,
            "message", msg
        ]);
        gHttp = llHTTPRequest(url, [
            HTTP_METHOD, "POST",
            HTTP_MIMETYPE, "application/json",
            HTTP_CUSTOM_HEADER, "X-Api-Key", API_KEY
        ], body);
    }

    http_response(key id, integer status, list meta, string body)
    {
        if (id != gHttp) return;
        llOwnerSay("Group chat (" + (string)status + "): " + body);
    }
}

POST /bots/{id}/teleport-home

Queues Linden teleport home for the hosted avatar. Used by the Control HUD. Body must include wearer_uuid (owner or accepted staff SL UUID).

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/teleport-home ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"wearer_uuid\":\"YOUR_SL_UUID\"}"

POST /bots/{id}/sit

Sit on an object. Optional object_uuid; otherwise uses the sit UUID saved on World. Requires wearer_uuid.

POST /bots/{id}/stand

Stand up. Requires wearer_uuid.

POST /bots/{id}/follow

Follow an avatar. Defaults to the wearer. Requires wearer_uuid.

POST /bots/{id}/unfollow

Stop following. Requires wearer_uuid.

GET /jobs/{id}

Poll a job you queued. A 200 on POST only means the job was accepted. Use this to learn pending, claimed, succeeded, failed, or cancelled.

Bot API keys can only read jobs for that bot. Group service keys can only read jobs on shared avatars they own.

curl
curl -s https://fluxbots.net/api/v1/jobs/JOB_ID ^
  -H "X-Api-Key: fb_YOUR_KEY"
Example response
{
  "id": 1842,
  "bot_id": 12,
  "type": "invite",
  "status": "succeeded",
  "result_message": "Invite sent",
  "result_payload": {},
  "created_at": "2026-11-13T20:00:00+00:00",
  "claimed_at": "2026-11-13T20:00:01+00:00",
  "finished_at": "2026-11-13T20:00:02+00:00"
}

POST /bots/{id}/wear

Queue wearing an outfit folder (same as the Outfit page). Body: folder_uuid.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/wear ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"folder_uuid\":\"OUTFIT_FOLDER_UUID\"}"

POST /bots/{id}/give

Queue an inventory offer. Body: avatar_uuid, item_uuid, optional item_name, optional is_folder. Rate-limited more tightly than wear.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/give ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"avatar_uuid\":\"AVATAR_UUID\",\"item_uuid\":\"ITEM_UUID\",\"item_name\":\"Landmark\"}"

Land analytics (panel)

Full bots sample occupancy on the parcel or region: heat maps, sessions, crowd/empty/camper alerts, and CSV export. That history lives on the Land → Analytics tab. The HTTP API below is for live status and parcel/estate actions, not full analytics history.

GET /bots/{id}/land/status

Fresh land sample summary: region, parcel name, estate_manager, and current occupancy counts. Full plan only.

curl
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/land/status ^
  -H "X-Api-Key: fb_YOUR_KEY"

Parcel tools

These affect the parcel the bot is standing on (owner or group land powers). They are not estate kick/ban.

  • POST /bots/{id}/parcel/eject — body: avatar_uuid or avatar_name, optional ban
  • POST /bots/{id}/parcel/freeze — body: identity + optional freeze (default true)
  • POST /bots/{id}/parcel/access — body: identity + action in ban|unban|allow|remove
  • POST /bots/{id}/parcel/update — body: optional name, desc, music_url, set_landing, flags
curl eject
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/parcel/eject ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"avatar_uuid\":\"AVATAR_UUID\",\"ban\":false}"

Estate tools

These need the bot to be an estate manager on the current region. They are not parcel eject/ban. If a fresh land sample (under 2 minutes) says the bot is not estate manager, mutating calls return 409. If the sample is stale, the job is still queued and the grid may reject it.

  • POST /bots/{id}/estate/kick — estate/sim kick
  • POST /bots/{id}/estate/access — action ban|unban|allow|remove, optional all_estates
  • POST /bots/{id}/estate/message — message, optional scope region|estate
  • POST /bots/{id}/estate/restart — optional delay_seconds (30–600)
  • POST /bots/{id}/estate/cancel-restart
  • POST /bots/{id}/estate/send-home — Linden send-home for avatar_uuid (not parcel eject)
curl send-home
curl -s https://fluxbots.net/api/v1/bots/YOUR_BOT_ID/estate/send-home ^
  -H "X-Api-Key: fb_YOUR_KEY" ^
  -H "Content-Type: application/json" ^
  -d "{\"avatar_uuid\":\"AVATAR_UUID\"}"

Poll GET /jobs/{id} after any of these POSTs.