Get ticket

One ticket with its fields, tags and every update, staff replies, contact messages and private notes.

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

read

Returns subject, status, priority, category, contact, assignee, tags and all updates in order, oldest first. Each update says whether it is a contact message, a staff reply or a private note, and who wrote it. 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.

Request

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

Example response

JSON

{
  "ticket_id": 2011,
  "subject": "Export fails with an error",
  "status": "Awaiting customer",
  "priority": "Medium",
  "category": "Support",
  "contact": {
    "name": "Dana Whitfield",
    "email": "dana@example.com"
  },
  "assignee": "Sam Okafor",
  "tags": [
    "export",
    "web"
  ],
  "updates": [
    {
      "kind": "contact_message",
      "author": "Dana Whitfield",
      "body": "Export to CSV fails every time.",
      "created_at": "2026-10-15T08:55:00Z"
    },
    {
      "kind": "staff_reply",
      "author": "Sam Okafor",
      "body": "Sorry about that. What error text do you see after clicking Export?",
      "created_at": "2026-10-15T09: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.