Skip to content
gist.link ↗

chatSession

Query Support API — POST https://support.api.gist.link/graphql

Resume an anonymous chat-widget session: the ticket’s PUBLIC conversation, a refreshed visitor token, and a fresh Mercure grant. ANONYMOUS — authorized solely by the visitor token minted by startChat.

support:query:chatSession

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

type Query {
chatSession(visitorToken: String!): ChatSession!
}
Argument Type Required Description
visitorToken String! Yes —

ChatSession! — see the Support types reference.

Terminal window
curl https://support.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "query ChatSession($visitorToken: String!) { chatSession(visitorToken: $visitorToken) { ticket_id status visitor_token } }",
"variables": {
"visitorToken": "example"
}
}
JSON