Get a session's replay
const url = 'https://digize.com/api/v1/analytics/replays/example';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/analytics/replays/example \ --header 'x-api-key: <x-api-key>'Whether session replay recorded a session on the workspace’s sites, and each page view it recorded: the page, when it began, how long it ran, its chunks and their size. No segments means there’s nothing to watch. A member watches it on the session’s page in Analytics › Sessions; recordings are kept 30 days.
Needs the analytics:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The session id, from a list of sessions.
Query Parameters
Section titled “Query Parameters”The site it was on, by its Worker id; every site’s when left out.
The site it was on, by its Worker id; every site’s when left out.
Responses
Section titled “Responses”Done
object
Each page view recorded, in the order they began; none when the session wasn’t recorded.
object
The page view’s id, as the session’s timeline events carry it.
The page, without its query.
Stored, compressed where the browser could.
All the segments together.
Example generated
{ "session": "example", "segments": [ { "siteId": "example", "pageId": "example", "path": "example", "startedAt": "2026-04-15T12:00:00Z", "durationMs": 1, "chunks": 1, "bytes": 1 } ], "durationMs": 1, "bytes": 1}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}