List Support Tickets
Retrieve a list of all support tickets you've created, including their current status and latest messages. This endpoint powers the "Support" or "Help" section of the mobile app where users can track their open issues and view conversation history.
Support tickets are the primary way for users to communicate with agency customer service about issues such as:
- Vehicle problems during a rental
- Billing questions or disputes
- Account and verification issues
- Feedback and general inquiries
The response includes an unread count for each ticket, making it easy to display badges or notifications when the agency has responded.
Endpoint
INFO
GET /api/v1/client/tickets
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
X-Agency-Signature | {signature} | Yes |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
status | string | - | Filter: open, in_progress, resolved, closed |
page | integer | 1 | Page number |
per_page | integer | 15 | Items per page |
Example Request
bash
curl -X GET "https://api.daakey.com/api/v1/client/tickets?status=open" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}" \
-H "X-Agency-Signature: {signature}"Response
Success (200)
json
{
"success": true,
"message": "Tickets retrieved",
"data": [
{
"id": 1,
"reference": "TK-2024-00001",
"subject": "Vehicle not starting",
"status": "in_progress",
"priority": "high",
"category": "vehicle_issue",
"last_message": "Our technician is on the way...",
"last_message_at": "2024-01-15T11:00:00Z",
"unread_count": 2,
"created_at": "2024-01-15T10:00:00Z"
},
{
"id": 2,
"reference": "TK-2024-00002",
"subject": "Billing question",
"status": "resolved",
"priority": "low",
"category": "billing",
"last_message": "Thank you for your patience...",
"last_message_at": "2024-01-14T15:00:00Z",
"unread_count": 0,
"created_at": "2024-01-14T10:00:00Z"
}
],
"meta": {
"agency_id": 123,
"agency_code": "AGENCY123",
"current_page": 1,
"last_page": 1,
"per_page": 15,
"total": 2
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}Ticket Status Values
| Status | Description |
|---|---|
open | New ticket, awaiting response |
in_progress | Being handled by support |
resolved | Issue resolved |
closed | Ticket closed |