Documentation / HTTP API

Developers

HTTP API

Last updated Dec 1, 2026

FluxBots has a public HTTP API for LSL and your own servers. Calls queue a job on the worker. A 200 means the job was accepted, not that Second Life has finished it yet.

Base URL: https://fluxbots.net/api/v1

What do you want to do?

Pick the call, then open the page for fields, curl, and a drop-in LSL script. Opening these URLs in a browser without a key will fail. They are API paths, not web pages.

Which key

Group service: one tenant key on the Group service page. It is not tied to a bot id. Every call must send group_uuid. Do not put this key in a public inviter. Pair the official inviter instead.

Full bot: one key per bot on that bot's API page. The bot id is in the URL (/bots/{id}/...). That key cannot call another bot, and it cannot call /group/*.

Rotate a key any time. The old value stops working immediately.

Auth

Send the key on every request. Header is preferred:

Header
X-Api-Key: fb_your_key_here

Authorization: Bearer fb_your_key_here also works. A query string ?apikey= is accepted for quick tests. Do not put keys in chat, notices, or public prim descriptions.

JSON

POST bodies are JSON. Set Content-Type: application/json. UUIDs are the usual 8-4-4-4-12 hex strings. Avatar names are First Last.

The curl samples break lines with ^ (Windows cmd). On macOS or Linux use a backslash, or paste each command as one line.

Success for actions looks like:

Example response
{
  "ok": true,
  "job_id": 1842
}

Poll the panel job log, or wait for the worker. There is no public "job status" URL.

Errors

  • 401 missing or invalid API key.
  • 403 wrong product. A Group service key on /bots/{id} returns Use /api/v1/group/* with this key.
  • 422 validation or the group is still pending. Read message.
  • 429 too many pairing attempts from one IP (pairing only).
  • 402 the group is unpaid (paired inviter).

Shared avatars: 30 invites per hour and 5,000 messages per SLT day (a notice costs one message per member). Full bots share a 5,000 message pool per owner, same 30 invites per hour per bot.

LSL

Every endpoint page below is a complete script: constants at the top, touch, and http_response. Curl, JSON, and LSL sit in collapsed blocks. Open the one you need, paste into a new script, fill the constants, drop it in a prim. Owner-only examples stay owner-only. Do not sell a prim that still has your API key in it.

LSL (drop in a prim)
string  API_BASE = "https://fluxbots.net/api/v1";
string  API_KEY  = "fb_PASTE_KEY_HERE";

key gHttp;

default
{
    touch_start(integer n)
    {
        string url = API_BASE + "/group/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("HTTP " + (string)status + ": " + body);
    }
}

What this key is not for

Your API key is only for the public /api/v1 routes documented here (group service, full bot, and job status). Do not call worker endpoints or the Discord interactions URL from your scripts. Those are FluxBots internals.

Pay for groups and bots on Billing in the dashboard, or at the FluxBots HQ L$ terminal. You do not script payment yourself.