Get a ticket
Overview
Returns a ticket's full conversation, oldest message first. Use the numeric id from the ticket list as {ticket}, not the emailed reference such as #ABC-123456. That reference is returned as number. Each message includes its author, whether it is from support, and attachment download URLs. Tickets belonging to another account return 404.
Permissions
Requires the account permission tickets.read (View support tickets).
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Path parameters
The ticket number returned by the support endpoints.
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The id ID.
The ticket reference sent by email, such as #ABC-123456. Use the numeric ticket ID for API requests.
The subject line for the message.
The value of status.
The value of priority.
The value of department.
The date and time for opened at, in UTC.
The date and time for last replied at, in UTC.
Whether the customer is the one being waited on.
The value of closed.
The value of service.
The machine it is about, where the service names one. Enough of it to draw the badge the customer recognises and to link to it.
Show child attributesHide child attributes
The id ID.
The value of uuid_short.
The name shown to customers.
The fully qualified hostname.
The value of template_name.
The value of template_icon_url.
The value of windows.
The conversation, oldest first, and only where it was asked for.
Show child attributesHide child attributes
The id ID.
Staff are shown by whatever name the installation puts on their replies, which is often a role rather than a person and is the name the customer already sees in the ticket emails.
Whether the resource is staff.
A staff reply written by the AI assistant rather than a person.
The date and time for posted at, in UTC.
The message body.
The value of attachments.
Show child attributesHide child attributes
The value of index.
The value of filename.
The complete URL.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 404
- The resource was not found in the selected team. Resources in another account or team also return 404.
- 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown