List groups
Groups (teams) with their ID and member count.
GET https://cotlet.dev/api/v1/freshchat/groups
read
Returns the groups of the account. Use group_id from here in assign_conversation and in the filters of list_conversations and list_agents. Groups are what Freshchat calls teams when conversations are assigned.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/freshchat/groups \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("freshchat", "list_groups") const result = await cotlet.call('freshchat', 'list_groups'); cotlet call freshchat list_groups Example response
{
"groups": [
{
"group_id": "4d5e6f70-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
"name": "Billing",
"members": 3
},
{
"group_id": "0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d",
"name": "Support",
"members": 6
}
]
}