List tickets

Email tickets from a folder, with status, priority, assignee and department.

GET https://cotlet.dev/api/v1/tidio/tickets

read

Lists tickets of one Inbox folder: unassigned, my_open or solved. Each ticket has an ID, subject, contact, status (open, pending or solved), priority (low, normal or urgent), assignee and department. Messages are not included; use get_ticket for them. Pages hold up to 100 tickets; pass next_cursor back as cursor for the next page.

Parameters

Parameters: list_tickets
NameTypeDescription
folder enum enum unassigned, my_open or solved. Default: unassigned.
status enum enum open, pending or solved. Default: any.
limit integer integer 1 to 100. Default: 50.
cursor string string Next page cursor from the previous call.

Request

cURL
curl https://cotlet.dev/api/v1/tidio/tickets \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("tidio", "list_tickets")
Node.js
const result = await cotlet.call('tidio', 'list_tickets');
CLI
cotlet call tidio list_tickets

Example response

JSON

{
  "tickets": [
    {
      "ticket_id": 10477,
      "subject": "Charged twice for order 2290",
      "contact_email": "mark.dole@example.com",
      "status": "open",
      "priority": "normal",
      "assignee": null,
      "department": null
    },
    {
      "ticket_id": 10482,
      "subject": "When does my order ship?",
      "contact_email": "mark.dole@example.com",
      "status": "open",
      "priority": "normal",
      "assignee": null,
      "department": null
    }
  ],
  "next_cursor": null
}

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.