Query
query Threads {
threads {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
id
ref
customer {
__typename
}
title
description
previewText
}
}
totalCount
}
}Response
{
"data": {
"threads": {
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"ref": "string",
"customer": {
"__typename": "Customer"
},
"title": "string",
"description": "string",
"previewText": "string"
}
}
],
"totalCount": 1
}
}
}Queries
threads
List threads with optional filtering and sorting, returned as a paginated connection. Supports rich filters (status, assignee, customer, label, priority, date ranges, tenant, tier, thread fields, and more) and multiple sort orders. Use this query to build inbox-style views or to export threads in bulk. Requires the thread:read permission.
QUERY
threads(filters: ThreadsFilter, sortBy: ThreadsSort, first: Int, after: String, last: Int, before: String): ThreadConnection!Arguments
filters
sortBy
first
Int
after
String
last
Int
before
String
Returns
pageInfo
edges
[ThreadEdge!]!
totalCount
Int!
Query
query Threads {
threads {
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
edges {
cursor
node {
id
ref
customer {
__typename
}
title
description
previewText
}
}
totalCount
}
}Response
{
"data": {
"threads": {
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"ref": "string",
"customer": {
"__typename": "Customer"
},
"title": "string",
"description": "string",
"previewText": "string"
}
}
],
"totalCount": 1
}
}
}Was this page helpful?

