List teams and agents

Teams and users a ticket can be assigned to.

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

read

Returns your teams and users with their role. Use the names it returns in update_ticket. Needs no write access.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "teams": [
    {
      "name": "Returns"
    },
    {
      "name": "Support"
    }
  ],
  "users": [
    {
      "name": "Sam Lee",
      "role": "agent"
    }
  ]
}

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.