Skip to main content
There are four ways to fetch threads:
For TypeScript, the GraphQL SDK gives you a fully typed client for these operations.
These operations require the following permissions:
  • thread:read

Get a thread by ID

Query
Variables

Get a thread by external ID

A thread’s externalId is unique within a customer, which is why the customer ID is required when looking up by external ID.
Query
Variables

List threads

The threads query supports filtering on status, status detail, assignee, customer, labels, priority, date ranges) and sorting. This is the right query for building inbox-style views.
Query
Variables

Search threads

searchThreads performs a full-text search across thread title, description and message contents. For exact lookups prefer thread or threadByExternalId.
Query
Variables