Search Tickets
Search tickets with filters. Supports filtering by workspace, assignment, status, escalation level, time range, external ticket key, and parent_ticket_ids (all children of the given tickets — e.g. every task of a journey — matching the parent_ticket_id field on the ticket payload). Without team_ids, a signed-in user’s search covers the workspaces they belong to plus tickets on any workspace that they requested, are assigned, or subscribe to, except workspace-only tickets on workspaces they are not on; set requester_user_ids to the caller’s own user ID (from Get Current User) to list the tickets they filed. Set max_description_length to keep list responses short.
Authentication and permissions
Token requirements: User-based token (OAuth) or Organization-scoped API key or Workspace-scoped API key. Send a bearer access token for one of these identities. The permissions and resource restrictions below also apply.
- Search specified workspaces: Supply team_ids. Every requested workspace must be allowed. Filtering by custom field requires this form.
- Search the organization: Omitting team_ids searches the organization and requires an organization-scoped key. A signed-in user instead sees the workspaces they belong to where they can view tickets, plus tickets on any workspace that they requested, are assigned, or subscribe to, except workspace-only tickets on workspaces they are not on. A ticket on a workspace where they cannot view tickets is returned in the requester view, without triage, assignment, or related tickets they cannot open.
Authorizations
Body
Optional. Filter to specific workspaces. The caller must be able to view tickets on every listed workspace, or the whole request is denied, so do not pass every workspace from List Workspaces. If not provided, a signed-in user searches the workspaces they belong to and can view tickets on, plus tickets on other workspaces they requested, are assigned, or follow; an API key with organization-wide ticket access searches every workspace. List explicitly any workspace you can view only through an organization role, and the allowed workspaces of a workspace-restricted API key.
Optional. Only return tickets with any of these ticket numbers — the numeric half of the human-readable identifier ("5" for "DEV-5"). Numbers are unique only WITHIN a workspace, so combine this with team_ids; without it the search spans every accessible workspace and can return one ticket per workspace for the same number.
Optional. Only return tickets whose custom field values match. OR between groups, AND within each group, with the same filter shape as svstore Search Entities; match fields by field_key, since field IDs differ per workspace. Requires team_ids; "is empty" conditions are not supported. Fails with INVALID_ARGUMENT when more than 50000 custom field records match before the other filters apply; narrow the filter.
Optional. Only return tickets of any of these types. A ticket matches when its type is listed here OR its (type, subtype) pair is listed in ticket_subtypes; with both empty, every type matches.
TICKET_TYPE_UNSPECIFIED, TICKET_TYPE_REQUEST, TICKET_TYPE_TASK, TICKET_TYPE_MAJOR_INCIDENT, TICKET_TYPE_CONVERSATION, TICKET_TYPE_JOURNEY, TICKET_TYPE_INCIDENT, TICKET_TYPE_CHANGE, TICKET_TYPE_CUSTOM, TICKET_TYPE_PROBLEM Optional. Only return tickets with any of these (type, subtype) pairs, e.g. {TICKET_TYPE_CUSTOM, "demand"} for a custom ticket type by its slug, or {TICKET_TYPE_CHANGE, "standard"} for a change model. A subtype matches only together with its type, so a custom slug never matches a change model of the same name. Matched as OR with ticket_types.

