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>
GEThttps://lucidace.com/v1/projects/{project_id}/replays/capture-healthScope replay:read

Replays per session over the last 24 h against the 7 days before (capture-cliff signal).

Parameters

project_idstringpathrequired

Code 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_rationumberrequired
baseline_replaysintegerrequired
baseline_sessionsintegerrequired
recent_rationumberrequired
recent_replaysintegerrequired
recent_sessionsintegerrequired
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/replays/comments/searchScope replay:read

Parameters

project_idstringpathrequired
qstringpathrequired
Words, "quoted phrases", -excluded words and OR (Postgres websearch syntax).
session_idstringpathrequired
Only this replay's comments.
limitintegerquery
cursorstringquery

Code 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[]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
next_cursorstring
400
404
POSThttps://lucidace.com/v1/projects/{project_id}/replays/export/bulkScope replay:read pii:read

Parameters

project_idstringpathrequired

Request body

application/json
session_idsstring[]required
1 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
POSThttps://lucidace.com/v1/projects/{project_id}/replays/export/windowScope replay:read pii:read

Parameters

project_idstringpathrequired

Request body

application/json
cursorstring
next_cursor of the previous page.
fromstringrequired
Replays that started at or after this instant.
limitinteger
1 to 50 replays per page (default 10).
tostringrequired
Replays 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[]required
Show child parameters
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
next_cursorstring
400
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/replays/momentsScope replay:read

Parameters

project_idstringpathrequired
session_idstringquery
playlist_idstringquery
limitintegerquery
cursorstringquery

Code 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[]required
Show child parameters
created_atstringrequired
created_bystring
end_msintegerrequired
idstringrequired
notestringrequired
playlist_idstring
session_idstringrequired
start_msintegerrequired
Offset into the recording, ms.
titlestringrequired
updated_atstringrequired
next_cursorstring
400
404
PUThttps://lucidace.com/v1/projects/{project_id}/replays/moments/{id}Scope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request body

application/json
end_msintegerrequired
Exclusive end, ms; after start_ms and at most a day later.
notestring
playlist_idstring
File the moment in this playlist (collection) of the project.
start_msintegerrequired
Offset 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_atstringrequired
created_bystring
end_msintegerrequired
idstringrequired
notestringrequired
playlist_idstring
session_idstringrequired
start_msintegerrequired
Offset into the recording, ms.
titlestringrequired
updated_atstringrequired
400
403
404

Updated