List tickets
GET/v2/helpdesk/tickets
Return the Helpdesk tickets of your workspace, newest first, filtered by status, priority, assignee, team, contact, tag or channel.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Returns a page of Helpdesk tickets, newest first. Call it to build a queue view in your own tool, sync tickets to a reporting database, or find everything assigned to one person.
Request
GET /v2/helpdesk/tickets
Query parameters:
| Name | Type | Required | Description |
|---|---|---|---|
limit |
integer | No | Items per page, from 1 to 100. Defaults to 20. |
cursor |
string | No | The nextCursor value from the previous page. |
status |
string | No | open, pending, on_hold, solved or closed. |
priority |
string | No | low, normal, high or urgent. |
assigneeId |
string | No | Only tickets owned by this member, starting with usr_. |
teamId |
string | No | Only tickets of this team, starting with team_. |
contactId |
string | No | Only tickets of this customer, starting with con_. |
tag |
string | No | Only tickets that carry this tag. |
channel |
string | No | One channel, for example widget, email, whatsapp or api. |
from |
string | No | Only tickets created at or after this ISO 8601 UTC time. |
to |
string | No | Only tickets created before this ISO 8601 UTC time. |
Filters combine, so status=open&priority=urgent returns tickets that match both. To find tickets by the words in them, use Search tickets.
Example request
curl "https://api.askocto.co/v2/helpdesk/tickets?status=open&priority=urgent&limit=20" \
-H "Authorization: Bearer $OCTO_API_KEY"
const url = new URL("https://api.askocto.co/v2/helpdesk/tickets")
url.searchParams.set("status", "open")
url.searchParams.set("priority", "urgent")
url.searchParams.set("limit", "20")
const response = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
})
const { data, nextCursor } = await response.json()
for (const ticket of data) console.log(ticket.id, ticket.subject)
console.log("More pages:", nextCursor !== null)
Example response
A successful call returns 200 OK.
{
"data": [
{
"id": "tkt_4m8x2q",
"subject": "Damaged jacket in order A-1042",
"status": "open",
"priority": "urgent",
"assigneeId": "usr_6k9d2r",
"teamId": "team_2c7h5v",
"contactId": "con_9a3f1k",
"tags": ["refund", "damaged"],
"channel": "widget",
"createdAt": "2026-03-20T14:05:00Z",
"updatedAt": "2026-03-20T14:12:00Z"
},
{
"id": "tkt_7r3c5n",
"subject": "Charged twice for one order",
"status": "open",
"priority": "urgent",
"assigneeId": null,
"teamId": "team_2c7h5v",
"contactId": "con_4t8w2b",
"tags": ["billing"],
"channel": "email",
"createdAt": "2026-03-20T11:40:00Z",
"updatedAt": "2026-03-20T11:40:00Z"
}
],
"nextCursor": "cur_d41b7e05"
}
Response fields
| Name | Type | Description |
|---|---|---|
data |
array | Ticket objects. Each one has the fields described in the Helpdesk overview. |
nextCursor |
string or null | Pass it as cursor for the next page. null on the last page. |
The messages of a ticket are not part of the list. Read them with List ticket messages.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request |
limit is outside 1 to 100, a filter has an unknown value, or from or to is not an ISO 8601 time. |
| 401 | unauthorized |
The API key is missing, malformed or deleted. |
| 429 | rate_limited |
Too many requests. Wait for the number of seconds in the Retry-After header. |
Read more about cursors in Pagination.