Send an outbound message (SMS or iMessage) via the provider assigned to the number.
Attach media by passing public HTTPS URLs in media_urls.
Pass a single-item array in media_urls. The URL must be publicly accessible.
To send a carousel of images on iMessage, pass 2-20 URLs in media_urls. Requirements:
body must be omitted or empty (text cannot be sent alongside a carousel)Deprecation notice: The
media_urlfield (singular) is deprecated and will be removed in a future version. Usemedia_urls(array) instead — even for a single attachment, pass it asmedia_urls: ["https://..."].
Bearer authentication of the form Bearer <token>, where token is your auth token.
Optional iMessage expressive effect. Only valid on iMessage-capable numbers. Supported values: celebration, fireworks, lasers, love, confetti, balloons, spotlight, echo, invisible, gentle, loud, slam.
Optional parent message ID (AgentPhone Message.id) to send this message as an inline reply in iMessage.