Add reply to a ticket

POST/api/tickets/reply/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number Ticket unique ID.
message String Mandatory Reply message.
admin Number optional Optional Staff ID (if provided, reply is from staff member).
status Number optional Optional Ticket status after reply (default: 1 for customer, 3 for staff).
cc String optional Optional CC email addresses.
file File optional Optional File attachments.
curl -X POST "https://yoursite.com/api/tickets/reply/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "message": "..." }'

Success-Response:

HTTP/1.1 200 OK
{
  "status": true,
  "message": "Ticket Reply Added Successful.",
  "reply_id": 123
}

Error-Response:

HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "Ticket Reply Fail."
}
MethodPOST
Path/api/tickets/reply/{id}
GroupTickets
Sincev0.0.0
Defined inmodules/api/controllers/Tickets.php