Skip to content

Create Support Ticket

Create a support ticket on behalf of a client.

Endpoint

INFO

POST /api/v1/dashboard/tickets

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Request Body

ParameterTypeRequiredDescription
client_idintegerYesClient ID
subjectstringYesTicket subject
messagestringYesInitial message
categorystringYesTicket category
prioritystringNoPriority level
booking_idintegerNoRelated booking ID

Example Request

bash
curl -X POST https://api.daakey.com/api/v1/dashboard/tickets \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}" \
  -d '{
    "client_id": 1,
    "subject": "Follow-up on vehicle issue",
    "message": "Following up on the reported vehicle issue from call.",
    "category": "vehicle_issue",
    "priority": "normal",
    "booking_id": 50
  }'

Response

Success (201)

json
{
  "success": true,
  "message": "Ticket created",
  "data": {
    "id": 10,
    "reference": "TK-2024-00010",
    "subject": "Follow-up on vehicle issue",
    "status": "open",
    "priority": "normal",
    "category": "vehicle_issue",
    "client": {
      "id": 1,
      "name": "John Doe"
    },
    "created_by": {
      "id": 2,
      "name": "Support Agent"
    },
    "created_at": "2024-01-15T12:00:00Z"
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Daakey Car Sharing Platform