> For the complete documentation index, see [llms.txt](https://roqqu-api-services.gitbook.io/ras/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://roqqu-api-services.gitbook.io/ras/webhooks/retrigger-webhook-events.md).

# Retrigger Webhook Events

Manually retrigger webhook events for a specific transaction hash. This endpoint allows administrators to resend webhook notifications that may have failed or were missed.

**Endpoint:** `POST /webhooks/retrigger`

**Authentication:** Required (x-api-key header)

#### Request Parameters <a href="#request-parameters-10" id="request-parameters-10"></a>

| Parameter         | Type   | Required | Description                                                     |
| ----------------- | ------ | -------- | --------------------------------------------------------------- |
| transaction\_hash | string | Yes      | The blockchain transaction hash to retrigger webhook events for |

#### Example Request <a href="#example-request-16" id="example-request-16"></a>

```
curl -X POST https://service.roqqu.com/v1/webhooks/retrigger \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "transaction_hash=0x9ffd7f17177b6f517195bb5c3e8a769eff276ff56e875f"
```

#### Example Response <a href="#example-response-16" id="example-response-16"></a>

```
{
  "status": "success",
  "message": "Successfully retriggered 2 webhook event(s)",
  "data": {
    "retriggered_count": 1,
    "webhook_ids": [123],
    "transaction_hash": "0x9ffd7f17177b6f517195bb5c3e8a769eff276ff56e875ffbba703ee6a940c23b"
  }
}
```

#### Error Responses <a href="#error-responses" id="error-responses"></a>

**400 Bad Request:**

```
{
  "status": "bad",
  "message": "transaction_hash is required"
}
```

**500 Internal Server Error:**

```
{
  "status": "fail",
  "message": "no webhook events found for the provided transaction"
}
```
