List tickets
List tickets
List paginated ticket summaries with filters, sorting, and cursor pagination.
POST
List tickets
{} and applies the default pagination and sorting behavior.
Required access
| Authentication | Scope | Dataset grant |
|---|---|---|
| API client v2 | tickets:read | tickets |
Body
Number of records to return. The minimum is
1 and the maximum is 100.Cursor from the previous response. Pass this value to fetch the next page.
Whether to include the total matching record count. Set to
false for faster cursor syncs when you only need records and cursor.Ticket status filter. Use
all or omit the field to avoid status filtering. Supported view-style values include open, reopened, investigating, snoozed, waiting_on_customer, and closed.Comma-separated priorities to include, such as
high,medium.Comma-separated assignee types, such as
agent or pilot.Comma-separated human agent or AI agent UUIDs. Use
current where the API request is associated with a user context. See Resource IDs.Comma-separated channel kinds, such as
email,whatsapp.Comma-separated channel UUIDs. Find channel IDs in Settings > API Details > Channels. See Resource IDs.
Comma-separated boolean values, such as
true or false.Built-in or custom view code. Built-in values include
needs_attention, awaiting_reply, needs_first_human_reply, and mentions.Comma-separated tag IDs to include.
Comma-separated tag IDs to exclude.
Comma-separated queue statuses.
Comma-separated team UUIDs. See Resource IDs.
Use
true to return tickets without an assigned agent or AI agent.Comma-separated inferred CSAT score values.
Comma-separated user-submitted CSAT score values.
Object mapping custom field IDs to filter values. For multiple accepted values on one field, pass a comma-separated string.
Custom field value filter for the given Sagepilot custom field ID.
Date preset or explicit range. Supported values include
today, yesterday, last_7_days, last_30_days, start|end, start|, or a start-only ISO timestamp.Date field used with
date_range. Supported values are created_at, last_message_created_at, chat_escalated_at, closed_at, and updated_at.Field used for ordering and cursor generation. Supported values are
created_at, last_message_created_at, chat_escalated_at, closed_at, and updated_at.Sort direction. Use
asc or desc.Response
Paginated ticket summaries.
Ticket ID.
Human-readable ticket code.
Ticket status.
Ticket sub-status, when present.
Ticket priority.
Ticket subject.
Ticket summary.
Current assignee type, such as
agent or pilot.Assigned human agent ID, when applicable.
Assigned AI agent ID, when applicable.
Assigned team ID, when applicable.
Assigned team name, when available.
Channel ID for the ticket.
Whether the ticket has unread messages.
Number of unread messages on the ticket.
Number of human agent messages on the ticket.
Number of AI agent messages on the ticket.
Number of customer messages on the ticket.
Queue status, when the ticket is queued.
Ticket creation timestamp.
Ticket update timestamp.
Timestamp of the latest message attached to the ticket.
Ticket close timestamp, when closed.
Customer summary for the ticket.
Channel summary for the ticket.
Latest message summary for the ticket.
AI agent summary, when assigned.
Human agent profile summary, when assigned.
Tags attached to the ticket.
Custom field values attached to the ticket.
Cursor for the next page. This is
null when there is no next page.Total matching records when
include_total is true; otherwise null.Notes
- Use API client v2 credentials with
tickets:readscope and theticketsdataset grant. See API client v2. - Multi-value filters are comma-separated strings.
- Use
assigneewithassignee_typeto filter by human agents or AI agents.