List Support Tickets
Retrieve a paginated list of support tickets.
Endpoint
INFO
GET /api/v1/dashboard/tickets
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
status | string | - | Filter: open, in_progress, resolved, closed |
priority | string | - | Filter: low, normal, high, critical |
category | string | - | Filter by category |
assigned_to | integer | - | Filter by assigned user |
page | integer | 1 | Page number |
per_page | integer | 15 | Items per page |
Example Request
bash
curl -X GET "https://api.daakey.com/api/v1/dashboard/tickets?status=open&priority=high" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Tickets retrieved",
"data": [
{
"id": 1,
"reference": "TK-2024-00001",
"subject": "Vehicle not starting",
"status": "open",
"priority": "high",
"category": "vehicle_issue",
"client": {
"id": 1,
"name": "John Doe",
"email": "john@example.com"
},
"booking": {
"id": 50,
"reference": "BK-2024-00050"
},
"assigned_to": null,
"messages_count": 3,
"last_message_at": "2024-01-15T11:00:00Z",
"created_at": "2024-01-15T10:00:00Z"
}
],
"meta": {
"current_page": 1,
"last_page": 5,
"per_page": 15,
"total": 72
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}