persons

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-persons"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/8acd2112-1079-438f-8d32-0eeb8a399af3/social-card.svg?v=3e7ae33eec8b" alt="persons" width="600" height="315"></a>
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/cohortsScope person:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
idstringrequired
kindstringrequired
static | dynamic.
namestringrequired
next_cursorstring
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/eventsScope person:read

Parameters

project_idstringpathrequired
idstringpathrequired
eventstringquery
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
distinct_idstringrequired
eventstringrequired
propertiesobjectrequired
session_idstringrequired
timestampstringrequired
uuidstringrequired
next_cursorstring
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/flagsScope person:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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 key
Example
{
  "data": [
    {
      "calls": 0,
      "flag": "string",
      "last_called": "string",
      "last_value": "string"
    }
  ],
  "next_cursor": "string"
}
Schema
dataPersonFlag[]required
Show child parameters
callsintegerrequired
flagstringrequired
last_calledstringrequired
last_valuestringrequired
The most recent value served (true, false or a variant key).
next_cursorstring
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/groupsScope person:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
group_keystringrequired
group_typestringrequired
The type's display name when set, else its raw name.
group_type_indexintegerrequired
last_seenstringrequired
next_cursorstring
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/historyScope person:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
actionstringrequired
ingest: the event name that carried it ($identify, $set, ...). audit: person.edit, person.properties_update, person.unmerge, ...
actor_kindstringrequired
audit: user, api_key, ...; ingest: event.
actor_user_idstring
changestring
ingest rows: added, changed or removed.
created_atstringrequired
detailobjectrequired
audit: keys touched, never values. ingest: {event_uuid}.
keystring
ingest rows: the property key; absent for audit rows.
new_valueobject
ingest rows: the value after (absent when the key was removed).
old_valueobject
ingest rows: the value before (absent when the key was not set).
seqinteger
Audit log sequence number; absent for ingest rows.
sourcestringrequired
Where the change was recorded: ingest (a property op on a captured event) or audit.
next_cursorstring
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/identity_graphScope person:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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[]required
Show child parameters
currentbooleanrequired
Currently resolves to this person (false for ids only seen on events merged in earlier).
distinct_idstringrequired
event_countintegerrequired
first_seenstring
last_seenstring
libstringrequired
The $lib of the latest event under this id.
platformstringrequired
web | ios | android | flutter | react_native | server | unknown
merged_fromMerge[]required
Show child parameters
merged_atstringrequired
merged_person_idstringrequired
person_idstringrequired
platformsstring[]required
refused_mergesRefusedMerge[]required
Refused merges in the last 90 days (newest first, at most 50).
Show child parameters
atstringrequired
distinct_idstringrequired
eventstringrequired
$identify, $create_alias, ...
kindstringrequired
merge_refusal (both persons already identified) or illegal_distinct_id (placeholder id).
404
503
PATCHhttps://lucidace.com/v1/projects/{project_id}/persons/{id}/propertiesScope person:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
setobject
Properties 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 it
Example
{
  "distinct_id": "string",
  "event_uuid": "string"
}
Schema
distinct_idstringrequired
event_uuidstringrequired
Id of the $set event carrying the change.
400
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}/recordingsScope person:read

Parameters

project_idstringpathrequired
idstringpathrequired
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
clicksintegerrequired
duration_sintegerrequired
first_urlstringrequired
session_idstringrequired
started_atstringrequired
next_cursorstring
404
503

Updated