---
title: "Simulate a pack against your recent history"
method: POST
path: "/policy/packs/{id}/preview"
---

# Simulate a pack against your recent history

`POST /policy/packs/{id}/preview`

## Request

- Base URL: `https://getsanction.com/api/v1`
- URL: `https://getsanction.com/api/v1/policy/packs/{id}/preview`
- Auth: API key in header `x-mgmt-key`

PACK-1: run a pack through the retro-simulation before applying it — what would this pack have done to your last 30 days (default; any range up to 92 days). Same engine and honesty envelope as POST /policy/simulate. Read + compute only. Owner-only.

## Path parameters

- `id` string, required

## Request body

- object
  - `wallet_id` string, required
  - `from` string, date
  - `to` string, date

## Response `200`

Simulation report (the simulatePolicy shape) plus the pack identity

## Other responses

- `400`: Invalid range or malformed body
- `401`: Management key required
- `404`: Unknown pack id

---

[API](https://skmtc.dev/getsanction/apis/sanction-agent-governance-api.md) · [All operations](https://skmtc.dev/getsanction/apis/sanction-agent-governance-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getsanction/apis/sanction-agent-governance-api/revisions/c645a9e4b72d?raw)
