List agents

Agents of your account with name, email, role and availability.

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

read

Returns the agents and administrators of the account with agent_id, name, email, role and availability. Use agent_id as the agent_id of assign_conversation. Availability is what Chatwoot shows for the agent right now.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "agents": [
    {
      "agent_id": 7,
      "name": "Maya Brandt",
      "email": "maya@example.com",
      "role": "administrator",
      "availability": "online"
    },
    {
      "agent_id": 9,
      "name": "Jon Reyes",
      "email": "jon@example.com",
      "role": "agent",
      "availability": "offline"
    }
  ]
}

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.