> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replay Job Webhook V1

> Re-fire the terminal webhook event for an already-finished job. Useful when the receiver was down during the original event…

> [!WARNING]
>
> **Confirm your deployment before running this request.** This page describes an API contract;
> a published reference does not establish hosted availability. Check the dated
> [host report](https://docs.stateset.com/api-reference/hosts.md) and obtain your deployment URL and credentials.
> Replace the example host if your provisioned service uses a different URL.

Re-fire the terminal webhook event for an already-finished job.

Useful when the receiver was down during the original event. Only
works on jobs in a terminal status (`succeeded` or `failed`) — live
jobs return 409 because firing twice would confuse downstream
state machines that key on `job.completed`.

Both registered tenant `WebhookEndpoint` rows and ad-hoc per-job
`webhook_url` deliveries are re-attempted using the same payload
shape as the original.

### Path parameters

**job\_id** `string (uuid)` *required*

### Request body

No request body.

### Response

`ReplayWebhookResponse`

**job\_id** `string` *required*

**event\_type** `string` *required*

The terminal event re-fired (job.completed | job.failed).

**registered\_endpoints\_dispatched** `integer` *required*

Count of registered WebhookEndpoint rows the event was queued to.

**adhoc\_url\_delivered** `boolean,null`

If the job carried a `webhook_url` in params, the outcome of the ad-hoc delivery attempt. None when no ad-hoc URL was set.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Successful Response |
| `422` | Validation Error |

### Using this contract

Read the [source OpenAPI document](https://docs.stateset.com/spec/computer-use.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
curl --silent --show-error --fail-with-body --request POST \
  --url 'https://api.computer.stateset.app/api/v1/jobs/{job_id}/replay-webhook' \
  --header "X-API-Key: $STATESET_COMPUTER_USE_API_KEY"
```

```json 200 theme={null}
{
  "job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "event_type": "string",
  "registered_endpoints_dispatched": 1,
  "adhoc_url_delivered": true
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.