Webhooks

What Are Webhooks?

Webhooks are "user-defined HTTP callbacks". They are usually triggered by some event, such as pushing code to a repository, a comment being posted to a blog, or clicking the thumbs-up button on a social media app. When that event occurs, the source site makes an HTTP request to the URL configured for the webhook. Users can configure them to cause events on one site to invoke behavior on another.

Why Webhooks?

In today's highly connected world, no one system can function optimally alone.

The Brick API has a lot of asynchronous operations and therefore webhooks make sense to allow our customers to trigger actions based on events occurred inside the Brick API.


How to register a safe webhook

To receive Brick webhooks, you need an accessible public URL. We suggest that you protect it in order to secure it against malicious requests and unwanted data manipulations.

HTTPS Requests

In order to ensure encripted transactions, we strongly suggest usage of HTTPS at your Webhook URL.

IP Restrictions

If you are using firewall, you can configure it to only receive requests from Brick Webhook IPs:


EnvironmentIP
ProductionXX.XXX.XX.XXX