Reply to ticket
Send a public reply or an internal note on a ticket.
POST https://cotlet.dev/api/v1/tidio/tickets/{ticket_id}/replies
write Confirm
Adds a message to a ticket as you. A public reply is emailed to the customer; an internal note stays with your team and reaches no one. Pass the text in body. 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. |
| body string required | string | Message text. |
| visibility enum | enum | public or internal. Default: public. |
Request
curl -X POST https://cotlet.dev/api/v1/tidio/tickets/10482/replies \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"Hi Mark, your order ships within 2 business days and you will get a tracking link by email. Reply here if it has not arrived by Friday.","visibility":"public"}' result = client.call("tidio", "reply_to_ticket", {"ticket_id":10482,"body":"Hi Mark, your order ships within 2 business days and you will get a tracking link by email. Reply here if it has not arrived by Friday.","visibility":"public"}) const result = await cotlet.call('tidio', 'reply_to_ticket', {"ticket_id":10482,"body":"Hi Mark, your order ships within 2 business days and you will get a tracking link by email. Reply here if it has not arrived by Friday.","visibility":"public"}); cotlet call tidio reply_to_ticket --data '{"ticket_id":10482,"body":"Hi Mark, your order ships within 2 business days and you will get a tracking link by email. Reply here if it has not arrived by Friday.","visibility":"public"}' Example response
{
"ticket_id": 10482,
"visibility": "public",
"status": "sent",
"url": "https://www.tidio.com/panel/inbox/tickets/10482"
}