Queue counts
GET/api/support/agent/queue-counts
The numbers on the console's queue tabs and the sidebar badges: how many tickets sit in each queue for the calling agent right now, plus the size of the inbound-mail quarantine. Counted with the queues' own definitions and no filters, so unassigned: 6 is exactly the six rows the Unassigned tab shows.
Response data:
queues(object) — one integer per queue:open(every unresolved ticket),unassigned,mine(assigned to the caller),triage(unassigned and untriaged),waiting,awaiting_release,breaching,snoozed,resolved,all(any status).inbound_mail(integer) — mails on the quarantine list.
Authentication: Bearer token with the support:read scope, or an authenticated session; the caller must hold an active support agent seat. Central — no tenant header.
Request
Responses
- 200
- 401
- 403
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.