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>
DELETEhttps://lucidace.com/v1/projects/{project_id}/replays/moments/{id}Scope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

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

Parameters

project_idstringpathrequired

Code 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[]required
Show child parameters
channelsrequired
Stored form (Slack URLs sealed); routes redact before returning.
checked_atstringrequired
created_atstringrequired
drop_rationumberrequired
enabledbooleanrequired
idstringrequired
kindstringrequired
frustrated | tagged | capture_cliff
last_fired_atstring
min_frustrationintegerrequired
namestringrequired
tagstring
next_cursorstring
404
POSThttps://lucidace.com/v1/projects/{project_id}/replays/notify-rulesScope replay:write

Parameters

project_idstringpathrequired

Request 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[]required
drop_rationumber
enabledboolean
kindstringrequired
frustrated | tagged | capture_cliff
min_frustrationinteger
namestringrequired
tagstring
{
  "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
channelsrequired
Stored form (Slack URLs sealed); routes redact before returning.
checked_atstringrequired
created_atstringrequired
drop_rationumberrequired
enabledbooleanrequired
idstringrequired
kindstringrequired
frustrated | tagged | capture_cliff
last_fired_atstring
min_frustrationintegerrequired
namestringrequired
tagstring
400
404
PUThttps://lucidace.com/v1/projects/{project_id}/replays/notify-rules/{id}Scope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Request 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[]required
drop_rationumber
enabledboolean
kindstringrequired
frustrated | tagged | capture_cliff
min_frustrationinteger
namestringrequired
tagstring
{
  "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

Responses

400
404
DELETEhttps://lucidace.com/v1/projects/{project_id}/replays/notify-rules/{id}Scope replay:write

Parameters

project_idstringpathrequired
idstringpathrequired

Code 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
POSThttps://lucidace.com/v1/projects/{project_id}/replays/searchScope replay:read

Parameters

project_idstringpathrequired

Request 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 back
Example
{
  "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[]required
Show child parameters
active_msintegerrequired
ai_tagsstring[]required
chunk_countintegerrequired
click_countintegerrequired
console_error_countinteger
Console error entries (incl. uncaught errors) in the recording's replay context.
distinct_idstringrequired
duration_sintegerrequired
ended_atstringrequired
first_urlstringrequired
frustration_countintegerrequired
has_console_errorboolean
has_network_5xxboolean
At least one request answered with a 5xx status.
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
network_error_countinteger
Network requests that failed (status >= 400 or no response).
person_idstringrequired
retention_untilstringrequired
When the retention sweeper deletes it (legal hold keeps it).
session_idstringrequired
size_bytesintegerrequired
started_atstringrequired
tagsstring[]
Manual tags (PATCH /replays/{id}; replays/search only).
urlsstring[]required
viewedboolean
Watched by the caller (replays/search only).
next_cursorstring
400
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/replays/storageScope replay:read

Parameters

project_idstringpathrequired

Code 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_bytesinteger
The cap; null = uncapped.
oldest_session_atstring
pct_usednumber
used / budget; null when uncapped or the cap is zero.
policystringrequired
What happens past the cap: evict the oldest replays, or stop recording.
recording_stoppedbooleanrequired
The stop policy has switched recording off in the SDK settings.
sessionsintegerrequired
statestringrequired
uncapped | ok | warning | over
used_bytesintegerrequired
404
503
PUThttps://lucidace.com/v1/projects/{project_id}/replays/storage/budgetScope admin

Parameters

project_idstringpathrequired

Request body

application/json
budget_bytesinteger
Cap in bytes (0 to 1 PB); null removes the cap.
policystring
evict (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

Responses

400
403
404
503
GEThttps://lucidace.com/v1/projects/{project_id}/replays/tagsScope replay:read

Manual tags in use in the project, most used first (at most 200).

Parameters

project_idstringpathrequired

Code 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
replaysintegerrequired
tagstringrequired
403
404

Updated