LemuAIDocs

Tickets · 4 min read

The Ticket Object

The fields of a LemuTickets ticket, as returned by every ticket endpoint and webhook

Open in ChatGPTOpen in ClaudeMarkdown

A ticket is one complaint, request, task, incident or question, with an owner, a status, a deadline and a full history. Every ticket belongs to a project (for example SUP) and gets a key from it (SUP-1042). Wherever an endpoint takes {ref}, you can pass the key or the ticket's id.

MethodEndpointPurpose
POST/v1/ticketsCreate a ticket
GET/v1/ticketsList and search tickets
GET/v1/tickets/{ref}Get a ticket
PATCH/v1/tickets/{ref}Update a ticket
GET/v1/tickets/{ref}/transitionsList available transitions
POST/v1/tickets/{ref}/transitionsTransition a ticket to another status
POST/v1/tickets/{ref}/commentsAdd a comment: a reply or an internal note
GET/v1/tickets/{ref}/commentsList comments
POST/v1/tickets/{ref}/worklogsLog work
POST/v1/tickets/{ref}/linksLink tickets

Example#

JSON
{
  "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",
  "description": "Customer paid on 12 November and the order was cancelled the same day.",
  "status": { "id": "5c8a1d3e-7f2b-4e6a-9b0c-d4e1f2a3b5c6", "name": "Open", "category": "open", "color": "blue" },
  "status_category": "open",
  "priority": "p2",
  "severity": null,
  "source": "api",
  "source_ref": null,
  "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"
  },
  "account_id": "4a6c8e0b-2d1f-4b3a-8c5e-9f7d1b3a5c6e",
  "assignee": null,
  "team": { "id": "1c3e5a7b-9d2f-4e6a-b8c0-a2e4f6b8d0c1", "name": "L1 Support" },
  "reporter": {
    "id": "d1f3b5a7-c9e2-4b4d-8f6a-0c2e4a6b8d0f",
    "name": "API: ERP sync",
    "email": "ltk_live_ab12cd34@bots.lemutickets",
    "avatar_url": null
  },
  "parent_id": null,
  "labels": ["refund"],
  "due_at": null,
  "restricted": false,
  "sla": {
    "policy_id": "7e9a1c3b-5d2f-4a6e-8b0c-1d3f5a7c9e2b",
    "targets": {
      "first_response": {
        "minutes": 240.0,
        "business_hours": true,
        "status": "running",
        "started_at": "2026-11-25T09:12:40.512000+00:00",
        "due_at": "2026-11-25T13:12:40.512000+00:00",
        "met_at": null,
        "breached_at": null
      }
    },
    "paused": false,
    "next_due_at": "2026-11-25T13:12:40.512000+00:00",
    "breached": false
  },
  "sla_next_due_at": "2026-11-25T13:12:40.512000+00:00",
  "sla_breached": false,
  "escalation_level": 0,
  "first_response_at": null,
  "resolved_at": null,
  "closed_at": null,
  "reopened_count": 0,
  "csat_score": null,
  "time_spent_minutes": 0,
  "estimate_minutes": null,
  "custom_fields": { "order_id": "58213" },
  "ai": {},
  "lemu": {},
  "channel_thread": {},
  "external_id": "ERP-CMP-58213",
  "merged_into_id": null,
  "version": 3,
  "created_at": "2026-11-25T09:12:40.512000+00:00",
  "updated_at": "2026-11-25T09:12:41.087000+00:00"
}

Ticket fields#

FieldTypeDescription
idstring (UUID)The ticket's id.
keystringThe project key and number, for example SUP-1042.
numberintegerThe number within the project.
projectobjectid, key and name of the project.
typeobjectThe ticket type: id, name, icon, color. Types are set up per project, for example Complaint, Request, Question, Incident and Task.
titlestringUp to 500 characters.
descriptionstringThe body of the ticket.
statusobjectThe current status: id, name, category, color. Status names differ per project.
status_categorystringThe group the status belongs to: new, open, waiting or done. Use this, not the status name, to tell whether a ticket is finished.
prioritystringp1 (most urgent) to p4.
severitystring or nullOptional severity, for incidents.
sourcestringWhere the ticket came from: voice, whatsapp, web_chat, email, slack, teams, api, portal, web_form, manual, lemu_copilot, automation or journey.
source_refstring or nullAn id in the source system, such as a message or call id. Prevents duplicates (see Create a ticket).
requesterobject or nullThe customer who raised it: id, name, email, phone, is_vip, account_id. Email and phone are partly hidden without the pii.read scope.
account_idstring or nullThe requester's account (the customer company).
assigneeobject or nullThe assigned person: id, name, email, avatar_url.
teamobject or nullThe assigned team: id, name.
reporterobject or nullWho created the ticket, in the same shape as assignee. For API keys this is the key's own user.
parent_idstring or nullThe parent ticket, for sub-tasks.
labelsarray of stringsLabels, sorted.
due_atstring or nullThe due date you set (separate from SLA deadlines).
restrictedbooleantrue if only some people may see the ticket.
slaobjectThe SLA state: policy_id, targets, paused, next_due_at, breached. See below.
sla_next_due_atstring or nullThe next SLA deadline across all targets.
sla_breachedbooleantrue once any SLA target was missed.
escalation_levelintegerHow many escalation levels have fired.
first_response_atstring or nullWhen the first public reply was sent.
resolved_atstring or nullWhen it reached a resolved status. Cleared if it is reopened.
closed_atstring or nullWhen it reached a final status. Cleared if it is reopened.
reopened_countintegerHow many times it was reopened.
csat_scoreinteger or nullThe customer's satisfaction rating, if they gave one.
time_spent_minutesintegerTotal logged work.
estimate_minutesinteger or nullThe estimate, if set.
custom_fieldsobjectYour project's custom fields, by key. Fields you are not allowed to see are left out.
aiobjectWhat the AI worked out during triage, for example summary, category and sentiment. Empty when AI triage is off.
lemuobjectLinks to the Lemu AI conversation the ticket came from (call, WhatsApp chat), when there is one.
channel_threadobjectThe conversation replies go back to, for tickets that came from a channel.
external_idstring or nullYour own id for the ticket. Unique in your organization.
merged_into_idstring or nullSet when this ticket was merged into another.
versionintegerGoes up on every change. Use it with If-Match (see Conventions).
created_at, updated_atstringTimes in UTC.

Get a ticket also returns transitions, the statuses the ticket can move to next.

SLA targets#

sla.targets has one entry per target in the ticket's SLA policy: first_response, next_response and resolution. Each has:

FieldDescription
minutesThe target length.
business_hourstrue if the clock only runs in business hours.
statusrunning, paused, met or breached.
started_atWhen the clock started.
due_atThe deadline. Empty while the target is paused.
met_atWhen the target was met, if it was.
breached_atWhen the target was missed, if it was.

Targets can carry more fields (such as remaining_minutes while paused). Ignore fields you do not use.