Skip to content

Ticket Details

Retrieve detailed information about a support ticket.

Endpoint

INFO

GET /api/v1/dashboard/tickets/{ticket}

Headers

HeaderValueRequired
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeDescription
ticketintegerTicket ID

Example Request

bash
curl -X GET https://api.daakey.com/api/v1/dashboard/tickets/1 \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}"

Response

Success (200)

json
{
  "success": true,
  "message": "Ticket retrieved",
  "data": {
    "id": 1,
    "reference": "TK-2024-00001",
    "subject": "Vehicle not starting",
    "status": "in_progress",
    "priority": "high",
    "category": "vehicle_issue",
    "client": {
      "id": 1,
      "name": "John Doe",
      "email": "john@example.com",
      "phone": "+1234567890"
    },
    "booking": {
      "id": 50,
      "reference": "BK-2024-00050",
      "vehicle": {
        "id": 1,
        "plate_number": "ABC-123",
        "brand": "Toyota",
        "model": "Corolla"
      },
      "status": "active"
    },
    "assigned_to": {
      "id": 2,
      "name": "Support Agent"
    },
    "messages": [
      {
        "id": 1,
        "message": "I am unable to start the vehicle.",
        "sender": {
          "type": "client",
          "id": 1,
          "name": "John Doe"
        },
        "attachments": [],
        "created_at": "2024-01-15T10:00:00Z"
      },
      {
        "id": 2,
        "message": "We're dispatching a technician to your location.",
        "sender": {
          "type": "support",
          "id": 2,
          "name": "Support Agent"
        },
        "attachments": [],
        "created_at": "2024-01-15T10:15:00Z"
      }
    ],
    "created_at": "2024-01-15T10:00:00Z",
    "updated_at": "2024-01-15T11:00:00Z"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Daakey Car Sharing Platform