> For the complete documentation index, see [llms.txt](https://dev.botbanhang.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.botbanhang.vn/chatbox/label-staff-api/label-api-gan-nhan.md).

# Label API (Gẵn nhãn)

## 1. Chọn biểu tượng "Thiết lập" từ Chatbox <a href="#id-1-chon-bieu-tuong-thiet-lap-tu-chatbox" id="id-1-chon-bieu-tuong-thiet-lap-tu-chatbox"></a>

![](https://gblobscdn.gitbook.com/assets%2F-MDfRuoSIcFsb2DjQjYD%2F-MDfpXuZ119IzakMfqGD%2F-MDfqyX7yVIAm8aFzJYF%2Fimage.png?alt=media\&token=ced2de83-4f34-4099-ad0f-1e5da859c342)

Chọn biểu tượng "Thiết lập"

​

## 2. Thực hiện các bước dưới để lấy API. <a href="#id-2-thuc-hien-cac-buoc-duoi-de-lay-api" id="id-2-thuc-hien-cac-buoc-duoi-de-lay-api"></a>

1. Chọn "**Page"**
2. Chọn tab "**API**" - Nếu chưa có Mã token, ấn nút **\[Tạo mới]**
3. Chọn nhân viên bạn muốn chỉ định hoặc chọn Nhãn bạn muốn gắn.
4. Copy link API.

Lưu ý: Trong API có tham số **{{client\_id}}** tức là PSID. Đây là trường dữ liệu động được sử dụng trong Chatbot. Nếu bạn gửi từ API từ server thì cần thay đúng PSID vào **{{client\_id}}.**

![](https://gblobscdn.gitbook.com/assets%2F-MDfRuoSIcFsb2DjQjYD%2F-MDfpXuZ119IzakMfqGD%2F-MDfqYxkN0nkPt-icFbM%2Fimage.png?alt=media\&token=7dc96aff-9a94-4060-8303-2994f1d72179)
