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 https://cotlet.dev/api/v1/trengo/assignees \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("trengo", "list_assignees") const result = await cotlet.call('trengo', 'list_assignees'); cotlet call trengo list_assignees Example response
{
"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"
}
]
}