Send an SMS
Send a text message from one of your Dial numbers to any phone number. You need two things: the recipient in E.164 format (e.g. +14155550123) and the id of the Dial number you’re sending from (run dial number list to find it).
The message comes back with an id and a status of sent, which advances to delivered (or undelivered/failed, with a statusError reason) as the carrier reports back. Track delivery and replies by streaming events or listing messages (GET /api/v1/messages).
400. Pay-as-you-go accounts can send to any supported destination.Attach media (MMS)
Attach up to 10 media items (5 MB each) to a message. Supply each one either as a local file — the CLI and SDKs upload it for you — or as a public URL that Dial downloads server-side. Either way Dial mirrors the bytes into its own storage and serves them from a stable public URL, returned in the message’s media array.
Supported types: images (jpeg, png, gif, webp, bmp), audio (mp3, m4a, ogg, wav, amr), video (mp4, 3gpp), pdf, vCard (.vcf), and iCalendar (.ics). Any other type is rejected with a 400. Note that HEIC (the default iPhone photo format) and SVG are not supported — convert HEIC to JPEG/PNG before sending.
to and from numbers must both be in E.164 format.media[].url either way.media array is identical either way.