Replays
Get a replay
GET
Returns one recorded session with its user, device, segments and the errors and logs linked to it.
cookiecookie
better-auth.session_token<token>Dashboard session cookie
sessionId*stringMatch
^[0-9a-f]{32}$application/json- response
projectId*stringsessionId*stringstartedAt*stringFormat
date-timeendedAt*stringFormat
date-timedurationMs*numberactiveMs*numberclickCount*integererrorCount*integersegmentCount*integerurl*stringenvironment*stringrelease*stringbrowserName*stringbrowserVersion*stringosName*stringviewport*user*|nullerrors*array<>logs*array<>segments*array<>curl -X GET 'https://api.example.com/api/v1/replays/string'Example Response
{
"projectId": "string",
"sessionId": "string",
"startedAt": "2019-08-24T14:15:22Z",
"endedAt": "2019-08-24T14:15:22Z",
"durationMs": 0,
"activeMs": 0,
"clickCount": 0,
"errorCount": 0,
"segmentCount": 0,
"url": "string",
"environment": "string",
"release": "string",
"browserName": "string",
"browserVersion": "string",
"osName": "string",
"viewport": {
"width": 0,
"height": 0
},
"user": {
"id": "string",
"name": "string",
"email": "string",
"avatar": "string",
"url": "string"
},
"errors": [
{
"id": "string",
"projectId": "string",
"fingerprint": "string",
"timestamp": "2019-08-24T14:15:22Z",
"environment": "string",
"platform": "server",
"level": "warn",
"handled": true,
"type": "string",
"message": "string",
"culprit": "string",
"stack": "string",
"rawStack": "string",
"transaction": "string",
"traceId": "string",
"spanId": "string",
"userId": "string",
"attributes": {
"property1": "string",
"property2": "string"
},
"resourceAttributes": {
"property1": "string",
"property2": "string"
},
"groupId": "string"
}
],
"logs": [
{
"id": "string",
"projectId": "string",
"timestamp": "2019-08-24T14:15:22Z",
"observedAt": "2019-08-24T14:15:22Z",
"severity": "trace",
"severityNumber": 0,
"body": "string",
"environment": "string",
"platform": "server",
"traceId": "string",
"spanId": "string",
"scopeName": "string",
"attributes": {
"property1": "string",
"property2": "string"
},
"resourceAttributes": {
"property1": "string",
"property2": "string"
}
}
],
"segments": [
{
"segment": 0,
"startedAt": "2019-08-24T14:15:22Z",
"endedAt": "2019-08-24T14:15:22Z",
"sizeBytes": 0
}
]
}