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
curl https://cotlet.dev/api/v1/freshchat/groups \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("freshchat", "list_groups")
Node.js
const result = await cotlet.call('freshchat', 'list_groups');
CLI
cotlet call freshchat list_groups

Example response

JSON

{
  "groups": [
    {
      "group_id": "4d5e6f70-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
      "name": "Billing",
      "members": 3
    },
    {
      "group_id": "0b1c2d3e-4f50-4a6b-8c7d-9e0f1a2b3c4d",
      "name": "Support",
      "members": 6
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.