Skip to content

Replays

Stored events sent again, one at a time or in bulk. Authentication, errors and limits are on the overview.

List replays

GET /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}/replays

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID

Responses

StatusDescriptionBody
200The event's replays, each with its delivery's statusReplayList
401No API key, or it is invalid or revokedProblem
404No such event, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Replay event

POST /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}/replays

Send the stored event again, unchanged, as a new delivery.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID

Request body

JSON, ReplayEvent.

FieldTypeDescription
destination_environment_idstring | nullenv_ ID of another of the project's environments the destination is in; the event's own by default.
destination_id requiredstringdst_ ID: the event's original destination or another one.

Responses

StatusDescriptionBody
201Replayed: its delivery's first attempt is queuedReplay
401No API key, or it is invalid or revokedProblem
403A viewer, or into production from another environment without being an admin or ownerProblem
404No such event, or no accessProblem
409The event is quarantined: release it insteadProblem
422No such destinationProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Create replay job

POST /api/v1/projects/{project_id}/environments/{environment_id}/replay-jobs

Match a selection of events and count them; nothing is sent until the job is started.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID

Request body

JSON, CreateReplayJob.

FieldTypeDescription
destination_environment_idstring | nullenv_ ID of another of the project's environments the destination is in.
destination_idstring | nulldst_ ID to replay every event to; without one, each event goes to its original destinations.
rate_per_secondinteger (int64) | nullReplays started per second, 1 to 100; default 10. The destination's own limits still apply.
selection requiredSelection

Responses

StatusDescriptionBody
201Counted and ready to start; at most 10,000 replaysReplayJob
401No API key, or it is invalid or revokedProblem
403A viewer, or into production from another environment without being an admin or ownerProblem
404No such environment, or no accessProblem
422An invalid selection or destinationProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Get replay job

GET /api/v1/projects/{project_id}/environments/{environment_id}/replay-jobs/{replay_job_id}

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
replay_job_id requiredpathstringrpj_ ID

Responses

StatusDescriptionBody
200The job and its progressReplayJob
401No API key, or it is invalid or revokedProblem
404No such job, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Cancel replay job

POST /api/v1/projects/{project_id}/environments/{environment_id}/replay-jobs/{replay_job_id}/cancel

Replay nothing more; its replays still in progress stop and count as failed.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
replay_job_id requiredpathstringrpj_ ID

Responses

StatusDescriptionBody
200CancelledReplayJob
401No API key, or it is invalid or revokedProblem
404No such job, or no accessProblem
409It has finishedProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Pause replay job

POST /api/v1/projects/{project_id}/environments/{environment_id}/replay-jobs/{replay_job_id}/pause

Stop after the current batch; replays already made go on.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
replay_job_id requiredpathstringrpj_ ID

Responses

StatusDescriptionBody
200PausedReplayJob
401No API key, or it is invalid or revokedProblem
404No such job, or no accessProblem
409It is not runningProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Start replay job

POST /api/v1/projects/{project_id}/environments/{environment_id}/replay-jobs/{replay_job_id}/start

Start a ready job, or resume a paused one.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
replay_job_id requiredpathstringrpj_ ID

Responses

StatusDescriptionBody
200RunningReplayJob
401No API key, or it is invalid or revokedProblem
404No such job, or no accessProblem
409It is running or finishedProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem