replays

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-replays"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/f61a15c1-5e82-4d49-8a06-0653b0b02c63/social-card.svg?v=3e7ae33eec8b" alt="replays" width="600" height="315"></a>
POSThttps://lucidace.com/v1/projects/{project_id}/replay-playlists/{id}/sharesScope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
allowed_originsstring[]
Embeds only: origins (https://app.example.com) allowed to frame the view; empty allows any.
expires_in_daysinteger
Lifetime in days (default 7, at most 90).
never_expiresboolean
No expiry at all; needs the org setting permanent_shares (403 otherwise).
optionsobject
Display options of the public view and embed.
Show child parameters
hide_brandingboolean
Leave out the Lucida branding.
hide_legendboolean
Leave out chart legends.
lock_filtersobject
Property group ({"and": [...]}, may hold a cohort filter) ANDed into every query the public view runs; viewers cannot remove it.
show_queriesboolean
Notebooks only: show the text of query blocks (hidden by default, queries can name people).
show_recordingsboolean
Notebooks only, project admins only (G146): replay and playlist blocks play in the shared view (masked at capture, no person ids, no comments). Withheld by default.
show_rowsboolean
Notebooks only, project admins only (G146): people, event, group and cohort lists share their rows (the block's chosen property columns; identities and email-like columns are always dropped) instead of per-day counts. Off by default.
themestring
light, dark or system (the default).
viewer_filtersboolean
Viewers may add their own event, person or session property filters (?filters=), applied on top of the lock.
passwordstring
Viewers must enter this password (8 to 200 characters); stored only as an argon2id hash.
{
  "allowed_origins": [
    "string"
  ],
  "expires_in_days": 0,
  "never_expires": true,
  "options": {
    "hide_branding": true,
    "hide_legend": true,
    "lock_filters": {},
    "show_queries": true,
    "show_recordings": true,
    "show_rows": true,
    "theme": "string",
    "viewer_filters": true
  },
  "password": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replay-playlists/{id}/shares" \
  -H "Content-Type: application/json" \
  -d '{"allowed_origins":["string"],"expires_in_days":0,"never_expires":true,"options":{"hide_branding":true,"hide_legend":true,"lock_filters":{},"show_queries":true,"show_recordings":true,"show_rows":true,"theme":"string","viewer_filters":true},"password":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201
Example
{
  "allowed_origins": [
    "string"
  ],
  "created_at": "2024-01-01T00:00:00Z",
  "expires_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "options": {},
  "password_protected": true,
  "resource_id": "string",
  "resource_type": "string",
  "revoked_at": "2024-01-01T00:00:00Z",
  "token": "string",
  "url": "string"
}
Schema
allowed_originsstring[]required
Origins allowed to frame the embed (empty: any).
created_atstringrequired
expires_atstring
idstringrequired
optionsobjectrequired
{hide_branding?, hide_legend?, theme?: light|dark|system}.
password_protectedbooleanrequired
Viewers must enter a password first.
resource_idstringrequired
resource_typestringrequired
revoked_atstring
tokenstringrequired
Shown once; only its hash is stored.
urlstring
The public page, absolute from LC_PUBLIC_URL (/share/<kind>/<token>).
400
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/replay-playlists/{id}/shares/{share_id}Scope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired
share_idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/replay-playlists/{id}/shares/{share_id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
404
GEThttps://lucidace.com/v1/projects/{project_id}/replay-privacy/findingsScope settings:read

Parameters

project_idstringpathrequired
statusstringpathrequired
open | accepted | dismissed
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replay-privacy/findings"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "data": [
    {
      "decided_at": "2024-01-01T00:00:00Z",
      "decided_by": "string",
      "first_seen": "2024-01-01T00:00:00Z",
      "hits": 0,
      "id": "string",
      "kind": "string",
      "last_seen": "2024-01-01T00:00:00Z",
      "reason": "string",
      "sample_path": "string",
      "selector": "string",
      "sessions": 0,
      "source": "string",
      "status": "string"
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
decided_atstring
decided_bystring
first_seenstringrequired
hitsintegerrequired
idstringrequired
kindstringrequired
email | card | phone | name | address | id_number | other
last_seenstringrequired
reasonstringrequired
sample_pathstringrequired
selectorstringrequired
Suggested mask selector.
sessionsintegerrequired
sourcestringrequired
scan | ai
statusstringrequired
open | accepted | dismissed
next_cursorstring
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/replay-privacy/findingsScope admin

Record findings of the AI pass (`source = ai`); admins.

Parameters

project_idstringpathrequired

Request body

application/json
kindstringrequired
name | address | id_number | email | card | phone | other
reasonstring
One sentence on why (no values).
selectorstringrequired
[
  {
    "kind": "string",
    "reason": "string",
    "selector": "string"
  }
]

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replay-privacy/findings" \
  -H "Content-Type: application/json" \
  -d '[{"kind":"string","reason":"string","selector":"string"}]'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {data: [finding]}
400
403
404
PATCHhttps://lucidace.com/v1/projects/{project_id}/replay-privacy/findings/{id}Scope admin

Accept, dismiss or reopen a finding (admins). Accepting adds its selector to the project's replay mask selectors.

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
bodystringrequired
The rationale of a decision, or the lesson of a learning.
created_atstringrequired
created_bystring
decided_atstring
idstringrequired
kindstringrequired
decision | learning
linksobject[]required
[{kind: experiment | flag | insight | dashboard, id}]
outcomestringrequired
What came of it, filled in later.
statusstringrequired
proposed | accepted | rejected | superseded
tagsstring[]required
titlestringrequired
updated_atstringrequired
{
  "body": "string",
  "created_at": "2024-01-01T00:00:00Z",
  "created_by": "string",
  "decided_at": "2024-01-01T00:00:00Z",
  "id": "string",
  "kind": "string",
  "links": [
    {}
  ],
  "outcome": "string",
  "status": "string",
  "tags": [
    "string"
  ],
  "title": "string",
  "updated_at": "2024-01-01T00:00:00Z"
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/projects/{project_id}/replay-privacy/findings/{id}" \
  -H "Content-Type: application/json" \
  -d '{"body":"string","created_at":"2024-01-01T00:00:00Z","created_by":"string","decided_at":"2024-01-01T00:00:00Z","id":"string","kind":"string","links":[{}],"outcome":"string","status":"string","tags":["string"],"title":"string","updated_at":"2024-01-01T00:00:00Z"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "event": "string",
  "events_scanned": 0,
  "kind": "string",
  "matches": 0,
  "property": "string",
  "suggestion": {
    "action": "string",
    "via": "string"
  }
}
Schema
eventstringrequired
events_scannedintegerrequired
Sampled events of this name.
kindstringrequired
email | card | phone
matchesintegerrequired
propertystringrequired
Dotted property path; array items are [].
suggestionobjectrequired
Show child parameters
actionstringrequired
mask | drop
viastringrequired
transformation | tracking_plan
400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/replay-privacy/scanScope admin

Scan recent replays and record what looks like personal data (admins).

Parameters

project_idstringpathrequired

Request body

application/json
sessionsinteger
How many of the most recent replays to scan (default 50, at most 200).
{
  "sessions": 0
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replay-privacy/scan" \
  -H "Content-Type: application/json" \
  -d '{"sessions":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {sessions_scanned, findings}
400
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/replay-privacy/text-samplesScope admin

Visible, unflagged text of recent replays by element selector (at most 400 samples of up to 80 characters, masked text excluded), for the AI pass. Admins with `pii:read` only.

Parameters

project_idstringpathrequired
sessionsintegerpathrequired
Replays to sample (default 50, at most 200).

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replay-privacy/text-samples"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 {samples: [{selector, text}]}
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/replays/bulk_delete

Delete up to 100 replays at once (privacy requests). Each deletion is audited; replays on legal hold or already gone are reported as skipped rather than failing the batch.

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}/replays/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

200
Example
{
  "deleted": [
    "string"
  ],
  "skipped": [
    {
      "reason": "string",
      "session_id": "string"
    }
  ]
}
Schema
deletedstring[]required
skippedReplaysStateSkipped[]required
Show child parameters
reasonstringrequired
not_found or legal_hold.
session_idstringrequired
400
403
404

Updated