Skip to content
gist.link ↗

messageThreads

Query Phone API — POST https://phone.api.gist.link/graphql

SMS conversations grouped by contact (latest message per contact).

phone:query:messageThreads

The calling IAM key must hold this permission (or a wildcard that covers it: phone:query:* or phone:*) and the access token must have been minted with audience=phone. See Permissions.

type Query {
messageThreads(numberUuid: ID): [MessageThread!]!
}
Argument Type Required Description
numberUuid ID No —

[MessageThread!]! — see the Phone types reference.

Terminal window
curl https://phone.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query MessageThreads($numberUuid: ID) { messageThreads(numberUuid: $numberUuid) { contactE164 unreadCount } }",
"variables": {
"numberUuid": "01a01234-abcd-7000-9000-0123456789ab"
}
}
JSON