Reply to ticket
Send a reply to the customer from the ticket, with the send status you choose.
POST https://cotlet.dev/api/v1/edesk/tickets/{ticket_id}/replies
Types a reply in the Reply box of the ticket and clicks Send. The customer gets it on the channel the ticket came from, for example the marketplace messaging or email. send_status is the status the ticket takes after sending: to_do, waiting or resolved. Without it eDesk applies your user setting, and a customer reply reopens a resolved ticket. The tool sends plain text and does not fill snippets, so write the final text. Cotlet has no tool to unsend a message. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| ticket_id integer required | integer | Ticket ID from list_tickets, the number eDesk shows as Ticket ID. |
| body string required | string | Reply text, sent to the customer. |
| send_status enum | enum | to_do, waiting or resolved. Default: your eDesk send status setting. |
Request
curl -X POST https://cotlet.dev/api/v1/edesk/tickets/48210/replies \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"Hi Emma, your order 203-7718305-2294466 was dispatched on 9 October with Royal Mail. Tracking code: HB204418830GB. It should reach you by 14 October. Reply here if it has not arrived by then.","send_status":"waiting"}' result = client.call("edesk", "reply_to_ticket", {"ticket_id":48210,"body":"Hi Emma, your order 203-7718305-2294466 was dispatched on 9 October with Royal Mail. Tracking code: HB204418830GB. It should reach you by 14 October. Reply here if it has not arrived by then.","send_status":"waiting"}) const result = await cotlet.call('edesk', 'reply_to_ticket', {"ticket_id":48210,"body":"Hi Emma, your order 203-7718305-2294466 was dispatched on 9 October with Royal Mail. Tracking code: HB204418830GB. It should reach you by 14 October. Reply here if it has not arrived by then.","send_status":"waiting"}); cotlet call edesk reply_to_ticket --data '{"ticket_id":48210,"body":"Hi Emma, your order 203-7718305-2294466 was dispatched on 9 October with Royal Mail. Tracking code: HB204418830GB. It should reach you by 14 October. Reply here if it has not arrived by then.","send_status":"waiting"}' Example response
{
"message_id": 771209,
"ticket_id": 48210,
"kind": "reply",
"status": "waiting",
"sent_at": "2026-10-20 09:05:00"
}