List users and teams

The users and teams a conversation can be assigned to.

GET https://cotlet.dev/api/v1/trengo/assignees

read

Returns the users and the teams of your Trengo with their IDs. Use user_id or team_id in assign_conversation. What your own user can see in the Assign menu is what comes back.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/trengo/assignees \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("trengo", "list_assignees")
Node.js
const result = await cotlet.call('trengo', 'list_assignees');
CLI
cotlet call trengo list_assignees

Example response

JSON

{
  "users": [
    {
      "user_id": 4012,
      "name": "Sam de Boer"
    },
    {
      "user_id": 4015,
      "name": "Maya Okafor"
    }
  ],
  "teams": [
    {
      "team_id": 88,
      "name": "Billing team"
    },
    {
      "team_id": 91,
      "name": "Tech team"
    }
  ]
}

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.