errors.replays.segments

Read a replay’s recording, 30 segments (about 2½ minutes) per page: rrweb events, as an rrweb player replays them, and the page’s timeline markers

GET /errors/api/projects/{id}/replays/{replayId}/segmentsIAM errors:GetReplayReadSensitive read, audited

Request syntax

GET /errors/api/projects/{id}/replays/{replayId}/segments

Path parameters

  • idRequired

    string

    Constraints: uuid

  • replayIdRequired

    string

Query parameters

  • grantRequired

    string

    The playbackGrant that GET …/replays/{replayId} returned (valid 15 minutes)

    Constraints: 10-200 chars

  • fromOptional

    number

    First segment number of the page (0 for the start, then the answer’s next)

    Constraints: integer, min 0

    Default: 0

Response

200 with { segments, next, unreadable, markers }: `segments` (segmentId, events: the rrweb event list, already scrubbed); `next` the `from` of the next page, null at the end; `markers` console lines, network calls, navigations and clicks (offsetMs, kind, label, detail, failed). 403 when the grant is missing, expired or another principal’s.

A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.

Errors

  • 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
  • 401No credentials, or an access key that is unknown, revoked or expired.
  • 403The caller's policies do not allow errors:GetReplay on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
  • 404The resource does not exist in your organization.

Examples

The required parameters only, with example values. Replace id and the other placeholders with your own.

dcloud errors replays segments id replayId --grant example

Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_errors_replays_segments.