Group service
CasperVend and CasperLet
Last updated Oct 25, 2026
Vendor hooks are separate from the X-Api-Key API. Each Full bot and each Group service row has its own ANS secret and rental secret. Rotate the secret on the panel, then paste the URL into Casper.
HippoRent is gone (2018). Do not point old Hippo boxes at FluxBots.
You can send the secret as ?secret=, JSON field secret, or header X-Ans-Secret / X-Rental-Secret. Query string is what most Casper products expect. The LSL below is for a custom vendor. Casper boxes usually only need the URL.
Group service: CasperVend ANS
The number is the Group service row id, not a bot id.
URL
POST https://fluxbots.net/api/hooks/group/{id}/ans?secret=YOUR_ANS_SECRETAccepted buyer fields: BuyerKey / BuyerName, AvatarKey / AvatarName, or avatar_uuid / avatar_name. Optional role_uuid.
curl
curl -s "https://fluxbots.net/api/hooks/group/YOUR_ROW_ID/ans?secret=YOUR_ANS_SECRET" ^
-H "Content-Type: application/json" ^
-d "{\"BuyerKey\":\"11111111-2222-3333-4444-555555555555\",\"BuyerName\":\"Jane Resident\"}"LSL (drop in a prim)
// Call sendAnsInvite from your vendor logic (sale complete)
string HOOK_BASE = "https://fluxbots.net/api/hooks/group";
integer GROUP_ID = 18;
string ANS_SECRET = "PASTE_ANS_SECRET_HERE";
key gHttp;
sendAnsInvite(key buyer, string buyerName)
{
string url = HOOK_BASE + "/" + (string)GROUP_ID + "/ans?secret=" + llEscapeURL(ANS_SECRET);
string body = llList2Json(JSON_OBJECT, [
"BuyerKey", (string)buyer,
"BuyerName", buyerName
]);
gHttp = llHTTPRequest(url, [
HTTP_METHOD, "POST",
HTTP_MIMETYPE, "application/json"
], body);
}
default
{
touch_start(integer n)
{
if (llDetectedKey(0) != llGetOwner()) return;
sendAnsInvite(llGetOwner(), llKey2Name(llGetOwner()));
}
http_response(key id, integer status, list meta, string body)
{
if (id != gHttp) return;
llOwnerSay("ANS (" + (string)status + "): " + body);
}
}Group service: CasperLet
action=invite (lease start, default) or action=eject (lease end). Eject needs a UUID.
curl
curl -s "https://fluxbots.net/api/hooks/group/YOUR_ROW_ID/rental?secret=YOUR_RENTAL_SECRET" ^
-H "Content-Type: application/json" ^
-d "{\"action\":\"invite\",\"BuyerKey\":\"11111111-2222-3333-4444-555555555555\",\"BuyerName\":\"Jane Resident\"}"LSL (drop in a prim)
// Lease start = invite, lease end = eject
string HOOK_BASE = "https://fluxbots.net/api/hooks/group";
integer GROUP_ID = 18;
string RENTAL_SECRET = "PASTE_RENTAL_SECRET_HERE";
key gHttp;
rental(string action, key avatar, string name)
{
string url = HOOK_BASE + "/" + (string)GROUP_ID + "/rental?secret=" + llEscapeURL(RENTAL_SECRET);
string body = llList2Json(JSON_OBJECT, [
"action", action,
"avatar_uuid", (string)avatar,
"BuyerName", name
]);
gHttp = llHTTPRequest(url, [
HTTP_METHOD, "POST",
HTTP_MIMETYPE, "application/json"
], body);
}
default
{
// Wire these to your rental box events:
// rental("invite", renterKey, renterName);
// rental("eject", renterKey, renterName);
touch_start(integer n)
{
if (llDetectedKey(0) != llGetOwner()) return;
rental("invite", llGetOwner(), llKey2Name(llGetOwner()));
}
http_response(key id, integer status, list meta, string body)
{
if (id != gHttp) return;
llOwnerSay("Rental (" + (string)status + "): " + body);
}
}Full bot: CasperVend ANS
If you omit group_uuid, the bot's auto-invite group is used.
URL
POST https://fluxbots.net/api/hooks/ans/{botId}?secret=YOUR_ANS_SECRETcurl
curl -s "https://fluxbots.net/api/hooks/ans/YOUR_BOT_ID?secret=YOUR_ANS_SECRET" ^
-H "Content-Type: application/json" ^
-d "{\"BuyerKey\":\"11111111-2222-3333-4444-555555555555\",\"BuyerName\":\"Jane Resident\",\"group_uuid\":\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"}"LSL (drop in a prim)
string HOOK_BASE = "https://fluxbots.net/api/hooks/ans";
integer BOT_ID = 42;
string ANS_SECRET = "PASTE_ANS_SECRET_HERE";
string GROUP_UUID = "00000000-0000-0000-0000-000000000000";
key gHttp;
sendAnsInvite(key buyer, string buyerName)
{
string url = HOOK_BASE + "/" + (string)BOT_ID + "?secret=" + llEscapeURL(ANS_SECRET);
string body = llList2Json(JSON_OBJECT, [
"BuyerKey", (string)buyer,
"BuyerName", buyerName,
"group_uuid", GROUP_UUID
]);
gHttp = llHTTPRequest(url, [
HTTP_METHOD, "POST",
HTTP_MIMETYPE, "application/json"
], body);
}
default
{
touch_start(integer n)
{
if (llDetectedKey(0) != llGetOwner()) return;
sendAnsInvite(llGetOwner(), llKey2Name(llGetOwner()));
}
http_response(key id, integer status, list meta, string body)
{
if (id != gHttp) return;
llOwnerSay("ANS (" + (string)status + "): " + body);
}
}Full bot: CasperLet
action is required: invite or eject.
curl
curl -s "https://fluxbots.net/api/hooks/rental/YOUR_BOT_ID?secret=YOUR_RENTAL_SECRET" ^
-H "Content-Type: application/json" ^
-d "{\"action\":\"invite\",\"BuyerKey\":\"11111111-2222-3333-4444-555555555555\",\"group_uuid\":\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"}"LSL (drop in a prim)
string HOOK_BASE = "https://fluxbots.net/api/hooks/rental";
integer BOT_ID = 42;
string RENTAL_SECRET = "PASTE_RENTAL_SECRET_HERE";
string GROUP_UUID = "00000000-0000-0000-0000-000000000000";
key gHttp;
rental(string action, key avatar, string name)
{
string url = HOOK_BASE + "/" + (string)BOT_ID + "?secret=" + llEscapeURL(RENTAL_SECRET);
string body = llList2Json(JSON_OBJECT, [
"action", action,
"avatar_uuid", (string)avatar,
"BuyerName", name,
"group_uuid", GROUP_UUID
]);
gHttp = llHTTPRequest(url, [
HTTP_METHOD, "POST",
HTTP_MIMETYPE, "application/json"
], body);
}
default
{
touch_start(integer n)
{
if (llDetectedKey(0) != llGetOwner()) return;
rental("invite", llGetOwner(), llKey2Name(llGetOwner()));
}
http_response(key id, integer status, list meta, string body)
{
if (id != gHttp) return;
llOwnerSay("Rental (" + (string)status + "): " + body);
}
}