Skip to content
gist.link ↗

sendChatMessage

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

Post a visitor reply on a chat ticket. ANONYMOUS — authorized by the visitor token. Replying to a solved/closed ticket re-opens it.

support:mutation:sendChatMessage

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

type Mutation {
sendChatMessage(visitorToken: String!, body: String!): ChatMessage!
}
Argument Type Required Description
visitorToken String! Yes —
body String! Yes —

ChatMessage! — 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": "mutation SendChatMessage($visitorToken: String!, $body: String!) { sendChatMessage(visitorToken: $visitorToken, body: $body) { id author_type author_name body created_at } }",
"variables": {
"visitorToken": "example",
"body": "example"
}
}
JSON