Get ticket

One ticket with its fields, tags and every comment, public and internal.

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

read

Returns one ticket with subject, status, priority, requester, assignee, group, tags and all comments in order, oldest first. Each comment says whether it is public or an internal note and who wrote it. The first comment is the description. Use it before replying so your agent sees the whole thread.

Parameters

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

Request

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

Example response

JSON

{
  "ticket_id": 48102,
  "subject": "Export fails with an error",
  "status": "pending",
  "priority": "normal",
  "requester": {
    "name": "Dana Whitfield",
    "email": "dana@example.com"
  },
  "assignee": "Sam Okafor",
  "group": "Support",
  "tags": [
    "export",
    "web"
  ],
  "updated_at": "2026-10-12T09:30:00Z",
  "comments": [
    {
      "comment_id": 9120001204,
      "author": "Dana Whitfield",
      "public": true,
      "body": "Export to CSV fails every time.",
      "created_at": "2026-10-12T08:55:00Z"
    },
    {
      "comment_id": 9120001877,
      "author": "Sam Okafor",
      "public": true,
      "body": "Sorry about that. What error text do you see after clicking Export?",
      "created_at": "2026-10-12T09:30: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.