GetSupportX
Developer reference

Tickets API

Create, list, read and reply to tickets in your workspace from your own code. JSON in, JSON out, one API key.

Basics

API basics
Base URLhttps://getsupportx.com/api/v1
FormatJSON requests and responses
ErrorsAlways { "error": "what went wrong" } with a matching status code
Rate limit120 requests a minute for each key
OpenAPI/api/v1/openapi.json

Authentication

A workspace admin creates an API key in the workspace's settings. Send it on every request as a Bearer token. A key belongs to one workspace and can only see that workspace's tickets.

Request header
Authorization: Bearer gsx_...

Each key carries scopes: tickets:read to list and read, and tickets:write to create and reply.

Authentication errors
StatusMeaning
401The key is missing, revoked or expired.
403The key lacks the scope, the workspace is not active, or its plan does not include the API.
429More than 120 requests in a minute for this key. Wait, then retry.

Keep the key on your server

Anyone holding the key can read and write your tickets. Never put it in a web page, a mobile app or a public repository.

List tickets

GET /tickets returns tickets with the most recent activity first.

List query parameters
QueryMeaning
statusOne of OPEN, PENDING, ON_HOLD, SOLVED, CLOSED. An unknown value is ignored.
qFree text over the subject and the requester.
limit1 to 100. Default 50.
Example
curl "https://getsupportx.com/api/v1/tickets?status=OPEN&limit=20" \
  -H "Authorization: Bearer $GSX_API_KEY"

The response is { "tickets": [ … ] }. Each ticket has the fields shown under Create a ticket.

Create a ticket

POST /tickets files a ticket "via API". Your team is notified and the ticket.created webhook fires, exactly as for a ticket that arrived by email.

Create ticket fields
FieldRequiredNotes
subjectYesUp to 200 characters.
requesterEmailYesThe customer's email address.
bodyYesThe first message. Up to 10,000 characters.
requesterNameNoThe customer's name.
priorityNoOne of LOW, NORMAL, HIGH, URGENT. An unknown value is an error, not a silent default.
openingNocustomer (default) files the body as the customer's own message. agent files it as a public message from your team, for a ticket you open on someone's behalf.
sendEmailNoOnly with opening: "agent". true emails the opening message to the customer. Off by default.
Example
curl -X POST "https://getsupportx.com/api/v1/tickets" \
  -H "Authorization: Bearer $GSX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Cannot log in",
    "requesterEmail": "[email protected]",
    "requesterName": "Sam Customer",
    "body": "I get an error when I sign in.",
    "priority": "NORMAL"
  }'
Response, 201 Created
{
  "ticket": {
    "id": "…",
    "number": 1042,
    "subject": "Cannot log in",
    "status": "OPEN",
    "priority": "NORMAL",
    "channel": "API",
    "requester": { "id": "…", "email": "[email protected]", "name": "Sam Customer" },
    "assignee": null,
    "lastMessageAt": "…",
    "lastActivityAt": "…",
    "createdAt": "…",
    "updatedAt": "…"
  }
}

Read a ticket

GET /tickets/{id} returns the ticket, its tags and every message in the thread. Use the ticket's id, not its number.

Example
curl "https://getsupportx.com/api/v1/tickets/TICKET_ID" \
  -H "Authorization: Bearer $GSX_API_KEY"

Internal notes are included

A message with isInternal: true is a private note from your team. Do not show it to the customer.

Reply to a ticket

POST /tickets/{id}/reply adds a message signed "API".

Reply fields
FieldRequiredNotes
bodyYesUp to 10,000 characters.
isInternalNotrue stores a private note. Nothing is sent to the customer.
sendEmailNoA public reply is emailed to the customer by default. false stores it without sending.
Example
curl -X POST "https://getsupportx.com/api/v1/tickets/TICKET_ID/reply" \
  -H "Authorization: Bearer $GSX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "body": "Thanks, we are looking into it." }'
  • The response is { "message": { … }, "delivery": { "status": "…", "reason": "…" } }. Read delivery to learn whether the email went out.
  • A reply to a merged ticket lands on the ticket it was merged into.
  • 409 means the ticket was merged and its target could not be found.

Webhooks

To hear about tickets instead of polling, add a webhook in your workspace's settings. Events are sent when a ticket is created or replied to. Each request is signed with HMAC-SHA256 in the X-GSX-Signature header, so you can check it came from us.

Read next