persons
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id}/cohorts Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}/cohorts"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of PersonCohort the person is a current member of, by id
Example
{
"data": [
{
"id": "string",
"kind": "string",
"name": "string"
}
],
"next_cursor": "string"
}Schema
dataPersonCohort[]requiredShow child parameters
idstringrequiredkindstringrequiredstatic | dynamic.namestringrequirednext_cursorstring404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id}/events Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredeventstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}/events"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of TimelineEvent, newest first; cursor is (timestamp, uuid)
Example
{
"data": [
{
"distinct_id": "string",
"event": "string",
"properties": {},
"session_id": "string",
"timestamp": "string",
"uuid": "string"
}
],
"next_cursor": "string"
}Schema
dataTimelineEvent[]requiredShow child parameters
distinct_idstringrequiredeventstringrequiredpropertiesobjectrequiredsession_idstringrequiredtimestampstringrequireduuidstringrequirednext_cursorstring404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id}/flags Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}/flags"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of PersonFlag from
$feature_flag_called events, by flag keyExample
{
"data": [
{
"calls": 0,
"flag": "string",
"last_called": "string",
"last_value": "string"
}
],
"next_cursor": "string"
}Schema
dataPersonFlag[]requiredShow child parameters
callsintegerrequiredflagstringrequiredlast_calledstringrequiredlast_valuestringrequiredThe most recent value served (
true, false or a variant key).next_cursorstring404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id}/groups Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}/groups"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of PersonGroup the person's events were attributed to, by (type, key)
Example
{
"data": [
{
"group_key": "string",
"group_type": "string",
"group_type_index": 0,
"last_seen": "string"
}
],
"next_cursor": "string"
}Schema
dataPersonGroup[]requiredShow child parameters
group_keystringrequiredgroup_typestringrequiredThe type's display name when set, else its raw name.
group_type_indexintegerrequiredlast_seenstringrequirednext_cursorstring404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id}/history Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}/history"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of PersonChange, newest first: property changes from ingested
$set / $set_once / $unset ops (source: ingest, with old and new value) merged with the audit log's person.* entries (source: audit)Example
{
"data": [
{
"action": "string",
"actor_kind": "string",
"actor_user_id": "string",
"change": "string",
"created_at": "string",
"detail": {},
"key": "string",
"new_value": {},
"old_value": {},
"seq": 0,
"source": "string"
}
],
"next_cursor": "string"
}Schema
dataPersonChange[]requiredShow child parameters
actionstringrequiredingest: the event name that carried it ($identify, $set, ...). audit: person.edit, person.properties_update, person.unmerge, ...actor_kindstringrequiredaudit: user, api_key, ...; ingest: event.actor_user_idstringchangestringingest rows: added, changed or removed.created_atstringrequireddetailobjectrequiredaudit: keys touched, never values. ingest: {event_uuid}.keystringingest rows: the property key; absent for audit rows.new_valueobjectingest rows: the value after (absent when the key was removed).old_valueobjectingest rows: the value before (absent when the key was not set).seqintegerAudit log sequence number; absent for
ingest rows.sourcestringrequiredWhere the change was recorded:
ingest (a property op on a captured event) or audit.next_cursorstring404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id}/identity_graph Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}/identity_graph"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"identities": [
{
"current": true,
"distinct_id": "string",
"event_count": 0,
"first_seen": "string",
"last_seen": "string",
"lib": "string",
"platform": "string"
}
],
"merged_from": [
{
"merged_at": "string",
"merged_person_id": "string"
}
],
"person_id": "string",
"platforms": [
"string"
],
"refused_merges": [
{
"at": "string",
"distinct_id": "string",
"event": "string",
"kind": "string"
}
]
}Schema
identitiesIdentity[]requiredShow child parameters
currentbooleanrequiredCurrently resolves to this person (false for ids only seen on events merged in earlier).
distinct_idstringrequiredevent_countintegerrequiredfirst_seenstringlast_seenstringlibstringrequiredThe
$lib of the latest event under this id.platformstringrequiredweb | ios | android | flutter | react_native | server | unknownmerged_fromMerge[]requiredShow child parameters
merged_atstringrequiredmerged_person_idstringrequiredperson_idstringrequiredplatformsstring[]requiredrefused_mergesRefusedMerge[]requiredRefused merges in the last 90 days (newest first, at most 50).
Show child parameters
atstringrequireddistinct_idstringrequiredeventstringrequired$identify, $create_alias, ...kindstringrequiredmerge_refusal (both persons already identified) or illegal_distinct_id (placeholder id).404
503
PATCH
https://lucidace.com /v1/projects/{project_id}/persons/{id}/properties Scope person:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
setobjectProperties to set (overwrite).
unsetstring[]Property keys to remove.
{
"set": {},
"unset": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/persons/{id}/properties" \
-H "Content-Type: application/json" \
-d '{"set":{},"unset":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Queued as a
$set event; visible after the worker processes itExample
{
"distinct_id": "string",
"event_uuid": "string"
}Schema
distinct_idstringrequiredevent_uuidstringrequiredId of the
$set event carrying the change.400
403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id}/recordings Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredlimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}/recordings"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of PersonRecording, newest first; cursor is (started_at, session_id)
Example
{
"data": [
{
"clicks": 0,
"duration_s": 0,
"first_url": "string",
"session_id": "string",
"started_at": "string"
}
],
"next_cursor": "string"
}Schema
dataPersonRecording[]requiredShow child parameters
clicksintegerrequiredduration_sintegerrequiredfirst_urlstringrequiredsession_idstringrequiredstarted_atstringrequirednext_cursorstring404
503
Updated