---
title: Resend Webhook
slug: redcircleapi/collections-api/results/resend-webhook
docTags: 
createdAt: 2024-07-27T14:22:43.825Z
---

# Resend Webhook

When testing your webhook it may be useful to have RedCircle API re-send the webhook POST. This is useful for debugging webhook connectivity without needing to re-run the Collection.

You can also re-send webhooks via the Dashboard on the Collection Result Set page.

***

### Example

<font color="#52c41a">`GET`</font>  `/collections/COLLECTION_ID/results/RESULT_SET_ID/resendwebhook`

In the example below we resend the webhook POST for Result Set with ID  `1`  for Collection with  `id=123456` :

:::CodeblockTabs
HTTP

```HTTP
https://api.redcircleapi.com/collections/123456/results/1/resendwebhook?api_key=demo
```

```curl
curl -L --get https://api.redcircleapi.com/collections/123456/results/1/resendwebhook
```

```nodejs
const axios = require('axios');

// make the http GET request to resend the webhook
axios.get('https://api.redcircleapi.com/collections/123456/results/1/resendwebhook')
  .then(response => {

    // print the JSON response
    console.log(JSON.stringify(response.data, 0, 2));

  }).catch(error => {
    // catch and print the error
    console.log(error);
  })
```

```python
import requests

# make the http GET request resend the webhook
api_result = requests.get('https://api.redcircleapi.com/collections/123456/results/1/resendwebhook')

# print the JSON response
print(json.dumps(api_result.json()))
```

```php
<?php

# make the http GET request to resend the webhook
$ch = curl_init(sprintf('%s?%s', 'https://api.redcircleapi.com/collections/123456/results/1/resendwebhook'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
# the following options are required if you're using an outdated OpenSSL version
# more details: https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_TIMEOUT, 180);

$api_result = curl_exec($ch);
curl_close($ch);

# print the JSON response
echo $api_result;

?>
```
:::

RedCircle API responds with the following JSON if the request to resend the webhook was successful. If the request was unsuccessful (for example, if the Result Set did not originally have a webhook POST set, or the webhook POST fails) then the API responds with an  `HTTP 400`  status code with the  `request_info.message`  property containing details of the error.

```json
{
  "request_info": {
    "success": true,
    "message": "Webhook POST resent successfully."
  }
}
```

