Skip to content
gist.link ↗

startChat

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

Start a live-chat conversation from the embeddable website widget. ANONYMOUS: creates (or reuses) a Requester by email, opens a ticket with channel “chat”, posts the first message, and returns the session including the visitor token that authorizes follow-up calls.

support:mutation:startChat

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 {
startChat(input: StartChatInput!): ChatSession!
}
Argument Type Required Description
input StartChatInput! 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": "mutation StartChat($input: StartChatInput!) { startChat(input: $input) { ticket_id status visitor_token } }",
"variables": {
"input": {
"organizationId": "example",
"email": "ada@example.com",
"message": "example"
}
}
}
JSON