LemuAIDocs

Getting Started · 2 min read

Overview

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

Open in ChatGPTOpen in ClaudeMarkdown

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 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:

TaskEndpoint
Raise a ticket when something goes wrong in your systemCreate a ticket
Show a customer's tickets, or a queue, in your own screensList and search tickets with TQL
Read one ticket with its status, SLA and fieldsGet a ticket
Change the priority, assignee, labels or custom fieldsUpdate a ticket
Move a ticket through its workflow (start work, resolve, close)List available transitions and Transition a ticket
Reply to the customer or add an internal noteAdd a comment
Record time spentLog work
Keep customers in sync with your recordsRequesters and Accounts
Attach files, such as invoices or photosUpload an attachment
Hear about changes as they happenWebhooks
Show tickets inside your ERP without building screensEmbedding in your ERP

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

Base URL#

All requests go to:

Text
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 for scopes and OAuth apps.

Your first request#

Find the key of the project you want to create tickets in:

cURL
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:

cURL
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, 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.
  • Errors always have the same shape. See Errors.
  • Every response has an X-Request-Id header. Include it when you contact support about a request.

Was this page helpful?