persons
GET
https://lucidace.com /v1/projects/{project_id}/deletion-requests Parameters
project_idstringpathrequiredstatusstringpathrequiredpending | running | done | failedperson_idstringpathrequiredRequests for one person id.
batch_idstringpathrequiredRequests queued by one bulk delete.
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/deletion-requests"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Newest first;
completed_at is when every store was verified erasedExample
{
"data": [
{
"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"
}
],
"next_cursor": "string"
}Schema
dataobject[]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.
next_cursorstring400
403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/deletion-requests/batches/{batch_id} Scope adminCancel every pending request a bulk delete queued; requests already running continue.
Parameters
project_idstringpathrequiredbatch_idstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/deletion-requests/batches/{batch_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
{cancelled}: how many pending requests were cancelled403
404
DELETE
https://lucidace.com /v1/projects/{project_id}/deletion-requests/{id} Scope adminCancel a pending request. 409 once the executor has started it.
Parameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/deletion-requests/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/deletion-requests/{id}/forwards Scope adminParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/deletion-requests/{id}/forwards"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 One row per connected destination once lc-connectors expanded the request:
sent, failed (after retries), pending or unsupported (no vendor delete API, or no identifier the vendor keys people by)Example
{
"expanded": true,
"forwards": [
{
"attempts": 0,
"connector_id": "string",
"connector_kind": "string",
"connector_name": "string",
"created_at": "2024-01-01T00:00:00Z",
"id": "string",
"last_error": "string",
"next_attempt_at": "2024-01-01T00:00:00Z",
"request_id": "string",
"sent_at": "2024-01-01T00:00:00Z",
"status": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"retryable": true,
"staged": true,
"suppress": true
}Schema
expandedbooleanrequiredDestinations are listed once lc-connectors expanded the request.
forwardsDeletionForward[]requiredShow child parameters
attemptsintegerrequiredconnector_idstringrequiredconnector_kindstringrequiredconnector_namestringrequiredThe destination's name in the project.
created_atstringrequiredidstringrequiredlast_errorstringnext_attempt_atstringrequiredWhen a pending forward is tried next.
request_idstringrequiredsent_atstringstatusstringrequiredpending | sent | failed | unsupportedupdated_atstringrequiredretryablebooleanrequiredWhether the vendor-side identifiers are still held (a failed forward can then be retried).
stagedbooleanrequiredfalse when the request asked not to forward (or ran before forwarding existed).suppressbooleanrequired403
404
POST
https://lucidace.com /v1/projects/{project_id}/deletion-requests/{id}/forwards/{forward_id}/retry Scope adminQueue a failed forward again (due now). 409 when it did not fail, or the identifiers were purged.
Parameters
project_idstringpathrequiredidstringpathrequiredforward_idstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/deletion-requests/{id}/forwards/{forward_id}/retry"TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Queued; lc-connectors sends it on its next tick
403
404
409
GET
https://lucidace.com /v1/projects/{project_id}/identity/rules Scope settings:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/identity/rules"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"types": [
{}
]
}Schema
typesobject[]{name, priority, limit, source: "distinct_id" | "property", pattern, property}; limit 0 = unlimited; a distinct_id type with an empty pattern takes every id no patterned type matches.404
PUT
https://lucidace.com /v1/projects/{project_id}/identity/rules Scope adminReplace the identifier types; admins only. lc-worker applies them within its 60 s cache.
Parameters
project_idstringpathrequiredRequest body
application/json
The identifier types, checked in priority order (1 first). No types = the base merge rules only.
typesobject[]{name, priority, limit, source: "distinct_id" | "property", pattern, property}; limit 0 = unlimited; a distinct_id type with an empty pattern takes every id no patterned type matches.{
"types": [
{}
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/identity/rules" \
-H "Content-Type: application/json" \
-d '{"types":[{}]}'TypeScript
Python
Go
PHP
Ruby
Java
POST
https://lucidace.com /v1/projects/{project_id}/identity/rules/test Scope settings:readParameters
project_idstringpathrequiredRequest body
application/json
aobjectrequiredOne side of a dry-run merge.
Show child parameters
distinct_idsstring[]propertiesobjectPerson properties (read by
property identifier types).bobjectrequiredOne side of a dry-run merge.
Show child parameters
distinct_idsstring[]propertiesobjectPerson properties (read by
property identifier types).typesarrayRules to try; absent = the stored rules.
{
"a": {
"distinct_ids": [
"string"
],
"properties": {}
},
"b": {
"distinct_ids": [
"string"
],
"properties": {}
},
"types": [
{}
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/identity/rules/test" \
-H "Content-Type: application/json" \
-d '{"a":{"distinct_ids":["string"],"properties":{}},"b":{"distinct_ids":["string"],"properties":{}},"types":[{}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"allowed": true,
"classified": [
{
"distinct_id": "string",
"identifier": "string"
}
],
"explanation": "string",
"refusal": {}
}Schema
allowedbooleanrequiredclassifiedClassified[]requiredShow child parameters
distinct_idstringrequiredidentifierstringThe identifier type the id counts toward; null = no type (never limited).
explanationstringrequiredrefusalobjectThe type that blocks the merge, its limit and how many values the merged profile would hold.
400
404
GET
https://lucidace.com /v1/projects/{project_id}/persons Scope person:readParameters
project_idstringpathrequiredqstringquerydistinct_idstringquerypropertystringqueryvaluestringqueryplatformstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl "https://lucidace.com/v1/projects/$PROJECT_ID/persons?limit=20" \
-H "Authorization: Bearer $LUCIDA_SECRET_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Person, newest first
Example
{
"data": [
{
"created_at": "string",
"distinct_ids": [
"string"
],
"id": "string",
"last_seen": "string",
"last_seen_at": "string",
"platform": "string",
"properties": {}
}
],
"next_cursor": "string"
}Schema
dataPerson[]requiredShow child parameters
created_atstringrequireddistinct_idsarrayList items only (up to 50 each, masked like the detail); the detail carries its own list.
idstringrequiredlast_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.
propertiesobjectrequirednext_cursorstring404
503
Updated