Add Ticket Comment
Post a comment on an existing support ticket.
POST
/api/v1/tickets/comment/addDescription
Adds a message to the ticket thread. ticketId accepts MongoDB ObjectId or numeric ticketNumber.
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <access_token> | Yes |
| Content-Type | application/json | Yes |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ticketId | string | Yes | Ticket ID or ticket number. |
| message | string | Yes | Comment text (non-empty). |
| senderApp | string | No | resolve-now or resolve-it (default resolve-now). |
Example Request Body
{
"ticketId": "674a1b2c3d4e5f6789012345",
"message": "Please expedite the return label.",
"senderApp": "resolve-now"
}Response
Related Endpoints
Did this page help you?
Request
curl -X POST https://uat.unduit.com/api-exposed/api/v1/tickets/comment/add \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"ticketId": "674a1b2c3d4e5f6789012345",
"message": "Please expedite the return label.",
"senderApp": "resolve-now"
}'Success Response
{
"success": true,
"message": "Comment added successfully",
"data": {
"commentId": "674a1b2c3d4e5f6789012347",
"ticketId": "674a1b2c3d4e5f6789012345",
"ticketNumber": "10042",
"senderApp": "resolve-now",
"senderId": "42",
"senderName": "Jane Smith",
"message": "Please expedite the return label.",
"createdAt": "2026-06-03T11:00:00.000Z"
}
}