Skip to content
gist.link ↗

markThreadRead

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

Mark every inbound message in a thread as read; returns the count.

phone:mutation:markThreadRead

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

type Mutation {
markThreadRead(numberUuid: ID!, contactE164: String!): Int!
}
Argument Type Required Description
numberUuid ID! Yes —
contactE164 String! Yes —

Int!.

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