> For the complete documentation index, see [llms.txt](https://help.blinger.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.blinger.io/documentation/widget-api/webhook.md).

# Webhook

## Create webhook

<mark style="color:green;">`POST`</mark> `https://widget.blinger.io/api/external/v1/webhooks`

This endpoint allows you to get free cakes.

#### Headers

| Name          | Type   | Description          |
| ------------- | ------ | -------------------- |
| Authorization | string | Authorization Token. |

#### Request Body

| Name | Type   | Description  |
| ---- | ------ | ------------ |
| url  | string | Webhook url. |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```javascript
{
    "status": 200,
    "data": {
        "id": "f3f5e2ea-cc20-43cb-b609-7afdf9899afa",
        "url": "https://www.yoururl.com/62a7c920-d2f4-4e1b-bb1b-ba8dddadaab6",
        "createdAt": 1562231752,
        "updatedAt": 1562244363
    }
}
```

{% endtab %}
{% endtabs %}

## Remove webhook

<mark style="color:red;">`DELETE`</mark> `https://widget.blinger.io/api/external/v1/webhooks`

#### Headers

| Name          | Type   | Description          |
| ------------- | ------ | -------------------- |
| Authorization | string | Authorization Token. |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
