Reply to ticket
Send a reply to the customer on the ticket.
POST https://cotlet.dev/api/v1/gorgias/tickets/{ticket_id}/replies
write Confirm
Sends a public message from you on the ticket channel, for example email. Gorgias sends it after the call returns, so a reply is queued, not yet delivered. You can set the status in the same call. 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 search_tickets. |
| body string required | string | Reply text. |
| set_status enum | enum | open or closed after sending. Default: unchanged. |
Request
curl -X POST https://cotlet.dev/api/v1/gorgias/tickets/1/replies \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"body"}' result = client.call("gorgias", "reply_to_ticket", {"ticket_id":1,"body":"body"}) const result = await cotlet.call('gorgias', 'reply_to_ticket', {"ticket_id":1,"body":"body"}); cotlet call gorgias reply_to_ticket --data '{"ticket_id":1,"body":"body"}' Example response
{
"ticket_id": 10482,
"message_id": 5530917,
"status": "queued",
"ticket_status": "closed"
}