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

# Retrigger Campaign Webhooks

> Manually retry failed webhook deliveries

## Path Parameters

<ParamField path="campaignId" type="number" required>
  Campaign ID
</ParamField>

## Query Parameters

<ParamField query="api_key" type="string" required>
  Your SmartLead API key
</ParamField>

## Request Body

<ParamField body="fromTime" type="string" required>
  Start date in ISO format (e.g. `2024-01-01T00:00:00.000Z`)
</ParamField>

<ParamField body="toTime" type="string" required>
  End date in ISO format (e.g. `2024-01-31T23:59:59.999Z`)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://server.smartlead.ai/api/v1/campaigns/123/webhooks/retrigger-failed-events?api_key=YOUR_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "fromTime": "2024-01-01T00:00:00.000Z",
      "toTime": "2024-01-31T23:59:59.999Z"
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      f"https://server.smartlead.ai/api/v1/campaigns/123/webhooks/retrigger-failed-events",
      params={"api_key": "YOUR_API_KEY"},
      json={
          "fromTime": "2024-01-01T00:00:00.000Z",
          "toTime": "2024-01-31T23:59:59.999Z"
      }
  )

  print("Webhooks retriggered")
  ```
</RequestExample>

## Response Example

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "retriggered_count": 5
  }
  ```
</ResponseExample>
