Get per-status ticket counts
curl --request GET \ --url 'https://example.com/api/v1/tickets/counts?assignment=assigned&replied=waiting&clientNotifications=enabled&priority=NONE&source=PORTAL' \ --header 'Authorization: Bearer <token>'Counts client tickets per ticket status for the queue tabs under the same filters as the list, with how many of each the caller has not read (internal notes count only for a caller holding tickets.manage) and how many have nobody assigned, leaving out the assignee filters; total is the sum of the groups, so tabs and the all-tickets count always agree. Requires the tickets.view permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”assigned keeps tickets with at least one assignee, unassigned those with none.
assigned keeps tickets with at least one assignee, unassigned those with none.
Keeps tickets holding a message written by this member. Internal notes count only for a caller holding tickets.manage.
Keeps tickets holding a message written by this member. Internal notes count only for a caller holding tickets.manage.
waiting keeps tickets no agent has answered yet, replied the rest.
waiting keeps tickets no agent has answered yet, replied the rest.
Keeps tickets the client rated with this score.
Keeps tickets the client rated with this score.
Keeps tickets carrying this ticket tag.
Keeps tickets carrying this ticket tag.
Whether the client still receives emails about the ticket.
Whether the client still receives emails about the ticket.
Created at or after this moment.
Created at or after this moment.
Created at or before this moment.
Created at or before this moment.
Updated at or after this moment.
Updated at or after this moment.
Updated at or before this moment.
Updated at or before this moment.
Closed at or after this moment.
Closed at or after this moment.
Closed at or before this moment.
Closed at or before this moment.
Client waiting on the team since this moment or later.
Client waiting on the team since this moment or later.
Client waiting on the team since this moment or earlier.
Client waiting on the team since this moment or earlier.
Keeps the tickets this client person (a client member id) opened: the ones they created, or whose first message from a client person is theirs.
Keeps the tickets this client person (a client member id) opened: the ones they created, or whose first message from a client person is theirs.
Filter by the order this ticket is linked to.
Filter by the order this ticket is linked to.
Narrows the list as a company’s Tickets tab does. A project id keeps the tickets whose work tasks live in that project plus its company’s General tickets (no work task yet), and never another company’s; a project out of the caller’s reach answers 404. general keeps only the General tickets of the company in clientId, which is then required: without exactly one clientId, or for a project that belongs to no company, the answer is 422.
Narrows the list as a company’s Tickets tab does. A project id keeps the tickets whose work tasks live in that project plus its company’s General tickets (no work task yet), and never another company’s; a project out of the caller’s reach answers 404. general keeps only the General tickets of the company in clientId, which is then required: without exactly one clientId, or for a project that belongs to no company, the answer is 422.
Keeps tickets that came in through this channel.
Keeps tickets that came in through this channel.
Case-insensitive search in ticket subjects, ticket codes, who asked (client person, company, lead name and email, or the phone that texted it) and message bodies. Every word must match, up to the first 16 words; a message body matches when it holds every word of three or more letters, common English and Spanish words such as the or para aside. Results rank by where they match (ticket code, then subject or company name, then requester, then message bodies) and follow sort within a rank. Internal notes match only for a caller holding tickets.manage.
Case-insensitive search in ticket subjects, ticket codes, who asked (client person, company, lead name and email, or the phone that texted it) and message bodies. Every word must match, up to the first 16 words; a message body matches when it holds every word of three or more letters, common English and Spanish words such as the or para aside. Results rank by where they match (ticket code, then subject or company name, then requester, then message bodies) and follow sort within a rank. Internal notes match only for a caller holding tickets.manage.
Responses
Section titled “Responses”Per-status ticket counts.
object
Per-status ticket counts for the queue tabs.
object
object
Null groups tickets that have no status assigned.
Tickets in this status with nobody assigned, leaving out the assignee filters.
Tickets in this status the caller has not read. Internal notes count only for a caller holding tickets.manage.
Sum of all per-status groups.
Tickets with nobody assigned under the same filters, leaving out assigneeMemberId and assignment: what assignment=unassigned would list.
How many of those tickets the caller has not read. Internal notes count only for a caller holding tickets.manage.
Example generated
{ "data": { "byStatus": [ { "count": 1, "statusId": "example", "unassignedCount": 1, "unreadCount": 1 } ], "total": 1, "unassignedTotal": 1, "unreadTotal": 1 }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC