Send a message (SMS, MMS, WhatsApp or other channel). Use whatsapp:+E164 addresses in To/From for WhatsApp. Form fields (application/x-www-form-urlencoded): To (required, E.164 number or channel address e.g. whatsapp:+15552229999), From (Twilio sender: E.164 number, alphanumeric sender ID, short code or channel address e.g. whatsapp:+15554449999; may be omitted when MessagingServiceSid is set), MessagingServiceSid (MG..., required if From is omitted), Body (text up to 1,600 characters; one of Body, MediaUrl or ContentSid is required), MediaUrl (media URL, repeat up to 10 times), ContentSid (HX... Content Template SID, used for WhatsApp templates), ContentVariables (JSON string of template variable substitutions, requires ContentSid), StatusCallback (URL for status callback requests), ApplicationSid, ValidityPeriod (1-36000 seconds), ScheduleType (fixed, with SendAt and a Messaging Service), SendAt (ISO 8601 time to send), SendAsMms, ShortenUrls, SmartEncoded, PersistentAction (WhatsApp location actions), ProvideFeedback, Attempt, ContentRetention (retain/discard), AddressRetention (retain/obfuscate), RiskCheck (enable/disable), MessageIntent, FallbackFrom, TrafficType (free).
/Accounts/:accountSid/Messages.json
| Name | In | Type | Description |
|---|---|---|---|
| accountSid | path | String | |
| payload | body | application/x-www-form-urlencoded |