LemuAIDocs

Events · 3 min read

List Events

List your organization's events from every source, newest first

Open in ChatGPTOpen in ClaudeMarkdown

Returns your organization's events, newest first. This is the same data as the Event Log page. It includes events you sent with Send an event and events from other sources, such as Shopify, your tracking sources, segments and custom records.

GET/api/v1/events

Headers#

NameRequiredDescription
X-API-KeyYesAn API key from your organization. See Authentication.

Query parameters#

NameTypeRequiredDescription
event_typestringNoOnly return events of this type, for example Purchase. A Meta standard event name also returns events stored under its older names, so Purchase includes order_placed and checkout_completed. See Standard and conversion events.
sourcestringNoOnly return events from this source. See Event sources below.
include_message_updatesbooleanNoAlso return message status updates, such as message_sent or message_delivered. Default false. Only works when the event store is on (see store below).
searchstringNoMatch against the phone number, the contact's name or the event type.
start_datestringNoEarliest event to include, as YYYY-MM-DD or a full ISO date and time.
end_datestringNoLatest event to include, as YYYY-MM-DD (the whole day is included) or a full ISO date and time.
limitintegerNoHow many events to return, 1 to 500. Default 100.
offsetintegerNoHow many events to skip, for paging. Default 0.

Event sources#

SourceWhere the event came from
apiSend an event
shopifyYour connected Shopify store
pixelA tracking source: the LemuAI website snippet or an app SDK, including visits by people who aren't known yet
messagingStatus changes of messages and calls on any channel
segmentsA contact entering or leaving a segment
recordsA custom record being created, updated or deleted
backfillOlder events copied in when the event store was turned on

Example request:

cURL
curl "https://app.lemuai.com/api/v1/events?source=api&event_type=cart_abandoned&start_date=2026-10-01&limit=50" \
  -H "X-API-Key: lemu_your_api_key"

Response#

200

JSON
{
  "events": [
    {
      "id": 90412,
      "event_id": "3f6c2a9e-8d1b-5c7a-9e42-1b7d0c5a6f13",
      "event_type": "cart_abandoned",
      "source": "api",
      "phone": "+919876543210",
      "contact_id": 5531,
      "contact_name": "Priya Sharma",
      "anonymous_id": null,
      "event_data": {
        "first_name": "Priya",
        "cart_amount": 2499,
        "product_name": "Running shoes"
      },
      "created_at": "2026-10-27T09:14:02.511000+00:00"
    }
  ],
  "total": 1,
  "store": "clickhouse"
}
FieldTypeDescription
eventsarrayThe events on this page, newest first.
events[].idintegerThe event's number in LemuAI. This is the event_id returned by Send an event. It is 0 for events that are only kept in the event store, such as page views by website visitors.
events[].event_idstringA unique id (UUID) for the event. Every event has one, so use it when you need a stable id.
events[].event_typestringThe event name.
events[].sourcestringWhere the event came from. See Event sources.
events[].phonestring or nullThe phone number sent with the event.
events[].contact_idinteger or nullThe contact the event is linked to.
events[].contact_namestring or nullThat contact's name, if known.
events[].anonymous_idstring or nullThe website visitor id, for activity by a visitor who isn't linked to a contact yet.
events[].event_dataobjectThe details sent with the event.
events[].created_atstringWhen the event happened, in ISO 8601 (UTC).
totalintegerHow many events match your filters in total, for paging with limit and offset.
storestringWhere the events were read from: clickhouse (the event store, which holds every source including anonymous website visits) or postgres (the main database, used when the event store isn't on).

API keys see full phone numbers here. In the dashboard, team members without permission to view personal data see them partly hidden.

Errors#

StatusWhen
401The API key is missing or not valid.
422A query parameter has the wrong type, or limit is outside 1 to 500.

See Errors for the error format.

Was this page helpful?