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}/deletion-requests

Parameters

project_idstringpathrequired
statusstringpathrequired
pending | running | done | failed
person_idstringpathrequired
Requests for one person id.
batch_idstringpathrequired
Requests queued by one bulk delete.
limitintegerquery
cursorstringquery

Code 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 erased
Example
{
  "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[]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.
next_cursorstring
400
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/deletion-requests/batches/{batch_id}Scope admin

Cancel every pending request a bulk delete queued; requests already running continue.

Parameters

project_idstringpathrequired
batch_idstringpathrequired

Code 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 cancelled
403
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/deletion-requests/{id}Scope admin

Cancel a pending request. 409 once the executor has started it.

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/deletion-requests/{id}/forwardsScope admin

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
expandedbooleanrequired
Destinations are listed once lc-connectors expanded the request.
forwardsDeletionForward[]required
Show child parameters
attemptsintegerrequired
connector_idstringrequired
connector_kindstringrequired
connector_namestringrequired
The destination's name in the project.
created_atstringrequired
idstringrequired
last_errorstring
next_attempt_atstringrequired
When a pending forward is tried next.
request_idstringrequired
sent_atstring
statusstringrequired
pending | sent | failed | unsupported
updated_atstringrequired
retryablebooleanrequired
Whether the vendor-side identifiers are still held (a failed forward can then be retried).
stagedbooleanrequired
false when the request asked not to forward (or ran before forwarding existed).
suppressbooleanrequired
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/deletion-requests/{id}/forwards/{forward_id}/retryScope admin

Queue a failed forward again (due now). 409 when it did not fail, or the identifiers were purged.

Parameters

project_idstringpathrequired
idstringpathrequired
forward_idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/projects/{project_id}/identity/rulesScope settings:read

Parameters

project_idstringpathrequired

Code 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
PUThttps://lucidace.com/v1/projects/{project_id}/identity/rulesScope admin

Replace the identifier types; admins only. lc-worker applies them within its 60 s cache.

Parameters

project_idstringpathrequired

Request 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

Responses

400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/identity/rules/testScope settings:read

Parameters

project_idstringpathrequired

Request body

application/json
aobjectrequired
One side of a dry-run merge.
Show child parameters
distinct_idsstring[]
propertiesobject
Person properties (read by property identifier types).
bobjectrequired
One side of a dry-run merge.
Show child parameters
distinct_idsstring[]
propertiesobject
Person properties (read by property identifier types).
typesarray
Rules 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
allowedbooleanrequired
classifiedClassified[]required
Show child parameters
distinct_idstringrequired
identifierstring
The identifier type the id counts toward; null = no type (never limited).
explanationstringrequired
refusalobject
The type that blocks the merge, its limit and how many values the merged profile would hold.
400
404
GEThttps://lucidace.com/v1/projects/{project_id}/personsScope person:read

Parameters

project_idstringpathrequired
qstringquery
distinct_idstringquery
propertystringquery
valuestringquery
platformstringquery
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
created_atstringrequired
distinct_idsarray
List items only (up to 50 each, masked like the detail); the detail carries its own list.
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
next_cursorstring
404
503

Updated