Tickets · 2 min read
List and Search Tickets
List LemuTickets tickets a page at a time, filtered with simple parameters or a TQL query
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/ticketsNeeds the tickets.read scope. Deleted tickets are never returned.
Query parameters#
| Name | Type | Required | Description |
|---|---|---|---|
q | string | No | A TQL query, for example project = SUP AND priority in (p1, p2). May end with ORDER BY. |
project | string | No | Only tickets in this project (key or id). |
status_category | string | No | Comma-separated status categories: new, open, waiting, done. |
assignee | string | No | me (the caller), none (unassigned), or a user id or email. |
requester_id | string (UUID) | No | Only this requester's tickets. |
view_id | string (UUID) | No | Use the query and sort of a saved view from the app. |
limit | integer | No | Tickets per page, 1 to 200. Default 50. |
cursor | string | No | The next_cursor from the previous page. See pagination. |
with_total | boolean | No | Also 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 -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 -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
{
"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
}| Field | Type | Description |
|---|---|---|
data | array | The tickets on this page. Each one is a full ticket object; the example above is shortened. |
next_cursor | string or null | Pass as cursor for the next page. null on the last page. |
total | integer or null | All matching tickets, when with_total=true. Otherwise null. |
Errors#
| Status | code | When |
|---|---|---|
404 | not_found | view_id does not exist |
422 | tql_syntax, tql_field, tql_value, tql_operator, tql_order | The TQL query is invalid. message says what is wrong and data.position where |
422 | invalid_fields | limit is out of range or a parameter has the wrong type |
Was this page helpful?
Docs