List agents
Agents who can be assigned tickets, with ID, name and role.
GET https://cotlet.dev/api/v1/happyfox/agents
read
Lists the staff in your HappyFox with ID, name and role. Use assignee_id with update_ticket. What your agent user can see depends on its role.
Parameters
| Name | Type | Description |
|---|---|---|
| query string | string | Only agents whose name or email contains this text. |
Request
curl https://cotlet.dev/api/v1/happyfox/agents \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("happyfox", "list_agents") const result = await cotlet.call('happyfox', 'list_agents'); cotlet call happyfox list_agents Example response
{
"agents": [
{
"agent_id": 12,
"name": "Sam Okafor",
"role": "Agent"
},
{
"agent_id": 3,
"name": "Lena Ortiz",
"role": "Admin"
}
]
}