# eSMS API

- [Hàm gửi tin](https://developers.esms.vn/esms-api/ham-gui-tin.md)
- [Tin nhắn SMS OTP/CSKH (Khuyên Dùng)](https://developers.esms.vn/esms-api/ham-gui-tin/tin-nhan-sms-otp-cskh.md): LƯU Ý QUAN TRỌNG:
- [Tin nhắn Zalo](https://developers.esms.vn/esms-api/ham-gui-tin/tin-nhan-zalo.md)
- [Tin nhắn Zalo gửi bằng UID](https://developers.esms.vn/esms-api/ham-gui-tin/tin-nhan-zalo-1.md)
- [Tin nhắn đa kênh: Zalo => SMS OTP/CSKH](https://developers.esms.vn/esms-api/ham-gui-tin/tin-mutichanel-zalo-greater-than-sms-otp-cskh.md): Giải pháp Multi-Channel Messaging API cho phép bạn gửi tin nhắn đến khách hàng bằng tin ZNS và tự động gửi tin SMS nếu tin ZNS gửi thất bại.
- [Tin nhắn Zalo sử dụng hash phone](https://developers.esms.vn/esms-api/ham-gui-tin/tin-nhan-zalo-su-dung-hash-phone.md)
- [Tin Zalo Tư vấn dạng văn bản](https://developers.esms.vn/esms-api/ham-gui-tin/tin-zalo-tu-van-dang-van-ban.md)
- [Tin Zalo Tư vấn đính kèm ảnh](https://developers.esms.vn/esms-api/ham-gui-tin/tin-zalo-tu-van-dinh-kem-anh.md)
- [Tin Zalo Tư vấn dạng button](https://developers.esms.vn/esms-api/ham-gui-tin/tin-zalo-tu-van-dang-button.md)
- [Tin Zalo giao dịch](https://developers.esms.vn/esms-api/ham-gui-tin/tin-zalo-giao-dich.md)
- [Tin Zalo Tư vấn dạng yêu cầu thông tin người dùng](https://developers.esms.vn/esms-api/ham-gui-tin/tin-zalo-dang-yeu-cau-thong-tin-nguoi-dung.md)
- [Tin Zalo hành trình](https://developers.esms.vn/esms-api/ham-gui-tin/tin-zalo-hanh-trinh.md)
- [Tạo và gửi mã xác thực tự động bằng tin nhắn SMS](https://developers.esms.vn/esms-api/ham-gui-tin/tin-gencode-tu-dong-sms.md)
- [Tạo và gửi mã xác thực tự động đa kênh: Zalo => SMS](https://developers.esms.vn/esms-api/ham-gui-tin/tin-gencode-tu-dong-multichanel-zalo-greater-than-sms.md)
- [Tin Viber](https://developers.esms.vn/esms-api/ham-gui-tin/tin-viber.md): Cho phép bạn gửi tin nhắn đến số điện thoại đang sử dụng Viber.
- [Tin SMS quảng cáo](https://developers.esms.vn/esms-api/ham-gui-tin/tin-sms-quang-cao.md): API dùng để gửi tin Quảng cáo đến khách hàng. Mỗi request tối thiểu 30 số để được duyệt tin và tối đa 5000 số.
- [Tin Voice OTP](https://developers.esms.vn/esms-api/ham-gui-tin/tin-sms-co-dinh-gia-re.md): Cần liên hệ CSKH để có tỉ lệ nhận tin nhắn cao.
- [Hàm truy xuất và đăng ký](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky.md): Version: v2\_08\_2022
- [Hàm lấy số dư tài khoản](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-so-du-tai-khoan.md): Đây là hàm cơ bản đầu tiên mà bạn nên thử, hàm giúp bạn lấy về số dư trong tài khoản của bạn.
- [Hàm kiểm tra trạng thái tin nhắn theo khoảng thời gian](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-kiem-tra-trang-thai-tin-nhan-theo-khoang-thoi-gian.md): API cho phép đối tác lấy sản lượng tin nhắn trong một khoảng thời gian.
- [Hàm kiểm tra tin nhắn theo SMSID](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-kiem-tra-tin-nhan-theo-smsid.md): Hàm giúp bạn kiểm tra trạng thái của tin nhắn đã gửi đi. Lưu ý: Chỉ lấy dữ liệu các tin trong vòng 7 ngày gần nhất.
- [Hàm kiểm tra chi tiết từng số trong tin nhắn](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-kiem-tra-chi-tiet-tung-so-trong-tin-nhan.md): Hàm lấy danh sách SĐT của một tin nhắn đã gửi (dựa trên SmsID hệ thống trả về) kèm theo trạng thái gửi (SĐT đó đã gửi thành công chưa?). Lưu ý: Chỉ lấy dữ liệu các tin trong vòng 7 ngày gần nhất.
- [Hàm lấy danh sách Brandname](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-danh-sach-brandname.md)
- [Hàm lấy danh sách template tin chăm sóc khách hàng](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-danh-sach-template-tin-cham-soc-khach-hang.md): Đối với các tin nhắn CSKH, doanh nghiệp cần đăng ký trước các mẫu tin nhắn (Template) với nhà mạng trước khi gửi. Hàm này cho phép truy xuất danh sách Template của một Brandname thuộc tài khoản.
- [Hàm tạm tính giá tin nhắn CSKH](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-tam-tinh-gia-tin-nhan-cskh.md)
- [Hàm tạm tính giá tin nhắn quảng cáo](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-tam-tinh-gia-tin-nhan-quang-cao.md)
- [Hàm lấy danh sách Zalo OA](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-danh-sach-zalo-oa.md)
- [Hàm lấy danh sách template Zalo](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-danh-sach-template-zalo.md)
- [Hàm tạm tính giá tin Zalo](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-tam-tinh-gia-tin-zalo.md)
- [Lấy quota tin zalo theo OAID](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/lay-qouta-tin-zalo-theo-oaid.md)
- [Hàm lấy thông tin đánh giá của khách hàng](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-thong-tin-danh-gia-cua-khach-hang.md): Lưu ý: Tối đa mỗi request giới hạn 50 đánh giá.
- [Hàm kiểm tra chất lượng OA](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-kiem-tra-chat-luong-oa.md)
- [Hàm lấy danh sách Zalo Followers](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-danh-sach-zalo-followers.md)
- [Hàm lấy danh sách UID có tương tác theo khoảng thời gian](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-danh-sach-zalo-followers-1.md)
- [Hàm lấy thông tin callback tin nhắn Zalo](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-thong-tin-callback-tin-nhan-zalo.md): Hàm này chỉ dùng đối với những tin nhắn khi request gửi tin khách hàng có truyền trường CallbackUrl để nhận thông tin trạng thái tin nhắn qua callback.
- [Hàm lấy thông tin chi tiết template Zalo](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-thong-tin-chi-tiet-template-zalo.md)
- [Hàm đăng ký mua gói OA](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-dang-ky-mua-goi-oa.md): Đây là hàm dùng để đăng ký mua gói OA
- [Hàm đăng ký template Zalo](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-dang-ky-template-zalo.md): Đây là hàm dùng để đăng ký template ZNS
- [Hàm đăng ký template SMS](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-dang-ky-template-sms.md): Đây là hàm dùng để đăng ký template SMS chăm sóc khách hàng.
- [Hàm lấy thông tin trạng thái ZNS](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-thong-tin-trang-thai-zns.md): Đây là hàm dùng để truy xuất trạng thái của thông báo ZNS.
- [Hàm kiểm tra trạng thái tin nhắn Zalo](https://developers.esms.vn/esms-api/ham-truy-xuat-va-dang-ky/ham-lay-thong-tin-trang-thai-zns-1.md): API kiểm tra trạng thái tin nhắn Zalo, bao gồm thông tin kết quả gửi và mã lỗi của tin nhắn.
- [Các API khác](https://developers.esms.vn/esms-api/cac-api-khac.md)
- [Gửi tin chăm sóc khách hàng dạng GET](https://developers.esms.vn/esms-api/cac-api-khac/gui-tin-cham-soc-khach-hang-dang-get.md)
- [Gửi tin chăm sóc khách hàng dạng POST X-Form](https://developers.esms.vn/esms-api/cac-api-khac/gui-tin-cham-soc-khach-hang-dang-post-x-form.md)
- [Gửi tin chăm sóc khách hàng dạng POST TEXT](https://developers.esms.vn/esms-api/cac-api-khac/gui-tin-cham-soc-khach-hang-dang-post-text.md): API dùng để gửi tin Quảng cáo đến khách hàng. Mỗi request tối thiểu 30 số để được duyệt tin và tối đa 5000 số.
- [Gửi tin cố định giá rẻ dạng GET](https://developers.esms.vn/esms-api/cac-api-khac/gui-tin-co-dinh-gia-re-dang-get.md)
- [Gửi tin quảng cáo dạng POST TEXT](https://developers.esms.vn/esms-api/cac-api-khac/gui-tin-quang-cao-dang-post-text.md)
- [Hàm gửi tin Zalo V4](https://developers.esms.vn/esms-api/cac-api-khac/ham-gui-tin-zalo.md)
- [Hàm gửi tin Zalo V5](https://developers.esms.vn/esms-api/cac-api-khac/ham-gui-tin-zalo-1.md)
- [Tin Zalo mỗi khách hàng một nội dung](https://developers.esms.vn/esms-api/cac-api-khac/tin-zalo-moi-khach-hang-mot-noi-dung.md): API eSMS gửi tin nhắn Zalo hàng loạt với nội dung tùy chỉnh cho từng khách hàng. Hỗ trợ mẫu tin, tham số động, hẹn giờ gửi và callback. Tích hợp dễ dàng qua HTTP POST JSON.
- [Hàm gửi tin nhắn Zalo dạng X-Form](https://developers.esms.vn/esms-api/cac-api-khac/ham-gui-tin-nhan-zalo-dang-x-form.md)
- [Hàm gửi tin nhắn Zalo dạng Json Full template](https://developers.esms.vn/esms-api/cac-api-khac/ham-gui-tin-nhan-zalo-dang-json-full-template.md)
- [Hàm gửi tin nhắn Viber dạng GET](https://developers.esms.vn/esms-api/cac-api-khac/ham-gui-tin-nhan-viber-dang-get.md): Cho phép bạn gửi tin nhắn đến số điện thoại đang sử sụng Viber
- [Hàm check code](https://developers.esms.vn/esms-api/cac-api-khac/ham-check-code.md): Hàm cho phép bạn gọi API check code xem đã sử dụng, hết hạn.
- [Kết nối mã SVoucher](https://developers.esms.vn/esms-api/ket-noi-ma-svoucher.md)
- [Kết nối đầu số ngắn](https://developers.esms.vn/esms-api/ket-noi-ma-svoucher/ket-noi-dau-so-ngan.md)
- [Hàm gọi Voice](https://developers.esms.vn/esms-api/ham-goi-voice.md)
- [Hàm tạo cuộc gọi voice OTP](https://developers.esms.vn/esms-api/ham-goi-voice/ham-tao-cuoc-goi-voice-otp.md)
- [Hàm tạo cuộc gọi tự động theo Template](https://developers.esms.vn/esms-api/ham-goi-voice/ham-tao-cuoc-goi-tu-dong-theo-template.md): Hàm cho phép bạn gửi tin nhắn thoại đến 1 số điện thoại bởi mẫu cuộc gọi đã được tạo sẵn trên hệ thống.
- [Hàm tạo cuộc gọi tự động từ file ghi âm](https://developers.esms.vn/esms-api/ham-goi-voice/ham-tao-cuoc-goi-tu-dong-tu-file-ghi-am.md): Hàm cho phép bạn gửi tin nhắn thoại đến 1 số điện thoại bởi file ghi âm đã tạo.
- [Hàm lấy trạng thái cuộc gọi](https://developers.esms.vn/esms-api/ham-goi-voice/ham-lay-trang-thai-cuoc-goi.md): Hàm cho phép bạn gửi tin nhắn thoại đến 1 số điện thoại bởi file ghi âm đã tạo.
- [Bảng mã lỗi](https://developers.esms.vn/esms-api/bang-ma-loi.md)
- [Môi trường test ( Sandbox)](https://developers.esms.vn/esms-api/moi-truong-test-sandbox.md)
- [Callback Url](https://developers.esms.vn/esms-api/callback-url.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.esms.vn/esms-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
