inboxThreads
Requires permission sales:quote:read.
Lists email threads for the inbox, one page at a time, by folder and optional search text. A sales rep sees only the mail on quotes they may open. Requires permission to read quotes.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query InboxThreads {
inboxThreads {
totalCount
edges {
cursor
}
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query InboxThreads {\n inboxThreads {\n totalCount\n edges {\n cursor\n }\n }\n}"
}
EOF
Response:
{
"data": {
"inboxThreads": {
"totalCount": 0,
"edges": [
{
"cursor": "string"
}
]
}
}
}
inboxThreads(
input: InboxThreadsInput
): InboxConnection!
Arguments
inboxThreads.input ● InboxThreadsInput input
Optional page size (default 20), cursor, folder (default inbox) and search text.
Type
InboxConnection object
A page of inbox threads.