# Overview

> Create and work LemuTickets tickets from your ERP or other systems with the LemuTickets REST API

URL: https://docs.lemuai.com/tickets-api/overview

LemuTickets is the service desk in the Lemu family: complaints, requests, tasks and incidents become tickets with an owner, a status, a deadline and a full history. The app at [tickets.lemuai.com](https://tickets.lemuai.com) is built on this same API, so anything your team does in the app, your own systems can do too.

This reference covers what an ERP or back-office system usually needs:

| Task | Endpoint |
|---|---|
| Raise a ticket when something goes wrong in your system | [Create a ticket](https://docs.lemuai.com/tickets-api/tickets/create) |
| Show a customer's tickets, or a queue, in your own screens | [List and search tickets](https://docs.lemuai.com/tickets-api/tickets/list) with [TQL](https://docs.lemuai.com/tickets-api/tql) |
| Read one ticket with its status, SLA and fields | [Get a ticket](https://docs.lemuai.com/tickets-api/tickets/get) |
| Change the priority, assignee, labels or custom fields | [Update a ticket](https://docs.lemuai.com/tickets-api/tickets/update) |
| Move a ticket through its workflow (start work, resolve, close) | [List available transitions](https://docs.lemuai.com/tickets-api/tickets/list-transitions) and [Transition a ticket](https://docs.lemuai.com/tickets-api/tickets/transition) |
| Reply to the customer or add an internal note | [Add a comment](https://docs.lemuai.com/tickets-api/tickets/add-comment) |
| Record time spent | [Log work](https://docs.lemuai.com/tickets-api/tickets/log-work) |
| Keep customers in sync with your records | [Requesters](https://docs.lemuai.com/tickets-api/requesters/upsert) and [Accounts](https://docs.lemuai.com/tickets-api/accounts/list) |
| Attach files, such as invoices or photos | [Upload an attachment](https://docs.lemuai.com/tickets-api/attachments/upload) |
| Hear about changes as they happen | [Webhooks](https://docs.lemuai.com/tickets-api/webhooks) |
| Show tickets inside your ERP without building screens | [Embedding in your ERP](https://docs.lemuai.com/tickets-api/embedding) |

Setting up projects, workflows, SLAs, automations and teams is done in the LemuTickets app.

## Base URL

All requests go to:
```
https://api.tickets.lemuai.com/v1
```

The version (`v1`) is part of the path. Changes within `v1` only add things: new endpoints, new optional fields and new response fields. Write your code so it ignores response fields it does not know.

## Authentication

Send an API key in the `Authorization` header. Create keys in LemuTickets under **Settings → API keys and webhooks**. See [Authentication](https://docs.lemuai.com/tickets-api/authentication) for scopes and OAuth apps.

## Your first request

Find the key of the project you want to create tickets in:
```bash
curl https://api.tickets.lemuai.com/v1/projects \
  -H "Authorization: Bearer ltk_live_your_api_key"
```
```json
{
  "data": [
    {
      "id": "3b0f6c1e-8a2d-4f5b-9c71-0e4d2a6b8f13",
      "key": "SUP",
      "name": "Customer Support",
      "open_tickets": 128
    }
  ]
}
```

The response above is shortened. Then create a ticket in that project:
```bash
curl -X POST https://api.tickets.lemuai.com/v1/tickets \
  -H "Authorization: Bearer ltk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: erp-complaint-58213" \
  -d '{
    "project": "SUP",
    "title": "Refund not received for order 58213",
    "priority": "p2",
    "requester": { "name": "Priya Sharma", "email": "priya@example.com" }
  }'
```

The response is the new ticket, with its key (for example `SUP-1042`). Use the key or the `id` in every other ticket endpoint.

## Request and response format

- Send request bodies as JSON with `Content-Type: application/json`. The one exception is [Upload an attachment](https://docs.lemuai.com/tickets-api/attachments/upload), which takes a file as `multipart/form-data`.
- Responses are JSON. Times are ISO 8601 in UTC, for example `2026-11-25T09:12:40.512000+00:00`. Ids are UUIDs.
- Lists return `{"data": [...]}`, and paged lists add `next_cursor`. See [Conventions](https://docs.lemuai.com/tickets-api/conventions).
- Errors always have the same shape. See [Errors](https://docs.lemuai.com/tickets-api/errors).
- Every response has an `X-Request-Id` header. Include it when you contact support about a request.
