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>
POSThttps://lucidace.com/v1/projects/{project_id}/persons/bulk_delete

Parameters

project_idstringpathrequired

Request body

application/json
distinct_idsstring[]
Distinct ids; each is resolved to its person when the request runs.
eventsboolean
forwardboolean
See the single delete: forward to destinations (default true, false with keep_person).
idsstring[]
Person ids.
keep_personboolean
recordingsboolean
suppressboolean
{
  "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_idstringrequired
Groups these requests: filter the list with batch_id, cancel them together.
errorsBulkError[]required
Show child parameters
detailstringrequired
subjectstringrequired
The person id or distinct id as sent.
queuedintegerrequired
Requests queued or already open, one per accepted subject.
requestsDeletionRequest[]required
Show child parameters
batch_idstring
Shared by the requests one bulk delete queued; None for single deletes.
completed_atstring
When the erasure was verified complete across every store.
created_atstringrequired
errorstring
idstringrequired
optionsobjectrequired
{events, recordings, keep_person}; absent keys mean erase it (the default).
requested_bystring
stagesobjectrequired
Counts once done (persons, distinct_ids, replay_sessions, ...); stage progress before.
statusstringrequired
pending | running | done | failed | cancelled
subject_kindstringrequired
subject_valuestringrequired
The person id, or a redacted hash once a distinct-id / email request has run.
400
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/consentScope person:read

Parameters

project_idstringpathrequired
distinct_idstringqueryrequired

Code 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
analyticsstring
granted, denied, or null when no decision was recorded.
distinct_idstringrequired
replaystring
granted, denied, or null when no decision was recorded.
400
404
503
POSThttps://lucidace.com/v1/projects/{project_id}/persons/consentScope person:write

Parameters

project_idstringpathrequired

Request body

application/json
analyticsboolean
Analytics consent granted (true) or denied (false); absent leaves it unchanged.
distinct_idstringrequired
The person's distinct id.
replayboolean
Replay 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_replay
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/export.csvScope person:read

Parameters

project_idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/persons/identity_gapsScope person:read

Parameters

project_idstringpathrequired
daysintegerquery
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
distinct_idsstring[]required
last_seenstringrequired
person_idstringrequired
server_eventsintegerrequired
next_cursorstring
summaryGapSummary
Show child parameters
persons_with_bothintegerrequired
persons_with_server_onlyintegerrequired
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/persons/{id}Scope person:read

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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_atstringrequired
distinct_idsstring[]required
idstringrequired
last_seenstring
Latest event ever recorded for the person, merged identities included (events with $update_person_last_seen_at: false skipped).
last_seen_atstring
The stored, opt-in, hour-floored last_seen_at (null when never recorded).
platformstring
Platform of the person's latest event stream, stored on the person (G26); null when not recorded.
propertiesobjectrequired
404
503
DELETEhttps://lucidace.com/v1/projects/{project_id}/persons/{id}

Parameters

project_idstringpathrequired
idstringpathrequired
eventsbooleanpathrequired
Delete the person's events, sessions, exposures and heatmap points (default true).
recordingsbooleanpathrequired
Delete the person's session recordings and their stored chunks (default true).
keep_personbooleanpathrequired
Keep the person record and its distinct ids (default false).
forwardbooleanpathrequired
Forward 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.
suppressbooleanpathrequired
Ask 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_idstring
Shared by the requests one bulk delete queued; None for single deletes.
completed_atstring
When the erasure was verified complete across every store.
created_atstringrequired
errorstring
idstringrequired
optionsobjectrequired
{events, recordings, keep_person}; absent keys mean erase it (the default).
requested_bystring
stagesobjectrequired
Counts once done (persons, distinct_ids, replay_sessions, ...); stage progress before.
statusstringrequired
pending | running | done | failed | cancelled
subject_kindstringrequired
subject_valuestringrequired
The person id, or a redacted hash once a distinct-id / email request has run.
400
403
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/persons/{id}Scope person:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json

Properties to set (replacing values) and keys to remove; at most 100 keys in all.

setobject
unsetstring[]
{
  "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
propertiesobjectrequired
400
404
503

Updated