---
title: "Run the audit log replay"
method: POST
path: "/v2/audit-log-replay"
tags: ["Audit Log Replay"]
---

# Run the audit log replay

`POST /v2/audit-log-replay`

Run the audit log replay with the given parameters. This will replay PDP requests based on audit logs.

## Request body

- AuditLogReplayRequest — Request model for audit log replay
  - `pdp_url` string, required — URL of the PDP to test against
  - `start_time` integer — Start time for the query (in seconds since epoch). Defaults to 24 hours ago.
  - `end_time` integer — End time for the query (in seconds since epoch). Defaults to current time.
  - `concurrency_limit` integer — Concurrency limit for processing documents (max: 5)
  - `graceful_shutdown_s` integer — Graceful shutdown time in seconds

## Response `202`

Successful Response

- AuditLogReplayResponse — Response model for audit log replay
  - `message` string, required
  - `document_count` integer, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/permit/apis/permit-io-api.md) · [All operations](https://skmtc.net/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/permit/permit-io-api/versions/dd6be355a62e/schema)
