# Webhooks settings

{% embed url="<https://youtu.be/8kVeqtZJi_k>" %}

{% hint style="success" %}
Webhooks let you buy **faster than any manual trader** by plugging directly into filtered alpha signals from DRBT.
{% endhint %}

<figure><img src="https://174566586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzD6jgqVGxmLQpiqD86Wt%2Fuploads%2F54xa4UFH36Vntg8IiBob%2Fimage.png?alt=media&#x26;token=a3a5336e-d202-4f2b-b4c2-710ac4331ea0" alt=""><figcaption></figcaption></figure>

## Creating a Webhook

{% stepper %}
{% step %}

#### **Template Selection**

<figure><img src="https://174566586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzD6jgqVGxmLQpiqD86Wt%2Fuploads%2Fz92UWyLhiMGVpSS1ipi4%2Fimage.png?alt=media&#x26;token=591773df-c22b-45ba-b7a6-f50567e71440" alt=""><figcaption></figcaption></figure>

Pick a trading template you’ve saved earlier. It defines how the webhook will:

* Buy (amount, slippage, wallets)
* Apply safety rules (MEV, degen, MC filters)
* Auto-sell (TP/SL steps)

{% hint style="warning" %}
A template you want to use for a webhook should have a defined spend amount per wallet.
{% endhint %}
{% endstep %}

{% step %}

#### **Name Your Webhook**

<figure><img src="https://174566586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzD6jgqVGxmLQpiqD86Wt%2Fuploads%2FvspYj7GLRpLi8VYYRlJF%2Fimage.png?alt=media&#x26;token=e439afb5-39bf-4414-9ebc-354070a25b5a" alt=""><figcaption></figcaption></figure>

Give it a descriptive name (e.g. `Buy 0.4 SOL` or `DRBT Calls`). Type the name and hit Enter.
{% endstep %}

{% step %}

#### **Copy Credentials**

<figure><img src="https://174566586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzD6jgqVGxmLQpiqD86Wt%2Fuploads%2FNqsTRph79LBo5Fvvn7JF%2Fimage.png?alt=media&#x26;token=d8ecbb64-128c-4e86-aec2-2685e03f80d4" alt=""><figcaption></figcaption></figure>

Once created, you’ll receive:

* **Webhook URL** (connects to DRBT)
* **Access Token** (confirms ownership)

{% hint style="warning" %}
🔐 Always store your **access token** securely. Anyone with the token can trigger your webhook.
{% endhint %}
{% endstep %}
{% endstepper %}

#### You’ll also see a quick 5-step setup guide for DRBT tools:

1. Open DRBT Filters Bot
2. Go to your target filter → Click **Webhook** → Paste your **Webhook URL**
3. Under **Autobuy Option**, choose **Blazing**
4. Return to Blazing → Copy your **Access Token**
5. Paste the token in DRBT and confirm it works

✅ Done! DRBT alerts that match your filters will now trigger trades on Blazing using your selected template.

***

## Interact with Webhook

To trigger the webhook, send a `POST` request to the **Webhook URL** with the **Access Token** included as a bearer token in the headers. The endpoint requires one parameter in the request body: the contract address of the token.

Here’s an example of the request structure using `curl`:

```bash
curl -X POST 'https://dev.blazingworld.me/api/v1/order/webhook//trigger/buy?b=1&l=en'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer '
-H 'Accept: application/json'
-d '{ "contract": "0x<TOKEN_ADDRESS>" }'
```

#### Key Notes

* The `contract` parameter should contain the contract address of the token you want to interact with.
* This example is provided for illustration purposes. Replace `<ID>` and `<ACCESS TOKEN>` with the specific values generated during webhook setup.

By following these steps, you can automate your trading strategies with Blazing App's webhooks and streamline your trading experience.
