Get ticket

One ticket with its details, tags and every comment, public and technician-only.

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

read

Returns one ticket with subject, body, status, priority, category, submitter, company, assigned technician, due date, time spent, tags and all comments in order, oldest first. Each comment says who wrote it and whether it is for technicians only. System entries such as status changes are marked as system. Use it before replying or closing so your agent sees the whole thread.

Parameters

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

Request

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

Example response

JSON

{
  "ticket_id": 4871,
  "subject": "Invoice copy",
  "body": "Hi, could you resend the invoice for September?",
  "status": "In process",
  "priority": "Normal",
  "category": "Billing",
  "submitter": {
    "name": "Dana Whitfield",
    "email": "dana@example.com",
    "company": "Whitfield Print"
  },
  "assigned_to": "Priya Nair",
  "due_date": null,
  "tags": [
    "invoice"
  ],
  "created_at": "2026-10-01T09:12:00Z",
  "last_updated": "2026-10-01T10:30:00Z",
  "comments": [
    {
      "comment_id": 90112,
      "author": "Priya Nair",
      "for_techs_only": false,
      "system": false,
      "body": "Hi Dana, the invoice is attached.",
      "created_at": "2026-10-01T10: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.