LemuAIDocs

Accounts · 2 min read

List Accounts

List and search the customer accounts (companies) in LemuTickets

Open in ChatGPTOpen in ClaudeMarkdown

An account is a customer company, such as a distributor, dealer or business customer. Requesters belong to an account, and tickets carry the requester's account. This endpoint returns accounts a page at a time, sorted by name, with how many open tickets each one has.

GET/v1/accounts

Needs the requesters.read scope.

Query parameters#

NameTypeRequiredDescription
qstringNoSearch. Matches part of the name, or the exact external_id.
limitintegerNoAccounts per page, up to 200. Default 50.
cursorstringNoThe next_cursor from the previous page. See pagination.

Example request:

cURL
curl -G https://api.tickets.lemuai.com/v1/accounts \
  -H "Authorization: Bearer ltk_live_your_api_key" \
  --data-urlencode "q=sharma"

Response#

200

JSON
{
  "data": [
    {
      "id": "4a6c8e0b-2d1f-4b3a-8c5e-9f7d1b3a5c6e",
      "name": "Sharma Traders",
      "domains": ["sharmatraders.in"],
      "tier": "premium",
      "owner_user_id": "0e2a4c6b-8d1f-4a3e-9b5c-7d9f1a3c5e7b",
      "phone": "+918041234567",
      "address": "14 MG Road",
      "city": "Bengaluru",
      "region": "Karnataka",
      "notes": "",
      "health": "good",
      "external_id": "DIST-0412",
      "custom_fields": { "gstin": "29ABCDE1234F1Z5" },
      "created_at": "2026-10-02T11:20:45.000000+00:00",
      "open_tickets": 3
    }
  ],
  "next_cursor": null
}
FieldTypeDescription
idstringThe account's id.
namestringCompany name.
domainsarray of stringsEmail domains. New requesters with an email at one of these domains join the account automatically.
tierstringstandard, premium or enterprise. Use it in TQL as account.tier.
owner_user_idstring or nullThe team member who owns the relationship.
phone, address, city, regionstring or nullContact details.
notesstringFree-text notes.
healthstring or nullgood, at_risk or unhappy, when set.
external_idstring or nullYour own id for the account, for example the customer code in your ERP.
custom_fieldsobjectExtra values.
created_atstringWhen the account was created.
open_ticketsintegerTickets on the account that are not done.
next_cursorstring or nullPass as cursor for the next page. null on the last page.

Errors#

StatuscodeWhen
403missing_capabilityThe key does not have requesters.read
422invalid_fieldslimit is over 200

Was this page helpful?