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}/replays/{session_id}/evidenceScope replay:write

Parameters

project_idstringpathrequired
session_idstringpathrequired

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replays/{session_id}/evidence"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 signed evidence bundle (JSON download), audited as replay.evidence_exported
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/replays/{session_id}/experiment-markersScope replay:read

Parameters

project_idstringpathrequired
session_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/{session_id}/experiment-markers"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 in playhead order
Example
{
  "data": [
    {
      "event": "string",
      "experiment_id": "string",
      "experiment_name": "string",
      "kind": "string",
      "metric": "string",
      "offset_ms": 0,
      "role": "string",
      "variant": "string"
    }
  ]
}
Schema
dataExperimentMarker[]required
Show child parameters
eventstringrequired
experiment_idstringrequired
experiment_namestringrequired
kindstringrequired
exposure | metric
metricstring
The metric's name (metric markers).
offset_msintegerrequired
rolestring
primary | secondary (metric markers).
variantstring
404
GEThttps://lucidace.com/v1/projects/{project_id}/replays/{session_id}/exportScope replay:read pii:read

Parameters

project_idstringpathrequired
session_idstringpathrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/{session_id}/export"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 metadata, markers, comments and the raw chunks (base64)
Example
{
  "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"
    ]
  }
}
Schema
chunk_rangeChunkRangerequired
Show child parameters
first_seqintegerrequired
last_seqintegerrequired
chunksRawChunk[]required
Show child parameters
gzip_base64stringrequired
seqintegerrequired
commentsReplayComment[]required
Show child parameters
assignee_idstring
at_msintegerrequired
Offset into the recording, in ms.
bodystringrequired
created_atstringrequired
created_bystring
idstringrequired
is_taskbooleanrequired
A task: someone should act on it; done when resolved_at is set.
point_nodeinteger
Recorded 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_xnumber
point_node_ynumber
point_xnumber
Point on the frame the comment is pinned to, as fractions of the viewport (0..1).
point_ynumber
resolved_atstring
session_idstringrequired
external_markersExternalMarkerView[]required
Show child parameters
kindstringrequired
offset_msintegerrequired
sourcestringrequired
titlestringrequired
tsstringrequired
urlstringrequired
last_partbooleanrequired
False when more parts of this recording follow in the export/window stream (later parts repeat replay but carry no markers or comments).
markersEventMarkerView[]required
Show child parameters
eventstringrequired
flagstringrequired
kindstringrequired
autocapture | navigation | signal | flag | survey | form | system | custom
offset_msintegerrequired
pathstringrequired
propertiesobjectrequired
Event properties; null for roles without PII access.
selectorstringrequired
tsstringrequired
replayobjectrequired
Replay metadata (ReplayMeta::view).
Show child parameters
active_msintegerrequired
chunk_countintegerrequired
click_countintegerrequired
distinct_idstringrequired
Pseudonymised (anon-xxxxxxxx) for roles without PII access.
duration_sintegerrequired
ended_atstringrequired
first_urlstringrequired
keypress_countintegerrequired
Key presses counted by the browser SDK (none in password, masked or blocked fields); for older SDKs, input events (one per field change).
legal_holdbooleanrequired
person_idstringrequired
retention_untilstringrequired
session_idstringrequired
size_bytesintegerrequired
started_atstringrequired
urlsstring[]required
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/replays/{session_id}/export/htmlScope replay:read pii:read

A self-contained HTML player for the replay (or a clip of it): rrweb replay bundle, styles and events in one file that plays offline. MP4/GIF renders of the same document go through `replays_video` (queued, rendered by the headless renderer).

Parameters

project_idstringpathrequired
session_idstringpathrequired
start_msintegerquery
end_msintegerquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/{session_id}/export/html"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 standalone HTML player
"string"
400
403
404
POSThttps://lucidace.com/v1/projects/{project_id}/replays/{session_id}/exports/videoScope replay:read pii:read

Parameters

project_idstringpathrequired
session_idstringpathrequired

Request body

application/json
end_msinteger
End offset, ms (default: the end of the recording).
formatstringrequired
mp4 | gif
fpsinteger
Frames per second, 1..=30 (default 10).
player_chromeboolean
Keep the player header with elapsed time (default false).
skip_idleboolean
Collapse idle stretches (default false).
start_msinteger
Offset into the recording, ms (default 0).
widthinteger
Output width in px, 1..=1920 (default: natural size).
{
  "end_ms": 0,
  "format": "string",
  "fps": 0,
  "player_chrome": true,
  "skip_idle": true,
  "start_ms": 0,
  "width": 0
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replays/{session_id}/exports/video" \
  -H "Content-Type: application/json" \
  -d '{"end_ms":0,"format":"string","fps":0,"player_chrome":true,"skip_idle":true,"start_ms":0,"width":0}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

202 Queued; poll the export, then follow download_url
Example
{
  "completed_at": "2024-01-01T00:00:00Z",
  "created_at": "2024-01-01T00:00:00Z",
  "end_ms": 0,
  "error": "string",
  "expires_at": "2024-01-01T00:00:00Z",
  "format": "string",
  "fps": 0,
  "id": "string",
  "player_chrome": true,
  "requested_by": "string",
  "session_id": "string",
  "size_bytes": 0,
  "skip_idle": true,
  "start_ms": 0,
  "status": "string",
  "width": 0,
  "download_url": "string"
}
Schema
completed_atstring
created_atstringrequired
end_msinteger
None = to the end of the recording.
errorstring
expires_atstring
formatstringrequired
mp4 | gif
fpsintegerrequired
idstringrequired
player_chromebooleanrequired
requested_bystring
session_idstringrequired
size_bytesinteger
skip_idlebooleanrequired
start_msintegerrequired
statusstringrequired
pending | running | done | failed
widthinteger
Output width in px (None = natural size).
download_urlstring
Present once the export is done and not expired.
400
403
404
429 too many exports in flight
503 no renderer or object store
PUThttps://lucidace.com/v1/projects/{project_id}/replays/{session_id}/hold

Parameters

project_idstringpathrequired
session_idstringpathrequired

Request body

application/json
holdbooleanrequired
{
  "hold": true
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/replays/{session_id}/hold" \
  -H "Content-Type: application/json" \
  -d '{"hold":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
GEThttps://lucidace.com/v1/projects/{project_id}/replays/{session_id}/issuesScope replay:read

Parameters

project_idstringpathrequired
session_idstringpathrequired
limitintegerquery
cursorstringquery

Code samples

cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/{session_id}/issues"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Newest first
Example
{
  "data": [
    {
      "at_ms": 0,
      "connection_id": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "created_by": "string",
      "external_id": "string",
      "external_key": "string",
      "id": "string",
      "provider": "string",
      "session_id": "string",
      "title": "string",
      "url": "string"
    }
  ],
  "next_cursor": "string"
}
Schema
dataobject[]required
Show child parameters
at_msinteger
Replay timestamp the issue links to, ms.
connection_idstring
created_atstringrequired
created_bystring
external_idstringrequired
external_keystringrequired
Human key: ENG-12, owner/repo#7, PROJ-3, #4.
idstringrequired
providerstringrequired
session_idstringrequired
titlestringrequired
urlstringrequired
next_cursorstring
400
404

Updated