Skip to main content
Required scopes: support_tickets_read
The team member the ticket is assigned to. Null unless assigneeType is TEAM_MEMBER, and null when they’ve left the team.Requires: support_tickets_read
What kind of assignee the ticket has. Null when unassigned.
Every channel the ticket’s threads are on, each once, in no set order.
Why the ticket was closed. Null unless status is CLOSED.
required
When the ticket was created.
How the customer seems to feel, from the AI’s read of the ticket. Null until it has one.
String
The text of the team’s most recently edited unsent reply, on any of the ticket’s threads. Null when there’s no draft.
ID!
required
The id of this ticket.
When the customer last wrote. Null if they haven’t written yet.
When the team, the AI agent or an automation last wrote to the customer. Null if none has.
The tickets merged directly into this one, oldest first.Requires: support_tickets_read
The ticket’s messages, oldest first, internal notes included. Messages of tickets merged into it stay on those tickets. A thread can hold messages from other tickets, which this leaves out; thread.messages has them all.Requires: support_tickets_read
How urgent the ticket is.
When the team last read the ticket. Null if no one has opened it.
When the ticket reopens on its own. Null unless status is SNOOZED.
Where the ticket is in its lifecycle.
required
When status last changed.
String
The AI’s summary of the ticket. Null until one has been written.
The tags on the ticket, ordered by name.Requires: support_tickets_read
The threads the ticket’s conversation is on, oldest first.Requires: support_tickets_read
Int
The ticket number the help desk shows, unique within the store. Null for some older tickets.
Boolean!
required
Whether the customer wrote after the team last read the ticket. False when the customer hasn’t written.
required
When the ticket last changed.