replays
POST
https://lucidace.com /v1/projects/{project_id}/replay-playlists/{id}/shares Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
allowed_originsstring[]Embeds only: origins (
https://app.example.com) allowed to frame the view; empty allows any.expires_in_daysintegerLifetime in days (default 7, at most 90).
never_expiresbooleanNo expiry at all; needs the org setting
permanent_shares (403 otherwise).optionsobjectDisplay options of the public view and embed.
Show child parameters
hide_brandingbooleanLeave out the Lucida branding.
hide_legendbooleanLeave out chart legends.
lock_filtersobjectProperty group (
{"and": [...]}, may hold a cohort filter) ANDed into every query the public view runs; viewers cannot remove it.show_queriesbooleanNotebooks only: show the text of query blocks (hidden by default, queries can name people).
show_recordingsbooleanNotebooks 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_rowsbooleanNotebooks 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.
themestringlight, dark or system (the default).viewer_filtersbooleanViewers may add their own event, person or session property filters (
?filters=), applied on top of the lock.passwordstringViewers 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[]requiredOrigins allowed to frame the embed (empty: any).
created_atstringrequiredexpires_atstringidstringrequiredoptionsobjectrequired{hide_branding?, hide_legend?, theme?: light|dark|system}.password_protectedbooleanrequiredViewers must enter a password first.
resource_idstringrequiredresource_typestringrequiredrevoked_atstringtokenstringrequiredShown once; only its hash is stored.
urlstringThe public page, absolute from
LC_PUBLIC_URL (/share/<kind>/<token>).400
404
DELETE
https://lucidace.com /v1/projects/{project_id}/replay-playlists/{id}/shares/{share_id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredshare_idstringpathrequiredCode 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
GET
https://lucidace.com /v1/projects/{project_id}/replay-privacy/findings Scope settings:readParameters
project_idstringpathrequiredstatusstringpathrequiredopen | accepted | dismissedlimitintegerquerycursorstringqueryCode 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[]requiredShow child parameters
decided_atstringdecided_bystringfirst_seenstringrequiredhitsintegerrequiredidstringrequiredkindstringrequiredemail | card | phone | name | address | id_number | otherlast_seenstringrequiredreasonstringrequiredsample_pathstringrequiredselectorstringrequiredSuggested mask selector.
sessionsintegerrequiredsourcestringrequiredscan | aistatusstringrequiredopen | accepted | dismissednext_cursorstring400
404
POST
https://lucidace.com /v1/projects/{project_id}/replay-privacy/findings Scope adminRecord findings of the AI pass (`source = ai`); admins.
Parameters
project_idstringpathrequiredRequest body
application/json
kindstringrequiredname | address | id_number | email | card | phone | otherreasonstringOne 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
PATCH
https://lucidace.com /v1/projects/{project_id}/replay-privacy/findings/{id} Scope adminAccept, dismiss or reopen a finding (admins). Accepting adds its selector to the project's replay mask selectors.
Parameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
bodystringrequiredThe rationale of a decision, or the lesson of a learning.
created_atstringrequiredcreated_bystringdecided_atstringidstringrequiredkindstringrequireddecision | learninglinksobject[]required[{kind: experiment | flag | insight | dashboard, id}]outcomestringrequiredWhat came of it, filled in later.
statusstringrequiredproposed | accepted | rejected | supersededtagsstring[]requiredtitlestringrequiredupdated_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
eventstringrequiredevents_scannedintegerrequiredSampled events of this name.
kindstringrequiredemail | card | phonematchesintegerrequiredpropertystringrequiredDotted property path; array items are
[].suggestionobjectrequiredShow child parameters
actionstringrequiredmask | dropviastringrequiredtransformation | tracking_plan400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/replay-privacy/scan Scope adminScan recent replays and record what looks like personal data (admins).
Parameters
project_idstringpathrequiredRequest body
application/json
sessionsintegerHow 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
GET
https://lucidace.com /v1/projects/{project_id}/replay-privacy/text-samples Scope adminVisible, 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_idstringpathrequiredsessionsintegerpathrequiredReplays 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
POST
https://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_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}/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[]requiredskippedReplaysStateSkipped[]requiredShow child parameters
reasonstringrequirednot_found or legal_hold.session_idstringrequired400
403
404
Updated