List agents

Agents and admins who can be assigned tickets, with role.

GET https://cotlet.dev/api/v1/zendesk/agents

read

Lists agents and admins in your Zendesk with ID, name and role. Light agents and collaborators are left out, because tickets cannot be assigned to them. Use assignee_id with update_ticket.

Parameters

Parameters: list_agents
NameTypeDescription
query string string Only agents whose name or email contains this text.

Request

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

Example response

JSON

{
  "agents": [
    {
      "user_id": 20118842,
      "name": "Sam Okafor",
      "role": "agent"
    },
    {
      "user_id": 20118001,
      "name": "Lena Ortiz",
      "role": "admin"
    }
  ]
}

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.