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

Parameters: reply_to_ticket
NameTypeDescription
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
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"}'
Python
result = client.call("gorgias", "reply_to_ticket", {"ticket_id":1,"body":"body"})
Node.js
const result = await cotlet.call('gorgias', 'reply_to_ticket', {"ticket_id":1,"body":"body"});
CLI
cotlet call gorgias reply_to_ticket --data '{"ticket_id":1,"body":"body"}'

Example response

JSON

{
  "ticket_id": 10482,
  "message_id": 5530917,
  "status": "queued",
  "ticket_status": "closed"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.