Messages: send SMS and WhatsApp texts by API
Queue a text. Echo picks one of your online phones or WhatsApp numbers and reports every change.
POST /v1/echo/messagesFields
- to
- The number in international format, like +962XXXXXXXXX.
- body
- The text, 1 to 1,600 characters.
- channel
- sms (default) or whatsapp.
- device_id
- Optional: send from this device only.
Status
- queued
- Waiting for an online device.
- sending
- A device took it.
- sent
- The device sent it.
- delivered
- The recipient's phone confirmed it.
- failed
- It could not be sent; error_code says why.
- canceled
- Canceled before sending.
Read received texts
GET /v1/echo/messages?direction=in&limit=25Texts that reach your phones and WhatsApp numbers appear here with direction=in, and as echo.message.received webhooks.
