> ## 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 specific webhook events by id (operator tooling).

> Replay result (or preview when dryRun)

### Path parameters

<ParamField path="tenant_id" type="string" required>
  Tenant identifier
</ParamField>

### Request body

`object`

<ParamField body="webhookIds" type="string (uuid)[]" required>
  Webhook ids to replay. Duplicates are ignored.
</ParamField>

<ParamField body="dryRun" type="boolean">
  Preview matching events without queueing replay jobs (default false)
</ParamField>

### Response

`object`

<ResponseField name="requested" type="integer" required />

<ResponseField name="deduplicated" type="integer" required />

<ResponseField name="matched" type="integer" required />

<ResponseField name="dryRun" type="boolean" required />

<ResponseField name="queued" type="integer" required />

<ResponseField name="skipped" type="integer" required />

<ResponseField name="webhookIds" type="string (uuid)[]" required />

<ResponseField name="errors" type="object[]">
  Omitted when empty

  <Expandable title="errors">
    <ResponseField name="webhookId" type="string (uuid)" required />

    <ResponseField name="message" type="string" required />
  </Expandable>
</ResponseField>

### Status codes

| Code  | Meaning                                  |
| ----- | ---------------------------------------- |
| `202` | Replay result (or preview when `dryRun`) |
| `401` | Unauthorized                             |
| `404` | Tenant not found                         |
| `422` | Invalid replay request                   |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/webhook-events/replay-by-id' \
    --header 'x-stateset-api-key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "webhookIds": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "dryRun": false
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 202 theme={null}
  {
    "requested": 1,
    "deduplicated": 1,
    "matched": 1,
    "dryRun": false,
    "queued": 1,
    "skipped": 1,
    "webhookIds": [
      "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    ],
    "errors": [
      {
        "webhookId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "message": "Two-person tent, green — replacement for damaged pole set."
      }
    ]
  }
  ```
</ResponseExample>
