LemuAIDocs

Tickets · 2 min read

List and Search Tickets

List LemuTickets tickets a page at a time, filtered with simple parameters or a TQL query

Open in ChatGPTOpen in ClaudeMarkdown

Returns the tickets you can see, a page at a time. Filter with the simple parameters, with a TQL query in q, or both. All filters are combined with AND.

GET/v1/tickets

Needs the tickets.read scope. Deleted tickets are never returned.

Query parameters#

NameTypeRequiredDescription
qstringNoA TQL query, for example project = SUP AND priority in (p1, p2). May end with ORDER BY.
projectstringNoOnly tickets in this project (key or id).
status_categorystringNoComma-separated status categories: new, open, waiting, done.
assigneestringNome (the caller), none (unassigned), or a user id or email.
requester_idstring (UUID)NoOnly this requester's tickets.
view_idstring (UUID)NoUse the query and sort of a saved view from the app.
limitintegerNoTickets per page, 1 to 200. Default 50.
cursorstringNoThe next_cursor from the previous page. See pagination.
with_totalbooleanNoAlso count all matching tickets in total. Default false. Leave it off when you don't need it; it makes the request slower.

Without ORDER BY in q, the most recently updated tickets come first.

Example request:

cURL
curl -G https://api.tickets.lemuai.com/v1/tickets \
  -H "Authorization: Bearer ltk_live_your_api_key" \
  --data-urlencode "project=SUP" \
  --data-urlencode "status_category=new,open,waiting" \
  --data-urlencode "q=requester = \"priya@example.com\" ORDER BY created DESC" \
  --data-urlencode "limit=25" \
  --data-urlencode "with_total=true"

To sync every ticket that changed since your last run:

cURL
curl -G https://api.tickets.lemuai.com/v1/tickets \
  -H "Authorization: Bearer ltk_live_your_api_key" \
  --data-urlencode "q=updated >= \"2026-11-24T00:00:00+00:00\" ORDER BY updated ASC" \
  --data-urlencode "limit=200"

Response#

200

JSON
{
  "data": [
    {
      "id": "2f9c7e1a-5b3d-4c8e-9a6f-1d0e2b4c6a8f",
      "key": "SUP-1042",
      "number": 1042,
      "project": { "id": "3b0f6c1e-8a2d-4f5b-9c71-0e4d2a6b8f13", "key": "SUP", "name": "Customer Support" },
      "type": { "id": "9d2e4f60-1b3a-4c8d-a7e5-6f0b2c9d1e47", "name": "Complaint", "icon": "message-square-warning", "color": "red" },
      "title": "Refund not received for order 58213",
      "status": { "id": "5c8a1d3e-7f2b-4e6a-9b0c-d4e1f2a3b5c6", "name": "Open", "category": "open", "color": "blue" },
      "status_category": "open",
      "priority": "p2",
      "requester": {
        "id": "8b4d6f2a-0c1e-4a3b-9d5f-7e6a8c0b2d4f",
        "name": "Priya Sharma",
        "email": "priya@example.com",
        "phone": "+919876543210",
        "is_vip": false,
        "account_id": "4a6c8e0b-2d1f-4b3a-8c5e-9f7d1b3a5c6e"
      },
      "assignee": {
        "id": "0e2a4c6b-8d1f-4a3e-9b5c-7d9f1a3c5e7b",
        "name": "Arjun Mehta",
        "email": "arjun@yourcompany.com",
        "avatar_url": null
      },
      "team": { "id": "1c3e5a7b-9d2f-4e6a-b8c0-a2e4f6b8d0c1", "name": "L1 Support" },
      "sla_next_due_at": "2026-11-25T13:12:40.512000+00:00",
      "sla_breached": false,
      "external_id": "ERP-CMP-58213",
      "version": 4,
      "created_at": "2026-11-25T09:12:40.512000+00:00",
      "updated_at": "2026-11-25T09:30:02.114210+00:00"
    }
  ],
  "next_cursor": null,
  "total": 1
}
FieldTypeDescription
dataarrayThe tickets on this page. Each one is a full ticket object; the example above is shortened.
next_cursorstring or nullPass as cursor for the next page. null on the last page.
totalinteger or nullAll matching tickets, when with_total=true. Otherwise null.

Errors#

StatuscodeWhen
404not_foundview_id does not exist
422tql_syntax, tql_field, tql_value, tql_operator, tql_orderThe TQL query is invalid. message says what is wrong and data.position where
422invalid_fieldslimit is out of range or a parameter has the wrong type

Was this page helpful?