Skip to content

Get a session's replay

GET
/api/v1/analytics/replays/{session}
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.

session
required

The session id, from a list of sessions.

string
/^[a-z0-9]{8,32}$/
siteId

The site it was on, by its Worker id; every site’s when left out.

string
/^[A-Za-z0-9_-]{1,64}$/

The site it was on, by its Worker id; every site’s when left out.

Done

Media typeapplication/json
object
session
required
string
segments
required

Each page view recorded, in the order they began; none when the session wasn’t recorded.

Array<object>
object
siteId
required
string
pageId
required

The page view’s id, as the session’s timeline events carry it.

string
path
required

The page, without its query.

string
startedAt
required
string format: date-time
durationMs
required
number
chunks
required
number
bytes
required

Stored, compressed where the browser could.

number
durationMs
required

All the segments together.

number
bytes
required
number

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).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}