Skip to content
gist.link ↗

createTicket

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

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.

support:mutation:createTicket

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 {
createTicket(input: CreateTicketInput!): Ticket!
}
Argument Type Required Description
input CreateTicketInput! Yes —

Ticket! — 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 CreateTicket($input: CreateTicketInput!) { createTicket(input: $input) { id subject status created_at updated_at } }",
"variables": {
"input": {
"subject": "example"
}
}
}
JSON