> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SupportTicketFilter

> Which tickets to include, with the filters and operators the help desk's own filters and saved views have. Fields set side by side must all match; `and` and `or` nest up to 4 levels and 50 filters in all, with at most 10 that set `query`. A filter that sets nothing matches every ticket. There is no `not`: negate with `noneOf` and `notContains`, as the help desk does.

**and** `[\[SupportTicketFilter!\]](/docs/api-reference/v3/reference/support/support-ticket-filter)`

Every one of these filters matches.

**assigned** `Boolean`

True: tickets with an assignee of any kind. False: tickets with none.

**assigneeId** `[IdFilter](/docs/api-reference/v3/reference/common/id-filter)`

The team member the ticket is assigned to, at most 100 ids.

**fields**

**anyOf** `[ID!]`

One of these ids (at most 100).

**noneOf** `[ID!]`

None of these ids (at most 100).

**assigneeType** `[SupportTicketAssigneeTypeFilter](/docs/api-reference/v3/reference/common/support-ticket-assignee-type-filter)`

What kind of assignee the ticket has.

**fields**

**anyOf** `[\[SupportTicketAssigneeType!\]](/docs/api-reference/v3/reference/support/support-ticket-assignee-type)`

One of these values.

**noneOf** `[\[SupportTicketAssigneeType!\]](/docs/api-reference/v3/reference/support/support-ticket-assignee-type)`

None of these values.

**channel** `[MessageChannelFilter](/docs/api-reference/v3/reference/common/message-channel-filter)`

The channels the ticket is on.

**fields**

**anyOf** `[\[MessageChannel!\]](/docs/api-reference/v3/reference/support/message-channel)`

One of these values.

**noneOf** `[\[MessageChannel!\]](/docs/api-reference/v3/reference/support/message-channel)`

None of these values.

**closedAt** `[SupportTicketDateFilter](/docs/api-reference/v3/reference/support/support-ticket-date-filter)`

When the ticket was closed.

**fields**

**gt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

After this instant.

**lt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Before this instant.

**newerThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

Less than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**olderThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

More than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**createdAt** `[SupportTicketDateFilter](/docs/api-reference/v3/reference/support/support-ticket-date-filter)`

When the ticket was created.

**fields**

**gt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

After this instant.

**lt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Before this instant.

**newerThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

Less than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**olderThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

More than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**customerId** `ID`

The ticket's main customer, by id or legacy id. Requires customers\_read. A customer the store doesn't have matches no tickets; a malformed id fails with BAD\_USER\_INPUT.

**drafts** `[FloatFilter](/docs/api-reference/v3/reference/common/float-filter)`

How many open composer drafts the ticket has, any team member's, counting the tickets merged into it. The help desk's Drafts view is `status: { anyOf: [OPEN, DRAFT] }` and `drafts: { gt: 0 }` with `helpDeskDefaults: true`.

**fields**

**gt** `Float`

Greater than this value.

**gte** `Float`

At least this value.

**lt** `Float`

Less than this value.

**lte** `Float`

At most this value.

**inboxEmail** `[StringListFilter](/docs/api-reference/v3/reference/common/string-list-filter)`

The store inbox address the ticket came in on, at most 100 addresses. Matched without case.

**fields**

**allOf** `[String!]`

Contains every one of these values (at most 100).

**anyOf** `[String!]`

Contains at least one of these values (at most 100).

**noneOf** `[String!]`

Contains none of these values (at most 100).

**lastCustomerMessageAt** `[SupportTicketDateFilter](/docs/api-reference/v3/reference/support/support-ticket-date-filter)`

When the customer last wrote.

**fields**

**gt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

After this instant.

**lt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Before this instant.

**newerThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

Less than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**olderThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

More than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**lastMerchantMessageAt** `[SupportTicketDateFilter](/docs/api-reference/v3/reference/support/support-ticket-date-filter)`

When the team, the AI agent or an automation last wrote.

**fields**

**gt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

After this instant.

**lt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Before this instant.

**newerThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

Less than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**olderThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

More than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**lastResponseAt** `[SupportTicketDateFilter](/docs/api-reference/v3/reference/support/support-ticket-date-filter)`

When the customer or the team last wrote.

**fields**

**gt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

After this instant.

**lt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

Before this instant.

**newerThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

Less than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**olderThan** `[SupportTicketRelativeTime](/docs/api-reference/v3/reference/support/support-ticket-relative-time)`

More than this long ago.

**fields**

**unit** `[SupportTicketRelativeTimeUnit!](/docs/api-reference/v3/reference/support/support-ticket-relative-time-unit)` *required*

The unit `value` counts.

**value** `Int!` *required*

How many units, 1 or more, at most 36500 days in all.

**mentionedId** `[IdListFilter](/docs/api-reference/v3/reference/common/id-list-filter)`

The team members an internal note on the ticket @mentions, at most 100 ids.

**fields**

**allOf** `[ID!]`

Has every one of these ids (at most 100).

**anyOf** `[ID!]`

Has at least one of these ids (at most 100).

**noneOf** `[ID!]`

Has none of these ids (at most 100).

**or** `[\[SupportTicketFilter!\]](/docs/api-reference/v3/reference/support/support-ticket-filter)`

At least one of these filters matches. Not empty.

**participantCustomerId** `ID`

A customer who takes part in the ticket on any thread, the match the help desk's customer ticket list makes; `customerId` matches only the ticket's main customer. By id or legacy id. Requires customers\_read.

**query** `[SupportTicketTextFilter](/docs/api-reference/v3/reference/support/support-ticket-text-filter)`

The ticket's text. Matches customer details with only support\_tickets\_read, as the inbox does.

**fields**

**contains** `String`

The inbox search: message and subject words, the customer's name, email or phone, the ticket number, and order numbers.

**exact** `String`

Has this phrase, its words together and in this order.

**notContains** `String`

Leaves out the tickets that have these words.

**sentMessages** `[FloatFilter](/docs/api-reference/v3/reference/common/float-filter)`

How many messages team members wrote on the ticket, counting the tickets merged into it. Internal notes count; messages from the AI agent, auto-replies, chat flows and the system don't. The help desk's Sent view is `sentMessages: { gt: 0 }` with spam left out.

**fields**

**gt** `Float`

Greater than this value.

**gte** `Float`

At least this value.

**lt** `Float`

Less than this value.

**lte** `Float`

At most this value.

**status** `[SupportTicketStatusFilter](/docs/api-reference/v3/reference/common/support-ticket-status-filter)`

The ticket's status. While no filter names a status, ARCHIVED tickets are left out, as the help desk lists tickets; name ARCHIVED in an `anyOf` to include them.

**fields**

**anyOf** `[\[SupportTicketStatus!\]](/docs/api-reference/v3/reference/support/support-ticket-status)`

One of these values.

**noneOf** `[\[SupportTicketStatus!\]](/docs/api-reference/v3/reference/support/support-ticket-status)`

None of these values.

**tagId** `[IdListFilter](/docs/api-reference/v3/reference/common/id-list-filter)`

The ticket's tags, at most 100 ids.

**fields**

**allOf** `[ID!]`

Has every one of these ids (at most 100).

**anyOf** `[ID!]`

Has at least one of these ids (at most 100).

**noneOf** `[ID!]`

Has none of these ids (at most 100).

**unread** `Boolean`

True: tickets with a customer message the team has not read yet. False: the others, including tickets the customer never wrote on.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.