List inboxes and agents

Inboxes and Agents a Conversation can be assigned to.

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

read

Returns the names and IDs the Conversation Assignment menu offers: Inboxes and Agents. Use inbox_id and agent_id with assign_conversation, create_task and list_conversations. Disabled Inboxes are marked.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "inboxes": [
    {
      "inbox_id": "vZgCEQlDR6aQz_0HeWZ9_Q",
      "name": "Email Inbox",
      "disabled": false
    },
    {
      "inbox_id": "E1nArq1uQAees_DogHB0MA",
      "name": "Orders",
      "disabled": false
    }
  ],
  "agents": [
    {
      "agent_id": "sHuXx-U3QqOmhvFusJGeBw",
      "name": "Priya Nair"
    }
  ]
}

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.