events
GET
https://lucidace.com /v1/projects/{project_id}/events Scope insight:readParameters
project_idstringpathrequiredeventstringquerypersonstringquerycursorstringquerybeforestringqueryRFC 3339 time: events with
timestamp before it; or a raw <time>|<uuid> positionafterstringqueryRFC 3339 time: events with
timestamp at or after itlimitintegerqueryhoststringquerypathstringqueryreferrerstringqueryprop_keystringqueryprop_valuestringquerybotsstringqueryall | exclude | only
columnsstringqueryUp to 5 LQL row expressions, one per line; each event returns them as
valuessamplenumberqueryKeep 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 onesExample
{
"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[]requiredShow child parameters
distinct_idstringrequiredeventstringrequiredperson_idstringrequiredpropertiesobjectrequiredtimestampstringrequireduuidstringrequiredvaluesstring[]The requested expression columns, as text, in request order (absent without
columns).newer_cursorstringRaw cursor of the newest row: pass as
cursor on /events/live (or here, containing |) for newer events.next_cursorstringOpaque; pass as
cursor for the next OLDER page. Null at the end.older_cursorstringDeprecated: raw form of the older-page position; pass as
before. Absent at the end.per_minuteintegerrequiredMatching events ingested in the last 60 s, before sampling and the row cap.
samplenumberrequiredShare of events kept (
sample, default 1).400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/events/export.csv Scope insight:readParameters
project_idstringpathrequiredeventstringquerypersonstringqueryhoststringquerypathstringqueryreferrerstringqueryprop_keystringqueryprop_valuestringquerybotsstringqueryall | exclude | only
samplenumberqueryKeep 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
POST
https://lucidace.com /v1/projects/{project_id}/events/first-occurrence Scope insight:readParameters
project_idstringpathrequiredRequest body
application/json
distinct_idsstring[]requiredExact distinct ids, 1..=5000 after trimming and de-duplication.
eventstringrequiredEvent name.
sincestringOnly 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 absentExample
{
"data": [
{
"count": 0,
"distinct_id": "string",
"first_at": "string"
}
]
}Schema
dataFirstSeen[]requiredOnly ids with at least one matching event, sorted by
distinct_id.Show child parameters
countintegerrequiredMatching events (distinct by uuid) since
since.distinct_idstringrequiredfirst_atstringrequiredRFC 3339 time of the earliest matching event.
400
404
503
GET
https://lucidace.com /v1/projects/{project_id}/events/live Scope insight:readParameters
project_idstringpathrequiredeventstringquerypersonstringquerycursorstringqueryhoststringquerypathstringqueryreferrerstringqueryprop_keystringqueryprop_valuestringquerybotsstringqueryall | exclude | only
columnsstringqueryAs on
GET /eventssamplenumberqueryKeep 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