Skip to content
QwryAI
Documentation
Pages

Endpoints

List ticket statuses

Read the agent's ticket statuses in every category, with how many tickets each holds

Every ticket status belongs to one of six fixed categories. Each category has a default status and can hold your own statuses from Settings › Helpdesk › Statuses. The get_helpdesk_page tool with "page": "statuses" returns them as that page shows them, in order, with a ticket count for each.

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.
pagestringYesstatuses. The same tool reads the other Helpdesk settings pages: members, teams, scheduling, triggers, automations, macros, ticket_reuse, translation, ai_draft and csat.

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": "statuses"}'

Response

JSON
{
  "success": true,
  "data": {
    "page": "statuses",
    "settings": {
      "statuses": [
        { "id": "open", "category": "open", "name": "New", "customerName": "Submitted", "description": "", "isDefault": true, "archived": false },
        { "id": "in_progress", "category": "in_progress", "name": "On you", "customerName": "In progress", "description": "", "isDefault": true, "archived": false },
        { "id": "7c1d2e9a-4b6f-4f0e-9a43-2d5b8c1e6f70", "category": "in_progress", "name": "Waiting on courier", "customerName": "In progress", "description": "We've asked the carrier for an update.", "isDefault": false, "archived": false },
        { "id": "on_hold", "category": "on_hold", "name": "On hold", "customerName": "In progress", "description": "", "isDefault": true, "archived": false },
        { "id": "waiting_on_customer", "category": "waiting_on_customer", "name": "On customer", "customerName": "Waiting on you", "description": "", "isDefault": true, "archived": false },
        { "id": "resolved", "category": "resolved", "name": "Closed", "customerName": "Resolved", "description": "", "isDefault": true, "archived": false },
        { "id": "closed", "category": "closed", "name": "Cancelled", "customerName": "Closed", "description": "", "isDefault": true, "archived": false }
      ],
      "ticketCounts": {
        "open": 4,
        "in_progress": 2,
        "7c1d2e9a-4b6f-4f0e-9a43-2d5b8c1e6f70": 1,
        "resolved": 12
      }
    }
  }
}
FieldTypeDescription
statuses[].idstringThe status id. Each category's built-in status uses the category key as its id.
statuses[].categorystringopen, in_progress, on_hold, waiting_on_customer, resolved or closed. Tickets report this as their status.
statuses[].namestringThe name your team sees.
statuses[].customerNamestringThe name customers see.
statuses[].descriptionstringThe status's description, or empty.
statuses[].isDefaultbooleantrue for the category's default status. Each category has exactly one.
statuses[].archivedbooleantrue once archived: no longer offered for tickets.
ticketCountsobjectTickets per status id. Statuses with no tickets are left out.

The categories appear in Tickets under these names by default:

CategoryTeam nameCustomer name
openNewSubmitted
in_progressOn youIn progress
on_holdOn holdIn progress
waiting_on_customerOn customerWaiting on you
resolvedClosedResolved
closedCancelledClosed

To add, rename or archive a status, use save_ticket_status; to reorder a category, reorder_ticket_statuses. 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