Open a support ticket
Overview
Opens a support ticket and returns it with its conversation. Send department_id from the department list, message and priority (Low, Medium or High). subject is optional: without one, a short subject is written from the message. Use service_id to identify the related service. You can include up to 5 files in attachments[], limited to 4 MB each and 8 MB total. Ticket creation has a separate, stricter rate limit than ticket reads.
Permissions
Requires the account permission tickets.write (Write to support).
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>.
Body
multipart/form-dataThe department id ID.
1 to 4294967295
The subject line for the message.
3 to 255 characters
Must match ^[^\p{C}]+$
The message text.
2 to 20000 characters
The value of priority.
One of: Low, Medium, High
The service id ID.
1 to 4294967295
The value of attachments.
At most 5 items
Response 201
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
- 400
- Support is unavailable or the selected department cannot accept this ticket.
- 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.
- 422
- A field is missing or invalid, or the resource cannot accept this change in its current state. Check
messagefor details. Field validation also includes anerrorsobject keyed by field name. - 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