1
Upload the file
Send a single multipart form field named
file with the part’s MIME type explicitly declared:2
Attach and send
Pass the upload’s
id in media_ids when calling POST /messages:- Carrier MMS accepts up to 10 uploads per message, sent in delivery order. An iMessage line accepts 1.
bodyis optional when attachments are present.- Keep the upload live until the message has been sent — deleting it or letting it expire revokes access immediately, even for queued messages.
- Pass either
media_idsormedia_urls, never both (media_urlsaccepts up to 10 publichttpsURLs you host yourself).
Read or delete an upload
404 not_found.