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

# Webhook Agency

Webhook sự kiện dịch vụ khách hàng của đại lý

Nhận dữ liệu sự kiện dịch vụ khách hàng đại lý từ Webhook

Webhook Agency cho phép Đại lý (Agency) nhận dữ liệu sự kiện của khách hàng cuối thông qua một API được khai báo. Mỗi khi sự kiện xảy ra, hệ thống gửi một request POST chứa JSON tới URL đã cấu hình.

* ***METHOD : POST***
* ***Content-type : application/json***

Truy cập cấu hình (dùng tài khoảng Admin để truy cập):&#x20;

* **Trang quản trị Admin OMI:** Chi tiết cấu hình đại lý → Webhook
* **Trang quản trị Agency:** Chi tiết thông tin đại lý → Webhook

<figure><img src="https://3454047468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LukDt3aTxo8xMLonIwO%2Fuploads%2FarOikOpTa886OeNlOSnM%2Fimage.png?alt=media&amp;token=322aee07-3350-4225-a9a8-3fed91f35eda" alt=""><figcaption></figcaption></figure>

```
// Some codekk
```

**Một vài biến JSON quan trọng cần lưu ý lúc tích hợp**
