Support API
The support service handles customer support tickets, message threads, and notifications.
User Endpoints
List My Tickets
GET /tickets?limit=20&offset=0Returns 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/:idReturns 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/closeReopen Ticket
PUT /tickets/:id/reopenTicket Fields
| Field | Type | Description |
|---|---|---|
subject | string | Brief description of the issue |
priority | enum | low, medium, high, urgent |
status | enum | open, in_progress, closed |
Admin Endpoints
Admins can manage all tickets through the admin console:
| Method | Path | Description |
|---|---|---|
GET | /admin/tickets | List all tickets with filtering |
GET | /admin/tickets/:id | Get ticket details |
POST | /admin/tickets/:id/reply | Admin reply to ticket |
PUT | /admin/tickets/:id/status | Change ticket status |
PUT | /admin/tickets/:id/priority | Change ticket priority |