Skip to content
gist.link ↗

thread

Query Mail API — POST https://mail.api.gist.link/graphql

One thread (with its messages); must belong to a mailbox the caller owns.

mail:query:thread

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

type Query {
thread(uuid: String!): Thread
}
Argument Type Required Description
uuid String! Yes —

Thread — see the Mail types reference.

Terminal window
curl https://mail.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query Thread($uuid: String!) { thread(uuid: $uuid) { uuid subject created_at } }",
"variables": {
"uuid": "example"
}
}
JSON