Get ticket

One ticket with its messages and internal notes in order.

GET https://cotlet.dev/api/v1/gorgias/tickets/{ticket_id}

read

Returns the ticket fields and every message, oldest first, each marked as from the customer, from an agent or an internal note. Reading a ticket does not change it. Attachments are listed by name and link.

Parameters

Parameters: get_ticket
NameTypeDescription
ticket_id integer required integer Ticket ID from search_tickets.

Request

cURL
curl https://cotlet.dev/api/v1/gorgias/tickets/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("gorgias", "get_ticket", {"ticket_id":1})
Node.js
const result = await cotlet.call('gorgias', 'get_ticket', {"ticket_id":1});
CLI
cotlet call gorgias get_ticket --data '{"ticket_id":1}'

Example response

JSON

{
  "ticket_id": 10482,
  "subject": "Where is my order #4471?",
  "status": "open",
  "priority": "normal",
  "assignee": null,
  "tags": [
    "shipping"
  ],
  "messages": [
    {
      "from": "customer",
      "type": "email",
      "body": "Hi, my order #4471 shipped a week ago and has not arrived. Can you check?",
      "sent_at": "2026-10-16T21:14:00Z"
    }
  ]
}

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.