# Rerun History Operation

> `POST /history/{operation_id}/rerun` · History

Canonical page: https://clawifi.dev/docs/api/post-history-operation-id-rerun

`POST https://api.clawifi.dev/history/{operation_id}/rerun`

- Send your key as `Authorization: Bearer $CLAWIFI_API_KEY`; see [Authentication](https://clawifi.dev/docs/authentication).
- Add `"dry_run": true` (or `?dry_run=true`) to see what the call would cost; nothing runs and nothing is charged.
- Credits: see [Pricing and credits](https://clawifi.dev/docs/pricing-and-credits).

## Request

**cURL**

```sh
curl -X POST https://api.clawifi.dev/history/<operation_id>/rerun \
  -H "Authorization: Bearer $CLAWIFI_API_KEY"
```

**Python**

```python
from clawifi import Clawifi

client = Clawifi()  # reads CLAWIFI_API_KEY
result = client.post("/history/<operation_id>/rerun")
```

### Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| `operation_id` | path | string | yes |

## Response

200 with a JSON object.

Errors use the shared shape; see [Errors](https://clawifi.dev/docs/errors). Try public operations without a key in the [playground](https://clawifi.dev/playground).
