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
| Name | Type | Description |
|---|---|---|
| ticket_id integer required | integer | Ticket ID from search_tickets. |
Request
curl https://cotlet.dev/api/v1/happyfox/tickets/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("happyfox", "get_ticket", {"ticket_id":1}) const result = await cotlet.call('happyfox', 'get_ticket', {"ticket_id":1}); cotlet call happyfox get_ticket --data '{"ticket_id":1}' Example response
{
"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"
}
]
}