---
title: Audit API
description: Export the immutable audit chain for a request.
group: reference-api
---
> ⚠️ **Warning:** **Alpha**
> DSAR is currently in alpha. APIs, package surfaces, configuration, and documentation may change as the project evolves.

## GET /requests/:id/audit/export

Export the immutable audit chain for a request.

**Query parameters:**

* `format` (string, optional): `"jsonl"` | `"csv"`

**Response (202):**

```json
{
	"requestId": "req-123",
	"format": "jsonl",
	"events": [],
	"rootHash": "sha256:..."
}
```

## POST /requests/:id/audit/verify

Verify the integrity of an audit chain.

**Request body:**

* `hash` (string, required): expected hash for the target event or chain check
* `prevHash` (string, optional): previous-link hash when verifying chain continuity
* `sequence` (number, required): expected event sequence number

**Response (202):**

```json
{
	"mismatches": [
		{
			"actualHash": "sha256:actual",
			"eventId": "evt-123",
			"expectedHash": "sha256:expected"
		}
	],
	"status": "verified",
	"verified": true
}
```
