persons
POST
https://lucidace.com /v1/projects/{project_id}/persons/bulk_delete Parameters
project_idstringpathrequiredRequest body
application/json
distinct_idsstring[]Distinct ids; each is resolved to its person when the request runs.
eventsbooleanforwardbooleanSee the single delete: forward to destinations (default true, false with
keep_person).idsstring[]Person ids.
keep_personbooleanrecordingsbooleansuppressboolean{
"distinct_ids": [
"string"
],
"events": true,
"forward": true,
"ids": [
"string"
],
"keep_person": true,
"recordings": true,
"suppress": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/persons/bulk_delete" \
-H "Content-Type: application/json" \
-d '{"distinct_ids":["string"],"events":true,"forward":true,"ids":["string"],"keep_person":true,"recordings":true,"suppress":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Requests queued. Unknown subjects (no person and no events) are listed in
errors with not found: nothing to erase, safe to treat as done. A distinct id without a person but with events (sent with $process_person_profile: false) has those events erased and is reported in requests with options.personless: true.Example
{
"batch_id": "string",
"errors": [
{
"detail": "string",
"subject": "string"
}
],
"queued": 0,
"requests": [
{
"batch_id": "string",
"completed_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z",
"error": "string",
"id": "string",
"options": {},
"requested_by": "string",
"stages": {},
"status": "string",
"subject_kind": "string",
"subject_value": "string"
}
]
}Schema
batch_idstringrequiredGroups these requests: filter the list with
batch_id, cancel them together.errorsBulkError[]requiredShow child parameters
detailstringrequiredsubjectstringrequiredThe person id or distinct id as sent.
queuedintegerrequiredRequests queued or already open, one per accepted subject.
requestsDeletionRequest[]requiredShow child parameters
batch_idstringShared by the requests one bulk delete queued;
None for single deletes.completed_atstringWhen the erasure was verified complete across every store.
created_atstringrequirederrorstringidstringrequiredoptionsobjectrequired{events, recordings, keep_person}; absent keys mean erase it (the default).requested_bystringstagesobjectrequiredCounts once done (
persons, distinct_ids, replay_sessions, ...); stage progress before.statusstringrequiredpending | running | done | failed | cancelledsubject_kindstringrequiredsubject_valuestringrequiredThe person id, or a redacted hash once a distinct-id / email request has run.
400
403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/consent Scope person:readThe person's current analytics and replay consent (`$consent_analytics` / `$consent_replay`).
Parameters
project_idstringpathrequireddistinct_idstringqueryrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/consent?distinct_id=<distinct_id>"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"analytics": "string",
"distinct_id": "string",
"replay": "string"
}Schema
analyticsstringgranted, denied, or null when no decision was recorded.distinct_idstringrequiredreplaystringgranted, denied, or null when no decision was recorded.400
404
503
POST
https://lucidace.com /v1/projects/{project_id}/persons/consent Scope person:writeParameters
project_idstringpathrequiredRequest body
application/json
analyticsbooleanAnalytics consent granted (true) or denied (false); absent leaves it unchanged.
distinct_idstringrequiredThe person's distinct id.
replaybooleanReplay consent granted or denied; absent leaves it unchanged.
{
"analytics": true,
"distinct_id": "string",
"replay": true
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/persons/consent" \
-H "Content-Type: application/json" \
-d '{"analytics":true,"distinct_id":"string","replay":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Queued as a
$set event of $consent_analytics / $consent_replayExample
{
"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/export.csv Scope person:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/export.csv"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 id,created_at,properties; newest first, streamed, capped at 100000 rows (x-lc-export-cap); properties masked without pii:read
"string"
404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/identity_gaps Scope person:readParameters
project_idstringpathrequireddaysintegerquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/identity_gaps"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Persons with server-side events and no browser events in the window, by person id
Example
{
"data": [
{
"distinct_ids": [
"string"
],
"last_seen": "string",
"person_id": "string",
"server_events": 0
}
],
"next_cursor": "string",
"summary": {
"persons_with_both": 0,
"persons_with_server_only": 0
}
}Schema
dataIdentityGap[]requiredShow child parameters
distinct_idsstring[]requiredlast_seenstringrequiredperson_idstringrequiredserver_eventsintegerrequirednext_cursorstringsummaryGapSummaryShow child parameters
persons_with_bothintegerrequiredpersons_with_server_onlyintegerrequired404
503
GET
https://lucidace.com /v1/projects/{project_id}/persons/{id} Scope person:readParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/persons/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"created_at": "string",
"distinct_ids": [
"string"
],
"id": "string",
"last_seen": "string",
"last_seen_at": "string",
"platform": "string",
"properties": {}
}Schema
created_atstringrequireddistinct_idsstring[]requiredidstringrequiredlast_seenstringLatest event ever recorded for the person, merged identities included (events with
$update_person_last_seen_at: false skipped).last_seen_atstringThe stored, opt-in, hour-floored
last_seen_at (null when never recorded).platformstringPlatform of the person's latest event stream, stored on the person (G26); null when not recorded.
propertiesobjectrequired404
503
DELETE
https://lucidace.com /v1/projects/{project_id}/persons/{id} Parameters
project_idstringpathrequiredidstringpathrequiredeventsbooleanpathrequiredDelete the person's events, sessions, exposures and heatmap points (default true).
recordingsbooleanpathrequiredDelete the person's session recordings and their stored chunks (default true).
keep_personbooleanpathrequiredKeep the person record and its distinct ids (default false).
forwardbooleanpathrequiredForward the delete to connected destinations that have a delete API (N-ANA-3). Default: true, false with
keep_person. Per-destination status: GET .../deletion-requests/{id}/forwards.suppressbooleanpathrequiredAsk destinations to suppress the person (delete and block re-creation) where they support it.
Code samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/persons/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Deletion queued; processed asynchronously. A request already open for this person is returned instead of a second one.
Example
{
"batch_id": "string",
"completed_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z",
"error": "string",
"id": "string",
"options": {},
"requested_by": "string",
"stages": {},
"status": "string",
"subject_kind": "string",
"subject_value": "string"
}Schema
batch_idstringShared by the requests one bulk delete queued;
None for single deletes.completed_atstringWhen the erasure was verified complete across every store.
created_atstringrequirederrorstringidstringrequiredoptionsobjectrequired{events, recordings, keep_person}; absent keys mean erase it (the default).requested_bystringstagesobjectrequiredCounts once done (
persons, distinct_ids, replay_sessions, ...); stage progress before.statusstringrequiredpending | running | done | failed | cancelledsubject_kindstringrequiredsubject_valuestringrequiredThe person id, or a redacted hash once a distinct-id / email request has run.
400
403
404
PATCH
https://lucidace.com /v1/projects/{project_id}/persons/{id} Scope person:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
Properties to set (replacing values) and keys to remove; at most 100 keys in all.
setobjectunsetstring[]{
"set": {},
"unset": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/persons/{id}" \
-H "Content-Type: application/json" \
-d '{"set":{},"unset":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 queued; the worker writes the merged bag within seconds
Example
{
"properties": {}
}Schema
propertiesobjectrequired400
404
503
Updated