| Sự kiện webhook | Ý nghĩa |
|---|---|
| message.sent | Tin nhắn đã được chấp nhận và chuyển cho nhà mạng |
| message.delivered | Nhà mạng xác nhận tin đã tới máy người nhận |
| message.failed | Không thể gửi tin nhắn |
| message.undelivered | Nhà mạng không thể chuyển tin tới người nhận |
| message.received | Khách hàng gửi SMS hoặc MMS tới đầu số của bạn |
send-sms.ts — tsimport { Firetell } from '@firetell/firetell-node-sdk';const firetell = new Firetell({domain: 'yourcompany.firetell.app',secretKey: process.env.FIRETELL_SECRET_KEY!,});const message = await firetell.messages.send({from: '+14155550100',to: '+12125550123',body: 'Hi Alex! Order #FT10294 is confirmed for tomorrow at 10:00 AM.',});

