LemuAIDocs

Requesters · 3 min read

Create or Update a Requester

Find a LemuTickets requester by email, phone or other ids, or create one

Open in ChatGPTOpen in ClaudeMarkdown

A requester is the customer who raises tickets: a person with a name, email, phone, WhatsApp number and, optionally, an account (their company). This endpoint finds the requester that matches the details you send, or creates one.

POST/v1/requesters

Needs the requesters.write scope.

To keep requesters in step with records in your ERP, Upsert a requester by external ID is usually simpler: it matches on your own id and updates exactly the fields you send.

How the requester is found#

LemuTickets looks for an existing requester in this order and uses the first match:

  1. lemu_contact_id
  2. email (not case sensitive)
  3. phone (formatting is ignored; numbers without a country code are read as +91)
  4. whatsapp_id
  5. external_id

If there is a match, empty details on it are filled in from your request. Details that are already set (by your team or an earlier request) are not overwritten. If there is no match, a new requester is created. A new requester whose email domain matches an account's domain is added to that account.

Request body#

FieldTypeRequiredDescription
namestringNoFull name.
emailstringNoEmail address.
phonestringNoPhone number, ideally in international format.
whatsapp_idstringNoWhatsApp number.
external_idstringNoYour own id for the customer.
account_idstring (UUID)NoThe account (company) the requester belongs to.
languagestringNoPreferred language, for example en or hi.
lemu_contact_idintegerNoThe contact's id in Lemu AI, if you use both products.
is_vipbooleanNoMark as VIP. Default false.
tagsarray of stringsNoTags.
custom_fieldsobjectNoExtra values. Merged into existing custom fields.

Send at least one of email, phone, whatsapp_id, external_id or lemu_contact_id, or every request creates a new requester.

is_vip and tags always replace the stored values, even on an existing requester. If you leave them out, the requester's VIP flag is set to false and its tags are cleared. Send the current values, or use Upsert a requester by external ID, which only changes the fields you send.

Example request:

cURL
curl -X POST https://api.tickets.lemuai.com/v1/requesters \
  -H "Authorization: Bearer ltk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Priya Sharma",
    "email": "priya@example.com",
    "phone": "98765 43210",
    "account_id": "4a6c8e0b-2d1f-4b3a-8c5e-9f7d1b3a5c6e",
    "language": "en",
    "is_vip": true,
    "tags": ["distributor"],
    "custom_fields": { "gstin": "29ABCDE1234F1Z5" }
  }'

Response#

201 with the requester, whether it was created or found.

JSON
{
  "id": "8b4d6f2a-0c1e-4a3b-9d5f-7e6a8c0b2d4f",
  "name": "Priya Sharma",
  "email": "priya@example.com",
  "phone": "+919876543210",
  "whatsapp_id": null,
  "account_id": "4a6c8e0b-2d1f-4b3a-8c5e-9f7d1b3a5c6e",
  "language": "en",
  "is_vip": true,
  "external_id": null,
  "lemu_contact_id": null,
  "tags": ["distributor"],
  "custom_fields": { "gstin": "29ABCDE1234F1Z5" },
  "anonymised": false,
  "created_at": "2026-11-25T09:05:12.330000+00:00",
  "open_tickets": null
}

Requester fields#

FieldTypeDescription
idstringThe requester's id. Use it as requester_id when creating tickets.
namestringFull name.
emailstring or nullEmail, stored in lower case. Partly hidden without the pii.read scope.
phonestring or nullPhone in international format. Partly hidden without pii.read.
whatsapp_idstring or nullWhatsApp number. Partly hidden without pii.read.
account_idstring or nullThe account (company).
languagestring or nullPreferred language.
is_vipbooleanMarked as VIP. Find their tickets with the TQL query requester.vip = true.
external_idstring or nullYour own id.
lemu_contact_idinteger or nullThe matching Lemu AI contact, if any.
tagsarray of stringsTags.
custom_fieldsobjectExtra values.
anonymisedbooleantrue if the requester's personal data was erased.
created_atstringWhen the requester was created.
open_ticketsinteger or nullTickets that are not done. Filled in by List requesters; null here.

Errors#

StatuscodeWhen
403missing_capabilityThe key does not have requesters.write
422invalid_fieldsA field has the wrong type