---
title: "Replay a persisted agent run checkpoint deterministically"
method: POST
path: "/v1/agent/runs/{run_id}/replay"
tags: ["Agent Runtime"]
---

# Replay a persisted agent run checkpoint deterministically

`POST /v1/agent/runs/{run_id}/replay`

## Request

- Base URL: `https://api.algenta.ai`
- URL: `https://api.algenta.ai/v1/agent/runs/{run_id}/replay`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `run_id` string, uuid, required

## Request body

- AgentRunReplayRequest
  - `checkpoint_id` string, nullable: Optional checkpoint to replay from. Defaults to the latest checkpoint.

## Response `200`

Successful Response

- AgentRunReplayResponse
  - `object` string
  - `run_id` string, required
  - `checkpoint_id` string, required
  - `replay_status` 'matched' | 'mismatch', required
  - `compared_event_count` integer, required
  - `checkpoint_count` integer, required
  - `request_hash` string, required
  - `decision_hash` string, required
  - `content_hash` string, required
  - `policy_snapshot_id` string, required
  - `schema_snapshot_id` string, required
  - `manifest_version` string, required
  - `failure_code` string, nullable
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/codna/apis/algenta-api.md) · [All operations](https://skmtc.dev/codna/apis/algenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/codna/apis/algenta-api/revisions/35d30f84a5df?raw)
