Skip to content
gist.link ↗

addMessage

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

Post a reply on a ticket. ROLE_SUPPORT_AGENT/ROLE_ADMIN may post public or internal (isPublic: false) replies on any ticket; other authenticated users (requesters) may only post public replies (isPublic forced true; passing false is an error) and only on their own ticket. Attachments must be finalized Drive attachment URLs from finalizeAttachment. Agents may pass includeSignature: true to append their resolved signature (see replySignature) to a public reply; it is ignored for internal notes and requesters.

support:mutation:addMessage

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 {
addMessage(ticketId: Int!, body: String!, isPublic: Boolean, attachments: [AttachmentInput!], includeSignature: Boolean): Message!
}
Argument Type Required Description
ticketId Int! Yes —
body String! Yes —
isPublic Boolean No —
attachments [AttachmentInput!] No —
includeSignature Boolean No —

Message! — 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 AddMessage($ticketId: Int!, $body: String!, $isPublic: Boolean, $attachments: [AttachmentInput!], $includeSignature: Boolean) { addMessage(ticketId: $ticketId, body: $body, isPublic: $isPublic, attachments: $attachments, includeSignature: $includeSignature) { id ticket_id author_type author_name author_email body is_public created_at } }",
"variables": {
"ticketId": 10,
"body": "example",
"isPublic": true,
"attachments": [
{
"url": "example",
"filename": "Example",
"content_type": "example",
"size": 10
}
],
"includeSignature": true
}
}
JSON