events

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-events"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/7f7b60f2-71eb-4b49-9f6c-257b212c232a/social-card.svg?v=3e7ae33eec8b" alt="events" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/eventsScope insight:read

Parameters

project_idstringpathrequired
eventstringquery
personstringquery
cursorstringquery
beforestringquery
RFC 3339 time: events with timestamp before it; or a raw <time>|<uuid> position
afterstringquery
RFC 3339 time: events with timestamp at or after it
limitintegerquery
hoststringquery
pathstringquery
referrerstringquery
prop_keystringquery
prop_valuestringquery
botsstringquery
all | exclude | only
columnsstringquery
Up to 5 LQL row expressions, one per line; each event returns them as values
samplenumberquery
Keep this share of events (0..1], by uuid hash

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/events"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Recent events, newest first; cursor returns only newer ones
Example
{
  "data": [
    {
      "distinct_id": "string",
      "event": "string",
      "person_id": "string",
      "properties": {},
      "timestamp": "string",
      "uuid": "string",
      "values": [
        "string"
      ]
    }
  ],
  "newer_cursor": "string",
  "next_cursor": "string",
  "older_cursor": "string",
  "per_minute": 0,
  "sample": 0
}
Schema
dataLiveEvent[]required
Show child parameters
distinct_idstringrequired
eventstringrequired
person_idstringrequired
propertiesobjectrequired
timestampstringrequired
uuidstringrequired
valuesstring[]
The requested expression columns, as text, in request order (absent without columns).
newer_cursorstring
Raw cursor of the newest row: pass as cursor on /events/live (or here, containing |) for newer events.
next_cursorstring
Opaque; pass as cursor for the next OLDER page. Null at the end.
older_cursorstring
Deprecated: raw form of the older-page position; pass as before. Absent at the end.
per_minuteintegerrequired
Matching events ingested in the last 60 s, before sampling and the row cap.
samplenumberrequired
Share of events kept (sample, default 1).
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/events/export.csvScope insight:read

Parameters

project_idstringpathrequired
eventstringquery
personstringquery
hoststringquery
pathstringquery
referrerstringquery
prop_keystringquery
prop_valuestringquery
botsstringquery
all | exclude | only
samplenumberquery
Keep this share of events (0..1], by uuid hash

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/events/export.csv"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 uuid,timestamp,event,distinct_id,person_id,properties; newest first, capped at 10000 rows (x-lc-export-cap)
"string"
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/events/first-occurrenceScope insight:read

Parameters

project_idstringpathrequired

Request body

application/json
distinct_idsstring[]required
Exact distinct ids, 1..=5000 after trimming and de-duplication.
eventstringrequired
Event name.
sincestring
Only events at or after this RFC 3339 time (default: all time).
{
  "distinct_ids": [
    "string"
  ],
  "event": "string",
  "since": "2024-01-01T00:00:00Z"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/events/first-occurrence" \
  -H "Content-Type: application/json" \
  -d '{"distinct_ids":["string"],"event":"string","since":"2024-01-01T00:00:00Z"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Needs insight:read (the scope GET /events uses; there is no separate event:read). Ids that never did the event are absent
Example
{
  "data": [
    {
      "count": 0,
      "distinct_id": "string",
      "first_at": "string"
    }
  ]
}
Schema
dataFirstSeen[]required
Only ids with at least one matching event, sorted by distinct_id.
Show child parameters
countintegerrequired
Matching events (distinct by uuid) since since.
distinct_idstringrequired
first_atstringrequired
RFC 3339 time of the earliest matching event.
400
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/events/liveScope insight:read

Parameters

project_idstringpathrequired
eventstringquery
personstringquery
cursorstringquery
hoststringquery
pathstringquery
referrerstringquery
prop_keystringquery
prop_valuestringquery
botsstringquery
all | exclude | only
columnsstringquery
As on GET /events
samplenumberquery
Keep this share of events (0..1], by uuid hash

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/events/live"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 text/event-stream; rate frames (first, then every ~30 s) carry {per_minute}; events frames carry a JSON array of at most 100 LiveEvent, id is the resume cursor (also accepted from Last-Event-ID via cursor)
400
404
503
Updated