---
title: "Dry-run guardrail changes against recent transactions"
method: POST
path: "/v1/agents/{agent_id}/guardrails/replay"
tags: ["Agents"]
---

# Dry-run guardrail changes against recent transactions

`POST /v1/agents/{agent_id}/guardrails/replay`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/agents/{agent_id}/guardrails/replay`
- Auth: HTTP bearer

Human-only. Compares draft guardrails against recent agent transactions.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- GuardrailReplayRequest
  - `days` integer
  - `draft_guardrails` object
  - `draft_approval_policy` object

## Response `200`

Replay report

- GuardrailReplayResponse
  - `agent_id` string, uuid
  - `window_days` integer
  - `allowed` integer
  - `denied` integer
  - `would_require_approval` integer
  - `samples` object[]

## Other responses

- `401`: Authentication required or invalid
- `403`: Insufficient permissions
- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
