> For the complete documentation index, see [llms.txt](https://docws.ems.com.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docws.ems.com.vn/tieng-viet/webhook/tao-webhook.md).

# Tạo webhook

## Create Webhook

<mark style="color:green;">`POST`</mark> `http://ws.ems.com.vn/api/v1/metadata/webhook`

API tạo kết nối webhook.

#### Path Parameters

| Name                                              | Type   | Description |
| ------------------------------------------------- | ------ | ----------- |
| merchant\_token<mark style="color:red;">\*</mark> | string | *`Token`*   |

#### Headers

| Name                                     | Type   | Description            |
| ---------------------------------------- | ------ | ---------------------- |
| Accept<mark style="color:red;">\*</mark> | string | application/javascript |

#### Request Body

| Name                                   | Type   | Description   |
| -------------------------------------- | ------ | ------------- |
| link<mark style="color:red;">\*</mark> | string | Link callback |

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

```
Thành công:
{'code': 'success', 'message': 'Tạo webhook thành công'}

Thất bại:
{'code': 'error', 'message': '......'
```

{% endtab %}
{% endtabs %}
