List Tickets
gorgias_list_ticketsRetrieve a paginated list of tickets filtered by customer, external ID, view, rule, or ticket IDs. Supports cursor-based pagination to navigate through results.
Instructions
GET /api/tickets — Returns a paginated list of raw ticket data. For intelligent search with auto-detection of emails, names, views, and keywords, use gorgias_smart_search instead. Supports filtering by customer, external ID, view, rule, specific ticket IDs, and whether to include trashed tickets. Uses cursor-based pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of tickets to return per page (default: 30, max: 100) | |
| cursor | No | Pagination cursor from a previous response to retrieve the next or previous page | |
| rule_id | No | ID of a rule — returns tickets matching the filters of that rule | |
| trashed | No | Whether to include trashed tickets in the response. Per the Gorgias API spec, the default is true (trashed tickets ARE included by default). Pass false to exclude them. | |
| view_id | No | ID of a view — returns tickets matching the filters of that view | |
| order_by | No | Attribute used to order tickets. Default: 'created_datetime:desc' | |
| ticket_ids | No | Array of specific ticket IDs to retrieve (max 100) | |
| customer_id | No | ID of a customer — returns only that customer's tickets | |
| external_id | No | ID of the ticket in a foreign system — returns tickets matching this external ID |