replays
GET
https://lucidace.com /v1/projects/{project_id}/replays/capture-health Scope replay:readReplays per session over the last 24 h against the 7 days before (capture-cliff signal).
Parameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/capture-health"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"baseline_ratio": 0,
"baseline_replays": 0,
"baseline_sessions": 0,
"recent_ratio": 0,
"recent_replays": 0,
"recent_sessions": 0
}Schema
baseline_rationumberrequiredbaseline_replaysintegerrequiredbaseline_sessionsintegerrequiredrecent_rationumberrequiredrecent_replaysintegerrequiredrecent_sessionsintegerrequired404
503
GET
https://lucidace.com /v1/projects/{project_id}/replays/comments/search Scope replay:readParameters
project_idstringpathrequiredqstringpathrequiredWords, "quoted phrases",
-excluded words and OR (Postgres websearch syntax).session_idstringpathrequiredOnly this replay's comments.
limitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/comments/search"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 newest first; each row's session_id opens the replay at at_ms
Example
{
"data": [
{
"assignee_id": "string",
"at_ms": 0,
"body": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"is_task": true,
"point_node": 0,
"point_node_x": 0,
"point_node_y": 0,
"point_x": 0,
"point_y": 0,
"resolved_at": "2024-01-01T00:00:00Z",
"session_id": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
assignee_idstringat_msintegerrequiredOffset into the recording, in ms.
bodystringrequiredcreated_atstringrequiredcreated_bystringidstringrequiredis_taskbooleanrequiredA task: someone should act on it; done when
resolved_at is set.point_nodeintegerRecorded DOM node (rrweb mirror id) the point is anchored to, and the point inside its box (fractions 0..1): the player follows the node when the page reflows (G240).
point_node_xnumberpoint_node_ynumberpoint_xnumberPoint on the frame the comment is pinned to, as fractions of the viewport (0..1).
point_ynumberresolved_atstringsession_idstringrequirednext_cursorstring400
404
POST
https://lucidace.com /v1/projects/{project_id}/replays/export/bulk Scope replay:read pii:readParameters
project_idstringpathrequiredRequest body
application/json
session_idsstring[]required1 to 50 replays.
{
"session_ids": [
"string"
]
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replays/export/bulk" \
-H "Content-Type: application/json" \
-d '{"session_ids":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 one ReplayExport per line; missing or erased replays are skipped
400
403
404
POST
https://lucidace.com /v1/projects/{project_id}/replays/export/window Scope replay:read pii:readParameters
project_idstringpathrequiredRequest body
application/json
cursorstringnext_cursor of the previous page.fromstringrequiredReplays that started at or after this instant.
limitinteger1 to 50 replays per page (default 10).
tostringrequiredReplays that started before this instant.
{
"cursor": "string",
"from": "2024-01-01T00:00:00Z",
"limit": 0,
"to": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replays/export/window" \
-H "Content-Type: application/json" \
-d '{"cursor":"string","from":"2024-01-01T00:00:00Z","limit":0,"to":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 replays that started in [from, to), oldest first; erased ones are skipped. A recording over ~16 MiB comes in parts (same replay, consecutive chunk_range, last_part false until the end); next_cursor resumes mid-recording
Example
{
"data": [
{
"chunk_range": {
"first_seq": 0,
"last_seq": 0
},
"chunks": [
{
"gzip_base64": "string",
"seq": 0
}
],
"comments": [
{
"assignee_id": "string",
"at_ms": 0,
"body": "string",
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"id": "string",
"is_task": true,
"point_node": 0,
"point_node_x": 0,
"point_node_y": 0,
"point_x": 0,
"point_y": 0,
"resolved_at": "2024-01-01T00:00:00Z",
"session_id": "string"
}
],
"external_markers": [
{
"kind": "string",
"offset_ms": 0,
"source": "string",
"title": "string",
"ts": "2024-01-01T00:00:00Z",
"url": "string"
}
],
"last_part": true,
"markers": [
{
"event": "string",
"flag": "string",
"kind": "string",
"offset_ms": 0,
"path": "string",
"properties": {},
"selector": "string",
"ts": "2024-01-01T00:00:00Z"
}
],
"replay": {
"active_ms": 0,
"chunk_count": 0,
"click_count": 0,
"distinct_id": "string",
"duration_s": 0,
"ended_at": "2024-01-01T00:00:00Z",
"first_url": "string",
"keypress_count": 0,
"legal_hold": true,
"person_id": "string",
"retention_until": "2024-01-01T00:00:00Z",
"session_id": "string",
"size_bytes": 0,
"started_at": "2024-01-01T00:00:00Z",
"urls": [
"string"
]
}
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
chunk_rangeChunkRangerequiredShow child parameters
first_seqintegerrequiredlast_seqintegerrequiredchunksRawChunk[]requiredShow child parameters
gzip_base64stringrequiredseqintegerrequiredcommentsReplayComment[]requiredShow child parameters
assignee_idstringat_msintegerrequiredOffset into the recording, in ms.
bodystringrequiredcreated_atstringrequiredcreated_bystringidstringrequiredis_taskbooleanrequiredA task: someone should act on it; done when
resolved_at is set.point_nodeintegerRecorded DOM node (rrweb mirror id) the point is anchored to, and the point inside its box (fractions 0..1): the player follows the node when the page reflows (G240).
point_node_xnumberpoint_node_ynumberpoint_xnumberPoint on the frame the comment is pinned to, as fractions of the viewport (0..1).
point_ynumberresolved_atstringsession_idstringrequiredexternal_markersExternalMarkerView[]requiredShow child parameters
kindstringrequiredoffset_msintegerrequiredsourcestringrequiredtitlestringrequiredtsstringrequiredurlstringrequiredlast_partbooleanrequiredFalse when more parts of this recording follow in the
export/window stream (later parts repeat replay but carry no markers or comments).markersEventMarkerView[]requiredShow child parameters
eventstringrequiredflagstringrequiredkindstringrequiredautocapture | navigation | signal | flag | survey | form | system | custom
offset_msintegerrequiredpathstringrequiredpropertiesobjectrequiredEvent properties; null for roles without PII access.
selectorstringrequiredtsstringrequiredreplayobjectrequiredReplay metadata (
ReplayMeta::view).Show child parameters
active_msintegerrequiredchunk_countintegerrequiredclick_countintegerrequireddistinct_idstringrequiredPseudonymised (
anon-xxxxxxxx) for roles without PII access.duration_sintegerrequiredended_atstringrequiredfirst_urlstringrequiredkeypress_countintegerrequiredKey presses counted by the browser SDK (none in password, masked or blocked fields); for older SDKs, input events (one per field change).
legal_holdbooleanrequiredperson_idstringrequiredretention_untilstringrequiredsession_idstringrequiredsize_bytesintegerrequiredstarted_atstringrequiredurlsstring[]requirednext_cursorstring400
403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/replays/moments Scope replay:readParameters
project_idstringpathrequiredsession_idstringqueryplaylist_idstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/moments"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Newest first
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"end_ms": 0,
"id": "string",
"note": "string",
"playlist_id": "string",
"session_id": "string",
"start_ms": 0,
"title": "string",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
created_atstringrequiredcreated_bystringend_msintegerrequiredidstringrequirednotestringrequiredplaylist_idstringsession_idstringrequiredstart_msintegerrequiredOffset into the recording, ms.
titlestringrequiredupdated_atstringrequirednext_cursorstring400
404
PUT
https://lucidace.com /v1/projects/{project_id}/replays/moments/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
end_msintegerrequiredExclusive end, ms; after
start_ms and at most a day later.notestringplaylist_idstringFile the moment in this playlist (collection) of the project.
start_msintegerrequiredOffset into the recording, ms.
titlestringrequired{
"end_ms": 0,
"note": "string",
"playlist_id": "string",
"start_ms": 0,
"title": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/replays/moments/{id}" \
-H "Content-Type: application/json" \
-d '{"end_ms":0,"note":"string","playlist_id":"string","start_ms":0,"title":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"created_at": "2024-01-01T00:00:00Z",
"created_by": "string",
"end_ms": 0,
"id": "string",
"note": "string",
"playlist_id": "string",
"session_id": "string",
"start_ms": 0,
"title": "string",
"updated_at": "2024-01-01T00:00:00Z"
}Schema
created_atstringrequiredcreated_bystringend_msintegerrequiredidstringrequirednotestringrequiredplaylist_idstringsession_idstringrequiredstart_msintegerrequiredOffset into the recording, ms.
titlestringrequiredupdated_atstringrequired400
403
404
Updated