Commands › Groups
get_group_members
Members of a group
Usage
curl -X POST "https://api.lifebots.cloud/api/bot.html" \
-H "Content-Type: application/json" \
-d '{
"action": "get_group_members",
"apikey": "YOUR_API_KEY",
"botname": "Joe Resident",
"secret": "bot-secret-123",
"groupuuid": "b3f87fed-0470-4a7e-b035-100000000000",
"dataType": "json"
}' Every request also needs apikey, botname and secret — see Authentication.
Parameters
| Name | Required | Description |
|---|---|---|
groupuuidUUID | yes | Group UUID, or the exact name of a group the bot is in. Also accepted as: group, groupId, groupName |
Example response
{
"result": "OK",
"members": [
{
"AgentID": "a2e76fcd-9360-4f6d-a924-000000000000",
"OnlineStatus": "Online",
"IsOwner": false,
"Title": "Member",
"AgentPowers": [
"JoinChat",
"AllowVoiceChat"
]
}
]
} With dataType=json. A failure has result: "FAIL" and the reason in resulttext — see Responses & errors.
Good to know
- Can take up to 15 seconds for large groups. Field names are capitalised.