Skip to content

Support API

The support service handles customer support tickets, message threads, and notifications.

User Endpoints

List My Tickets

GET /tickets?limit=20&offset=0

Returns the authenticated user’s tickets in reverse chronological order.

Response:

{
"ok": true,
"data": [
{
"id": "ticket-id",
"subject": "Cannot access dashboard",
"status": "open",
"priority": "medium",
"created_at": "2026-04-15T10:00:00Z",
"updated_at": "2026-04-15T12:00:00Z"
}
]
}

Create Ticket

POST /tickets
{
"subject": "Cannot access dashboard",
"message": "I'm getting a 403 error when trying to access my dashboard.",
"priority": "medium"
}

Get Ticket with Messages

GET /tickets/:id

Returns the ticket details including the full message thread.

Reply to Ticket

POST /tickets/:id/messages
{
"content": "I've tried clearing my cookies but the issue persists."
}

Close Ticket

PUT /tickets/:id/close

Reopen Ticket

PUT /tickets/:id/reopen

Ticket Fields

FieldTypeDescription
subjectstringBrief description of the issue
priorityenumlow, medium, high, urgent
statusenumopen, in_progress, closed

Admin Endpoints

Admins can manage all tickets through the admin console:

MethodPathDescription
GET/admin/ticketsList all tickets with filtering
GET/admin/tickets/:idGet ticket details
POST/admin/tickets/:id/replyAdmin reply to ticket
PUT/admin/tickets/:id/statusChange ticket status
PUT/admin/tickets/:id/priorityChange ticket priority