Collections
...
Collections API
Result Sets
Resend Webhook
3min
resend webhook when testing your webhook it may be useful to have rainforest 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 get get /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 http https //api rainforestapi com/collections/123456/results/1/resendwebhook?api key=democurl l get https //api rainforestapi com/collections/123456/results/1/resendwebhookconst axios = require('axios'); // make the http get request to resend the webhook axios get('https //api rainforestapi 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); })import requests \# make the http get request resend the webhook api result = requests get('https //api rainforestapi com/collections/123456/results/1/resendwebhook') \# print the json response print(json dumps(api result json()))\<?php \# make the http get request to resend the webhook $ch = curl init(sprintf('%s?%s', 'https //api rainforestapi 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; ?> rainforest 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 { "request info" { "success" true, "message" "webhook post resent successfully " } }