Collections
...
Collections API
Collections

Webhook

3min

Webhook

When a Collection has its notification_webhook property set Backyard API will make an HTTP POST to this URL when the Collection completes and a new Result Set is available.

Note that if no Webhook URL is supplied in the Collection's notification_webhook property Backyard API will fallback to using the Webhook URL defined on your account profile.

Note that the webhook has a timeout of 5 seconds, your app should ingest the webhook HTTP POST within this timeout. If your app takes longer than 5 seconds to respond the API will terminate the HTTP POST.If a timeout does occur then we won't attempt to call the same webhook url for another 5 minutes, this applies to all Collections that are using the same webhook url.

The body of the Webhook POST contains details of the Collection along with download links for the Result Set. Note that the presence of the json and csv download links in the response JSON depends on whether the Collection has the notification_as_json , notification_as_jsonlines and notification_as_csv properties set.

Here's an example of the body of the Webhook POST :

JSON



Next Steps      List Requests      List Result Sets      Resending a Webhook