Skip to main content
1

Upload the file

Send a single multipart form field named file with the part’s MIME type explicitly declared:
url is a bearer download link that anyone holding it can read until the upload expires or is deleted. Treat it as a secret.
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.
  • body is 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_ids or media_urls, never both (media_urls accepts up to 10 public https URLs you host yourself).

Read or delete an upload

Expired, deleted, or unknown upload IDs return 404 not_found.

Common refusals