Skip to Content
OpenPerf

Replays

Get a replay

GET
/api/v1/replays/{sessionId}

Returns one recorded session with its user, device, segments and the errors and logs linked to it.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Path Parameters

sessionId*string
Match^[0-9a-f]{32}$

Response Body

application/json
  1. response
projectId*string
sessionId*string
startedAt*string
Formatdate-time
endedAt*string
Formatdate-time
durationMs*number
activeMs*number
clickCount*integer
errorCount*integer
segmentCount*integer
url*string
environment*string
release*string
browserName*string
browserVersion*string
osName*string
viewport*
user*|null
errors*array<>
logs*array<>
segments*array<>
Example Request
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
    }
  ]
}