Skip to content
gist.link ↗

Support API

Ticketing: tickets, views, agents, groups, macros, triggers, and SLAs.

Endpoint POST https://support.api.gist.link/graphql
Token audience audience=support
Permission prefix support:

Mint an access token for this API with your IAM key and audience=support — see Authentication.

Operation Required permission Description
agents support:query:agents Support agents in the organization. The roster mirrors the auth service’s user directory: every workspace member with the support app enabled is an agent (re-synced on read). Agent access.
chatSession support:query:chatSession 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.
emailRules support:query:emailRules Email routing rules for tickets created from support addresses. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
groups support:query:groups Support groups in the organization. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
macros support:query:macros Macros in the organization. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
myTickets support:query:myTickets The caller’s own tickets (customer portal). Any authenticated user.
realtimeToken support:query:realtimeToken Mercure subscriber grant for the agent console: one org-wide topic carrying every ticket event in the organization. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
replySignature support:query:replySignature The signature that would be appended to the caller’s public reply on this ticket (agent assignment > ticket group assignment > org default), rendered with placeholders filled in. Null when none applies. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
requesters support:query:requesters Ticket requesters (customers) in the organization with ticket rollups, as a paginated connection. search matches email or name; sort.field is one of id, email, name, created_at (default id ASC). Agents, plus org-bound service tokens (e.g. campaigns’ built-in “Support requesters” source).
requesterStats support:query:requesterStats Ticket rollups for specific requester emails (campaigns audience enrichment). Returns one entry per requested email that exists as a requester in the organization (case-insensitive; unknown emails omitted). Spam and deleted tickets are excluded. At most 500 emails. Agents, plus org-bound service tokens.
signatures support:query:signatures Reply signatures in the organization, with their agent/group assignments. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
slaPolicies support:query:slaPolicies SLA policies in the organization. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
supportOverview support:query:supportOverview Agent dashboard homepage stats: open/urgent/unassigned/SLA-breach counts, a 14-day created-vs-solved trend, and the current open-ticket priority mix. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
tags support:query:tags Ticket tags in the organization. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
ticket support:query:ticket A single ticket by id, subject to the same scoping as tickets. Authenticated.
ticketBucketCounts support:query:ticketBucketCounts Ticket counts for the Spam and Deleted sidebar destinations. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
tickets support:query:tickets Tickets visible to the caller. ROLE_SUPPORT_AGENT/ROLE_ADMIN see every ticket in the organization; any other authenticated user only sees tickets where they are the requester (matched by auth_user_id or email).
triggers support:query:triggers Automation triggers in the organization. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
view support:query:view A single saved view by id. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
views support:query:views Saved views (shared + the caller’s own private views). ROLE_SUPPORT_AGENT/ROLE_ADMIN.
Operation Required permission Description
addMessage support:mutation:addMessage 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.
applyMacro support:mutation:applyMacro Run a macro’s actions against a ticket. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
assignTicket support:mutation:assignTicket Assign or unassign (assigneeId: null) a ticket. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
createAttachmentUpload support:mutation:createAttachmentUpload Request a presigned upload for a ticket attachment. The file is stored in Drive’s permanent read-only “support” folder and served anonymously at a stable hard-to-guess URL. Any authenticated user.
createEmailRule support:mutation:createEmailRule Create an email routing rule. ROLE_ADMIN.
createGroup support:mutation:createGroup Create a support group. ROLE_ADMIN.
createMacro support:mutation:createMacro Create a macro. ROLE_ADMIN.
createSignature support:mutation:createSignature Create a reply signature, optionally assigning it to agents/groups or making it the org default. ROLE_ADMIN.
createSlaPolicy support:mutation:createSlaPolicy Create an SLA policy. ROLE_ADMIN.
createTag support:mutation:createTag Create a tag. ROLE_ADMIN.
createTicket support:mutation:createTicket Create a ticket. Any authenticated user creates their own ticket (requester = caller); ROLE_SUPPORT_AGENT/ROLE_ADMIN may create on behalf of any requester via requesterId/requesterEmail in the input.
createTrigger support:mutation:createTrigger Create an automation trigger. ROLE_ADMIN.
createView support:mutation:createView Create a saved view. ROLE_ADMIN.
deleteEmailRule support:mutation:deleteEmailRule Delete an email routing rule; returns the deleted row. ROLE_ADMIN.
deleteGroup support:mutation:deleteGroup Delete a support group; returns the deleted row. ROLE_ADMIN.
deleteMacro support:mutation:deleteMacro Delete a macro; returns the deleted row. ROLE_ADMIN.
deleteSignature support:mutation:deleteSignature Delete a reply signature (assigned agents/groups fall back); returns the deleted row. ROLE_ADMIN.
deleteSlaPolicy support:mutation:deleteSlaPolicy Delete an SLA policy; returns the deleted row. ROLE_ADMIN.
deleteTag support:mutation:deleteTag Delete a tag; returns the deleted row. ROLE_ADMIN.
deleteTicket support:mutation:deleteTicket Soft-delete a ticket (moves it to the Deleted bucket). ROLE_SUPPORT_AGENT/ROLE_ADMIN.
deleteTrigger support:mutation:deleteTrigger Delete an automation trigger; returns the deleted row. ROLE_ADMIN.
deleteView support:mutation:deleteView Delete a saved view; returns the deleted row. ROLE_ADMIN.
finalizeAttachment support:mutation:finalizeAttachment Verify a finished attachment upload and get its public URL. Any authenticated user.
markTicketSpam support:mutation:markTicketSpam Flag a ticket as spam (moves it to the Spam bucket). ROLE_SUPPORT_AGENT/ROLE_ADMIN.
mergeTickets support:mutation:mergeTickets Merge the source ticket into the target: moves the source’s messages onto the target, leaves an internal audit note on each (flagging any requester-email mismatch), and closes the source. Returns the target. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
reorderViews support:mutation:reorderViews Re-order saved views in the tickets sidebar; returns the full visible list. ROLE_ADMIN.
restoreTicket support:mutation:restoreTicket Restore a soft-deleted ticket to the active queue. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
sendChatMessage support:mutation:sendChatMessage Post a visitor reply on a chat ticket. ANONYMOUS — authorized by the visitor token. Replying to a solved/closed ticket re-opens it.
setAgentGroups support:mutation:setAgentGroups Assign a synced agent to support groups. The roster itself is auto-managed (mirrored from the auth user directory); groups are the only support-specific attribute an admin edits. ROLE_ADMIN.
setAgentSignature support:mutation:setAgentSignature Assign a signature to one agent, or clear it with signatureId: null. ROLE_ADMIN.
setTicketStatus support:mutation:setTicketStatus Change a ticket’s status. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
startChat support:mutation:startChat 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.
unmarkTicketSpam support:mutation:unmarkTicketSpam Clear a ticket’s spam flag, returning it to the active queue. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
updateEmailRule support:mutation:updateEmailRule Update an email routing rule. ROLE_ADMIN.
updateGroup support:mutation:updateGroup Update a support group. ROLE_ADMIN.
updateMacro support:mutation:updateMacro Update a macro. ROLE_ADMIN.
updateSignature support:mutation:updateSignature Update a reply signature; agentIds/groupIds, when given, replace its assignments. ROLE_ADMIN.
updateSlaPolicy support:mutation:updateSlaPolicy Update an SLA policy. ROLE_ADMIN.
updateTag support:mutation:updateTag Update a tag. ROLE_ADMIN.
updateTicket support:mutation:updateTicket Update ticket subject/description/priority/group/tags. ROLE_SUPPORT_AGENT/ROLE_ADMIN.
updateTrigger support:mutation:updateTrigger Update an automation trigger. ROLE_ADMIN.
updateView support:mutation:updateView Update a saved view. ROLE_ADMIN.