Skip to main content

Tickets

These endpoints let you open support tickets, read them, reply to them and delete them. Tickets belong to your account.

None of these endpoints need a subuser permission. All of them require the tickets module to be enabled. While it is disabled they return 400 with the detail The tickets module is currently disabled. (Create a ticket uses its own message). The module is disabled by default.

List tickets​

GET /api/client/account/tickets

Returns every ticket you created. The list is not paginated.

curl "https://panel.example.com/api/client/account/tickets?include=messages" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json"

Query parameters​

ParameterTypeRequiredDescription
includestringNomessages: the messages on each ticket. See includes.

Response​

200 OK

{
"object": "list",
"data": [
{
"object": "ticket",
"attributes": {
"id": 7,
"title": "Server won't start",
"status": "pending",
"created_at": "2026-11-24T09:00:00+00:00",
"updated_at": "2026-11-24T09:00:00+00:00"
}
}
]
}
AttributeTypeDescription
idintegerThe ticket ID. Use it in the paths below.
titlestring
statusstringOne of pending, in-progress, unresolved, resolved. New tickets are pending.
created_atstringISO 8601.
updated_atstringISO 8601. Adding a message does not change it.

Create a ticket​

POST /api/client/account/tickets

Opens a new ticket. The message becomes the ticket's first message.

Request body​

JSON body.

FieldTypeRequiredDescription
titlestringYes3 to 191 characters.
messagestringYes1 to 4000 characters.

Response​

200 OK

{
"object": "ticket",
"attributes": {
"id": 8,
"title": "Billing question",
"status": "pending",
"created_at": "2026-11-26T11:02:17+00:00",
"updated_at": "2026-11-26T11:02:17+00:00"
}
}

The messages include is supported here too.

Logs the activity event user:ticket.create.

Errors​

StatusWhen
400The tickets module is disabled. detail: You cannot create a ticket as the module is disabled.
400You already have the maximum number of tickets. detail: You have reached the ticket count per user of <max>.

The tickets module is disabled by default. The maximum number of tickets per user defaults to 3. Both are set by an administrator (environment defaults: TICKETS_ENABLED, TICKETS_MAX_COUNT). Every ticket you have counts towards the limit, whatever its status. Delete tickets to free up space.

View a ticket​

GET /api/client/account/tickets/{ticket}

Returns one of your tickets.

Path parameters​

ParameterDescription
ticketThe ticket's numeric id.

Query parameters​

ParameterTypeRequiredDescription
includestringNomessages: the messages on the ticket.

Response​

200 OK

{
"object": "ticket",
"attributes": {
"id": 7,
"title": "Server won't start",
"status": "in-progress",
"created_at": "2026-11-24T09:00:00+00:00",
"updated_at": "2026-11-24T10:30:00+00:00",
"relationships": {
"messages": {
"object": "list",
"data": [
{
"object": "ticket_messages",
"attributes": {
"id": 15,
"message": "My server crashes on boot.",
"author": {
"uuid": "5d2f6a8e-3a4b-4c1d-9e7f-0a1b2c3d4e5f",
"email": "jane@example.com"
},
"created_at": "2026-11-24T09:00:00+00:00",
"updated_at": "2026-11-24T09:00:00+00:00"
}
}
]
}
}
}
}

The ticket_messages attributes:

AttributeTypeDescription
idintegerThe message ID.
messagestringThe message text.
authorobject or nullThe user who wrote the message (you, or a staff member who replied). See below.
created_atstringISO 8601.
updated_atstringISO 8601.

author is null if the author's account no longer exists. Otherwise it has two keys:

KeyTypeDescription
uuidstringThe author's user UUID.
emailstring or nullThe author's email address if the author is you, otherwise null. Staff email addresses are never returned.

Errors​

StatusWhen
404No ticket has that ID, or the ticket belongs to another user. Both cases return the same response.

Add a message​

POST /api/client/account/tickets/{ticket}/messages

Adds a message to one of your tickets. Messages can be added whatever the ticket's status, including resolved.

Path parameters​

ParameterDescription
ticketThe ticket's numeric id.

Request body​

JSON body.

FieldTypeRequiredDescription
messagestringYes1 to 4000 characters.

Response​

200 OK

Returns the ticket in the same format as View a ticket. Use ?include=messages to get the messages, including the new one.

No activity event is logged.

Errors​

StatusWhen
404No ticket has that ID, or the ticket belongs to another user. Both cases return the same response.

Delete a ticket​

DELETE /api/client/account/tickets/{ticket}

Deletes one of your tickets and all of its messages.

Path parameters​

ParameterDescription
ticketThe ticket's numeric id.

Response​

204 No Content

Logs the activity event user:ticket.delete with the property identifier (the ticket ID).

Errors​

StatusWhen
404No ticket has that ID, or the ticket belongs to another user. Both cases return the same response.