Tickets · 4 min read
The Ticket Object
The fields of a LemuTickets ticket, as returned by every ticket endpoint and webhook
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.
| Method | Endpoint | Purpose |
|---|---|---|
POST | /v1/tickets | Create a ticket |
GET | /v1/tickets | List and search tickets |
GET | /v1/tickets/{ref} | Get a ticket |
PATCH | /v1/tickets/{ref} | Update a ticket |
GET | /v1/tickets/{ref}/transitions | List available transitions |
POST | /v1/tickets/{ref}/transitions | Transition a ticket to another status |
POST | /v1/tickets/{ref}/comments | Add a comment: a reply or an internal note |
GET | /v1/tickets/{ref}/comments | List comments |
POST | /v1/tickets/{ref}/worklogs | Log work |
POST | /v1/tickets/{ref}/links | Link tickets |
Example#
{
"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#
| Field | Type | Description |
|---|---|---|
id | string (UUID) | The ticket's id. |
key | string | The project key and number, for example SUP-1042. |
number | integer | The number within the project. |
project | object | id, key and name of the project. |
type | object | The ticket type: id, name, icon, color. Types are set up per project, for example Complaint, Request, Question, Incident and Task. |
title | string | Up to 500 characters. |
description | string | The body of the ticket. |
status | object | The current status: id, name, category, color. Status names differ per project. |
status_category | string | The group the status belongs to: new, open, waiting or done. Use this, not the status name, to tell whether a ticket is finished. |
priority | string | p1 (most urgent) to p4. |
severity | string or null | Optional severity, for incidents. |
source | string | Where the ticket came from: voice, whatsapp, web_chat, email, slack, teams, api, portal, web_form, manual, lemu_copilot, automation or journey. |
source_ref | string or null | An id in the source system, such as a message or call id. Prevents duplicates (see Create a ticket). |
requester | object or null | The customer who raised it: id, name, email, phone, is_vip, account_id. Email and phone are partly hidden without the pii.read scope. |
account_id | string or null | The requester's account (the customer company). |
assignee | object or null | The assigned person: id, name, email, avatar_url. |
team | object or null | The assigned team: id, name. |
reporter | object or null | Who created the ticket, in the same shape as assignee. For API keys this is the key's own user. |
parent_id | string or null | The parent ticket, for sub-tasks. |
labels | array of strings | Labels, sorted. |
due_at | string or null | The due date you set (separate from SLA deadlines). |
restricted | boolean | true if only some people may see the ticket. |
sla | object | The SLA state: policy_id, targets, paused, next_due_at, breached. See below. |
sla_next_due_at | string or null | The next SLA deadline across all targets. |
sla_breached | boolean | true once any SLA target was missed. |
escalation_level | integer | How many escalation levels have fired. |
first_response_at | string or null | When the first public reply was sent. |
resolved_at | string or null | When it reached a resolved status. Cleared if it is reopened. |
closed_at | string or null | When it reached a final status. Cleared if it is reopened. |
reopened_count | integer | How many times it was reopened. |
csat_score | integer or null | The customer's satisfaction rating, if they gave one. |
time_spent_minutes | integer | Total logged work. |
estimate_minutes | integer or null | The estimate, if set. |
custom_fields | object | Your project's custom fields, by key. Fields you are not allowed to see are left out. |
ai | object | What the AI worked out during triage, for example summary, category and sentiment. Empty when AI triage is off. |
lemu | object | Links to the Lemu AI conversation the ticket came from (call, WhatsApp chat), when there is one. |
channel_thread | object | The conversation replies go back to, for tickets that came from a channel. |
external_id | string or null | Your own id for the ticket. Unique in your organization. |
merged_into_id | string or null | Set when this ticket was merged into another. |
version | integer | Goes up on every change. Use it with If-Match (see Conventions). |
created_at, updated_at | string | Times 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:
| Field | Description |
|---|---|
minutes | The target length. |
business_hours | true if the clock only runs in business hours. |
status | running, paused, met or breached. |
started_at | When the clock started. |
due_at | The deadline. Empty while the target is paused. |
met_at | When the target was met, if it was. |
breached_at | When the target was missed, if it was. |
Targets can carry more fields (such as remaining_minutes while paused). Ignore fields you do not use.
Was this page helpful?
Docs