Skip to content

List helpdesk tickets

GET
/tickets
Code sample: Shell / cURL
curl --request GET \
--url 'https://example.com/api/v1/tickets?assignment=assigned&replied=waiting&clientNotifications=enabled&priority=NONE&source=PORTAL&page=1&perPage=50&sort=newest' \
--header 'Authorization: Bearer <token>'

Lists client tickets (client-visible tasks filed from the portal) for the agent queue, sorted by recent activity by default. Filterable by ticket status, assignee or assignment, client, order, priority, source (channel), message author, reply state, rating, tag, client notifications, created/updated/closed/waiting-since windows, and a search over subjects, ticket codes, who asked (client person, company, or lead) and message bodies (internal notes match only for a caller holding tickets.manage). Each row says whether the caller has unread activity on it; internal notes count as activity only for a caller holding tickets.manage. Requires the tickets.view permission.

assigneeMemberId
string
assignment

assigned keeps tickets with at least one assignee, unassigned those with none.

string
Allowed values: assigned unassigned

assigned keeps tickets with at least one assignee, unassigned those with none.

messagesFromMemberId

Keeps tickets holding a message written by this member. Internal notes count only for a caller holding tickets.manage.

string

Keeps tickets holding a message written by this member. Internal notes count only for a caller holding tickets.manage.

replied

waiting keeps tickets no agent has answered yet, replied the rest.

string
Allowed values: waiting replied

waiting keeps tickets no agent has answered yet, replied the rest.

rating

Keeps tickets the client rated with this score.

integer
>= 1 <= 5

Keeps tickets the client rated with this score.

tagId

Keeps tickets carrying this ticket tag.

string

Keeps tickets carrying this ticket tag.

clientNotifications

Whether the client still receives emails about the ticket.

string
Allowed values: enabled disabled

Whether the client still receives emails about the ticket.

createdFrom

Created at or after this moment.

string

Created at or after this moment.

createdTo

Created at or before this moment.

string

Created at or before this moment.

updatedFrom

Updated at or after this moment.

string

Updated at or after this moment.

updatedTo

Updated at or before this moment.

string

Updated at or before this moment.

closedFrom

Closed at or after this moment.

string

Closed at or after this moment.

closedTo

Closed at or before this moment.

string

Closed at or before this moment.

waitingSinceFrom

Client waiting on the team since this moment or later.

string

Client waiting on the team since this moment or later.

waitingSinceTo

Client waiting on the team since this moment or earlier.

string

Client waiting on the team since this moment or earlier.

clientId
string
requesterMemberId

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.

string

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.

orderId

Filter by the order this ticket is linked to.

string

Filter by the order this ticket is linked to.

projectId

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.

string
>= 1 characters

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.

priority
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
source

Keeps tickets that came in through this channel.

string
Allowed values: PORTAL EMAIL API AGENT SMS SLACK

Keeps tickets that came in through this channel.

search

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.

string

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.

page
integer
default: 1 >= 1 <= 9007199254740991
perPage
integer
default: 50 >= 1 <= 150
statusId
string
sort

recent-activity orders by the latest update (newest first) and oldest-activity by the same date, oldest first; last-message orders by the latest client-facing message (newest first) and oldest-message oldest first; priority-high puts urgent first and priority-low last; status and status-desc follow the workspace’s status order; code and code-desc order by ticket code, tickets without one last.

string
default: recent-activity
Allowed values: newest oldest recent-activity oldest-activity last-message oldest-message priority-high priority-low status status-desc code code-desc

recent-activity orders by the latest update (newest first) and oldest-activity by the same date, oldest first; last-message orders by the latest client-facing message (newest first) and oldest-message oldest first; priority-high puts urgent first and priority-low last; status and status-desc follow the workspace’s status order; code and code-desc order by ticket code, tickets without one last.

Paginated list of tickets.

Media typeapplication/json
object
data
required
Array<object>

A client ticket row in the agent queue.

object
assignees
required
Array<object>
object
avatarUrl
required
string | null
memberEmail
required
string
memberId
required
string
memberName
required
string
client
required

Client the ticket belongs to.

Any of:
object
id
required
string
name
required
string
clientNotificationsEnabled
required

False when the client no longer receives emails about this ticket.

boolean
closedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
code
required

Short code people quote to name the ticket, e.g. 9W03V9.

string | null
createdAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
createdByClient
required

Client that filed the ticket from the portal.

Any of:
object
id
required
string
name
required
string
firstRespondedAt
required

When the first agent reply was posted. Null until an agent replies.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
id
required
string
isGeneral

True while the ticket has no work task in any project, so it sits in its company’s General section, as the company’s Tickets tab marks it. Returned by the list only; absent on an older server.

boolean
isUnread
required

Whether the ticket holds a message that someone other than the caller wrote after the caller last opened it. Internal notes count only for a caller holding tickets.manage.

boolean
lastMessageAt
required

When the last client-facing message landed. Null on a ticket with none.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
leadEmail
required

Captured sender email for a lead ticket (no client match). Null once matched.

string | null
leadName
required

Captured sender name for a lead ticket (no client match). Null once matched.

string | null
messageCount
required

Client-visible (non-internal, non-deleted) message count.

integer
>= -9007199254740991 <= 9007199254740991
number
required

Workspace-scoped sequential ticket number.

integer
>= -9007199254740991 <= 9007199254740991
order
required

The order this ticket is linked to, when set.

Any of:
object
id
required
string
name
required
string
priority
required
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
ratedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
rating
required

The client’s 1-5 rating, given once the ticket closed. Null until rated.

Any of:
integer
>= 1 <= 5
ratingComment
required
string | null
smsNumber
required

E.164 phone of a ticket opened by an incoming text, or the requester’s phone once the team texted them from the ticket: its texts land on this ticket while it is open. Who asked when no contact has that number.

string | null
source
required

Where the ticket originated from: the client portal, inbound email, the REST API/MCP surface, an in-app agent, or an incoming text (SMS).

string
Allowed values: PORTAL EMAIL API AGENT SMS SLACK
status
required
Any of:

A workspace-defined helpdesk ticket status.

object
category
required

SLA-relevant grouping. WAITING_ON_CLIENT pauses the SLA clock (see the SLA settings); every other category runs it.

string
Allowed values: OPEN IN_PROGRESS WAITING_ON_CLIENT RESOLVED
color
required
string
id
required
string
isTerminal
required

Entering this status closes the ticket (sets closedAt).

boolean
name
required
string
subject
required
string
tags
required

Ticket tags from the workspace’s ticket tag catalog.

Array<object>
object
id
required
string
name
required
string
updatedAt
required
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
waitingSince
required

Since when the client has been waiting on the team: their first message after the last agent reply. Null when nobody is waiting.

Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
workTaskCount
required

How many internal work tasks are linked to the ticket (see POST /tickets/{id}/promote).

integer
>= -9007199254740991 <= 9007199254740991
meta
required

Pagination metadata for list responses.

object
page
required
integer
>= -9007199254740991 <= 9007199254740991
perPage
required
integer
>= -9007199254740991 <= 9007199254740991
total
required
integer
>= -9007199254740991 <= 9007199254740991
totalPages
required
integer
>= -9007199254740991 <= 9007199254740991

Example

{
"data": [
{
"priority": "NONE",
"source": "PORTAL",
"status": {
"category": "OPEN"
}
}
]
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Invalid input.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.