replays
DELETE
https://lucidace.com /v1/projects/{project_id}/replays/moments/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/replays/moments/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/projects/{project_id}/replays/notify-rules Scope replay:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/notify-rules"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"channels": {},
"checked_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z",
"drop_ratio": 0,
"enabled": true,
"id": "string",
"kind": "string",
"last_fired_at": "2024-01-01T00:00:00Z",
"min_frustration": 0,
"name": "string",
"tag": "string"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
channelsrequiredStored form (Slack URLs sealed); routes redact before returning.
checked_atstringrequiredcreated_atstringrequireddrop_rationumberrequiredenabledbooleanrequiredidstringrequiredkindstringrequiredfrustrated | tagged | capture_clifflast_fired_atstringmin_frustrationintegerrequirednamestringrequiredtagstringnext_cursorstring404
POST
https://lucidace.com /v1/projects/{project_id}/replays/notify-rules Scope replay:writeParameters
project_idstringpathrequiredRequest body
application/json
A notification rule. frustrated uses min_frustration, tagged needs tag, capture_cliff uses drop_ratio. Channels as for alerts (email, slack, webhook).
channelsobject[]requireddrop_rationumberenabledbooleankindstringrequiredfrustrated | tagged | capture_cliffmin_frustrationintegernamestringrequiredtagstring{
"channels": [
{}
],
"drop_ratio": 0,
"enabled": true,
"kind": "string",
"min_frustration": 0,
"name": "string",
"tag": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replays/notify-rules" \
-H "Content-Type: application/json" \
-d '{"channels":[{}],"drop_ratio":0,"enabled":true,"kind":"string","min_frustration":0,"name":"string","tag":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"channels": {},
"checked_at": "2024-01-01T00:00:00Z",
"created_at": "2024-01-01T00:00:00Z",
"drop_ratio": 0,
"enabled": true,
"id": "string",
"kind": "string",
"last_fired_at": "2024-01-01T00:00:00Z",
"min_frustration": 0,
"name": "string",
"tag": "string"
}Schema
channelsrequiredStored form (Slack URLs sealed); routes redact before returning.
checked_atstringrequiredcreated_atstringrequireddrop_rationumberrequiredenabledbooleanrequiredidstringrequiredkindstringrequiredfrustrated | tagged | capture_clifflast_fired_atstringmin_frustrationintegerrequirednamestringrequiredtagstring400
404
PUT
https://lucidace.com /v1/projects/{project_id}/replays/notify-rules/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredRequest body
application/json
A notification rule. frustrated uses min_frustration, tagged needs tag, capture_cliff uses drop_ratio. Channels as for alerts (email, slack, webhook).
channelsobject[]requireddrop_rationumberenabledbooleankindstringrequiredfrustrated | tagged | capture_cliffmin_frustrationintegernamestringrequiredtagstring{
"channels": [
{}
],
"drop_ratio": 0,
"enabled": true,
"kind": "string",
"min_frustration": 0,
"name": "string",
"tag": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/replays/notify-rules/{id}" \
-H "Content-Type: application/json" \
-d '{"channels":[{}],"drop_ratio":0,"enabled":true,"kind":"string","min_frustration":0,"name":"string","tag":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
DELETE
https://lucidace.com /v1/projects/{project_id}/replays/notify-rules/{id} Scope replay:writeParameters
project_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/projects/{project_id}/replays/notify-rules/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404
POST
https://lucidace.com /v1/projects/{project_id}/replays/search Scope replay:readBody = `ReplayListSpec` fields (`date_range` defaults to the last 30 days) plus an optional `funnel`: a `funnel_persons` query document (`step`, `converted`) whose sessions restrict the list; `hide_viewed: true` leaves out what the caller watched, and `collection` picks a built-in collection (`watch_history`, `with_comments`, `shared`, `exported`, `expiring_soon`). Rows carry `viewed` for the caller.
Parameters
project_idstringpathrequiredRequest body
application/json
ReplayListSpec plus optional funnel
{}Code samples
cURL
curl -X POST "https://lucidace.com/v1/projects/{project_id}/replays/search" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
next_cursor is the cursor to send backExample
{
"data": [
{
"active_ms": 0,
"ai_tags": [
"string"
],
"chunk_count": 0,
"click_count": 0,
"console_error_count": 0,
"distinct_id": "string",
"duration_s": 0,
"ended_at": "string",
"first_url": "string",
"frustration_count": 0,
"has_console_error": true,
"has_network_5xx": true,
"keypress_count": 0,
"legal_hold": true,
"network_error_count": 0,
"person_id": "string",
"retention_until": "string",
"session_id": "string",
"size_bytes": 0,
"started_at": "string",
"tags": [
"string"
],
"urls": [
"string"
],
"viewed": true
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
active_msintegerrequiredai_tagsstring[]requiredchunk_countintegerrequiredclick_countintegerrequiredconsole_error_countintegerConsole
error entries (incl. uncaught errors) in the recording's replay context.distinct_idstringrequiredduration_sintegerrequiredended_atstringrequiredfirst_urlstringrequiredfrustration_countintegerrequiredhas_console_errorbooleanhas_network_5xxbooleanAt least one request answered with a 5xx status.
keypress_countintegerrequiredKey presses counted by the browser SDK (none in password, masked or blocked fields); for older SDKs, input events (one per field change).
legal_holdbooleanrequirednetwork_error_countintegerNetwork requests that failed (status >= 400 or no response).
person_idstringrequiredretention_untilstringrequiredWhen the retention sweeper deletes it (legal hold keeps it).
session_idstringrequiredsize_bytesintegerrequiredstarted_atstringrequiredtagsstring[]Manual tags (
PATCH /replays/{id}; replays/search only).urlsstring[]requiredviewedbooleanWatched by the caller (
replays/search only).next_cursorstring400
403
404
503
GET
https://lucidace.com /v1/projects/{project_id}/replays/storage Scope replay:readParameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/storage"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"budget_bytes": 0,
"oldest_session_at": "2024-01-01T00:00:00Z",
"pct_used": 0,
"policy": "string",
"recording_stopped": true,
"sessions": 0,
"state": "string",
"used_bytes": 0
}Schema
budget_bytesintegerThe cap; null = uncapped.
oldest_session_atstringpct_usednumberused / budget; null when uncapped or the cap is zero.policystringrequiredWhat happens past the cap:
evict the oldest replays, or stop recording.recording_stoppedbooleanrequiredThe
stop policy has switched recording off in the SDK settings.sessionsintegerrequiredstatestringrequireduncapped | ok | warning | overused_bytesintegerrequired404
503
PUT
https://lucidace.com /v1/projects/{project_id}/replays/storage/budget Scope adminParameters
project_idstringpathrequiredRequest body
application/json
budget_bytesintegerCap in bytes (0 to 1 PB); null removes the cap.
policystringevict (default) deletes the oldest replays past the cap; stop switches recording off in the SDK settings until usage is back under the cap. Omitted = unchanged.{
"budget_bytes": 0,
"policy": "string"
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/projects/{project_id}/replays/storage/budget" \
-H "Content-Type: application/json" \
-d '{"budget_bytes":0,"policy":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
GET
https://lucidace.com /v1/projects/{project_id}/replays/tags Scope replay:readManual tags in use in the project, most used first (at most 200).
Parameters
project_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/projects/{project_id}/replays/tags"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
[
{
"replays": 0,
"tag": "string"
}
]Schema
replaysintegerrequiredtagstringrequired403
404
Updated