---
title: "Simulate a stamp outcome (test mode only)"
method: POST
path: "/sandbox/stamps/{id}/simulate"
tags: ["Sandbox"]
---

# Simulate a stamp outcome (test mode only)

`POST /sandbox/stamps/{id}/simulate`

## Request

- Base URL: `https://esahayak.io/api/v1`
- URL: `https://esahayak.io/api/v1/sandbox/stamps/{id}/simulate`
- Auth: HTTP bearer

Fast-forward a sandbox stamp to a terminal state so you can test polling + webhooks without waiting for real fulfilment. `verified` issues a synthetic certificate and emits `stamp.verified` (plus `order.fulfilled` once the whole order is terminal); `failed` cancels the stamp (releases the hold) and emits `stamp.cancelled`. Requires an `sk_test_` key — returns 403 on a live key.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `outcome` 'verified' | 'failed'

## Response `200`

Simulated.

- object
  - `id` string, uuid
  - `status` 'VERIFIED' | 'CANCELLED'
  - `simulated` boolean

## Other responses

- `403`: Not allowed (e.g. creating a key from a sandbox key)
- `404`: Not found (workspace + is_test scoped)

---

[API](https://skmtc.dev/esahayak/apis/esahayak-stamp-api.md) - [All operations](https://skmtc.dev/esahayak/apis/esahayak-stamp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/esahayak/apis/esahayak-stamp-api/revisions/cca124862a3e?raw)
