Filter tickets
filter_ticketsSearch Freshservice tickets with field-based queries to find records by status, priority, agent, dates, tags, or custom fields, returning paginated matches and total counts.
Instructions
Search tickets with the Freshservice query language (30 results per page).
Filterable fields: requester_id, email, agent_id, group_id, priority, status, impact, urgency, tag, due_by and fr_due_by (YYYY-MM-DD), created_at and updated_at (YYYY-MM-DD or UTC datetime), workspace_id (0 = all workspaces) and custom fields by API name (see get_ticket_fields). Field names are case-sensitive snake_case. Examples: "status:2 AND priority:4", "agent_id:null AND created_at:>'2025-01-01'", "(group_id:12 OR group_id:15) AND status:3", "tag:'vip'". :> and :< are documented as inclusive (>= and <=). Values must be valid ones (status 2-5, priority 1-4, ...) or the API answers 400. The response includes "total" with the overall match count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, starting at 1 | |
| query | Yes | Freshservice query: field:value terms joined by AND / OR with optional (parentheses). Numbers bare (priority:3); strings and dates in single quotes (tag:'vip', created_at:>'2025-01-01'); booleans bare; null for empty (agent_id:null). ':>' and ':<' mean greater/less than OR EQUAL. Max 512 characters. The outer double quotes the API requires are added for you. | |
| workspace_id | No | Workspace ID (multi-workspace accounts). Defaults to $FRESHSERVICE_WORKSPACE_ID; 0 means all workspaces where supported. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||