API Reference › Bots — Group Moderation
Answer Group Invite
POST
/bots/{bot_id}/groups/invites/respondAccept or decline an invite from the group_invite webhook event.
Scopebots:groups
Act on any Second Life group the bot belongs to, whether or not the group is registered on LifeBots. Second Life enforces group powers: the bot needs the Invite, Eject or Assign Members ability, or the action has no effect. Group, role and avatar ids must be full UUIDs.
Usage
curl -X POST "https://api.lifebots.cloud/api/v1/bots/$BOT_ID/groups/invites/respond" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from_agent_id": "7d1d5c58-2a8f-4c3e-9b11-0a6e5f2c9e41",
"session_id": "e9a8b7c6-d5e4-4f3a-8b2c-1d0e9f8a7b6c",
"accept": true
}'Path parameters
| Name | Type | Description |
|---|---|---|
bot_id | UUID | The bot's avatar UUID (agentId from GET /bots). |
Body (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
from_agent_id | UUID | yes | avatar_uuid from the event. |
session_id | UUID | yes | session_id from the event. |
accept | boolean | yes | true to accept, false to decline. |
Example response
{
"success": true,
"data": {
"result": "OK"
},
"meta": {
"timestamp": "2026-10-02T12:00:00.000Z",
"version": "1.0"
}
} Always check success; for commands the bot carries out, also check data.result. See Responses & errors.