Skip to content
QwryAI
Documentation
Pages

Endpoints

List teams

Read the agent's Helpdesk teams, their members, assignment strategy and open ticket counts

Teams group the members who handle an agent's tickets and decide how new tickets are assigned to them. The get_helpdesk_page tool with "page": "teams" returns them as Settings › Helpdesk › Teams shows them. Every agent has a default team, General, from the first time its teams are read.

POSThttps://api.qwryai.com/public/v1/tools/get_helpdesk_page

Authentication

Send your API key as Authorization: Bearer YOUR_API_KEY. The key needs Manage conversations and helpdesk. See Authentication.

Body parameters

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id, from list_agents.
pagestringYesteams. Use members to read the members themselves, with their names, availability and teams.

Request example

Bash
curl -X POST 'https://api.qwryai.com/public/v1/tools/get_helpdesk_page' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"chatbotId": "YOUR_AGENT_ID", "page": "teams"}'

Response

JSON
{
  "success": true,
  "data": {
    "page": "teams",
    "settings": [
      {
        "id": "3f9b6c2e-1a4d-4e8b-b7c5-0d2e6f8a9b10",
        "name": "General",
        "strategy": "round_robin",
        "maxTicketsPerAgent": 15,
        "workloadCategories": ["open", "in_progress"],
        "unassignOnReply": false,
        "isDefault": true,
        "memberIds": ["<memberId>", "<memberId>"],
        "lastAssignedId": "<memberId>",
        "openTickets": 6,
        "unassignedTickets": 2
      }
    ]
  }
}
FieldTypeDescription
idstringThe team's id.
namestringThe team's name.
strategystringHow new tickets are assigned: manual (they wait until someone picks them up), round_robin (the next available member in turn) or balanced (the available member with the fewest open tickets).
maxTicketsPerAgentinteger or nullMax tickets per agent: the workload limit for automatic assignment, or null for none.
workloadCategoriesarrayWhich status categories count toward a member's workload.
unassignOnReplybooleanUnassign on reply: when the customer writes and the assignee is offline, the ticket is unassigned so someone available picks it up.
isDefaultbooleantrue for the team new tickets go to by default.
memberIdsarrayThe members in the team. Their names are on the members page.
lastAssignedIdstring or nullRound robin: the member who received the previous ticket.
openTicketsintegerOpen tickets in the team.
unassignedTicketsintegerOf those, how many have no assignee.

To add or change a team, use save_helpdesk_team; to choose a member's teams, set_member_teams. Both need Change agent settings and return a review you apply. See Helpdesk.

Errors

HTTP statuscodeWhen
400INVALID_ARGUMENTSpage is missing or isn't one of the page names.
400CHATBOT_ID_REQUIREDchatbotId is missing or isn't a valid agent id.
403INSUFFICIENT_PERMISSIONThe key doesn't hold Manage conversations and helpdesk.
404CHATBOT_NOT_FOUNDNo agent with that chatbotId in your workspace.

See Error Handling for authentication and rate-limit errors.

Explore the documentation