Potential Support Response Time Delays Due to Surge in Toll-Free Queries: We’re experiencing a surge in inquiries due to the November 8, 2023 Toll-Free Restricted Traffic Shutdown Deadline. We’re committed to helping you; please bear with us as there might be some delays. For more details, see Toll-Free Message Verification for US/Canada.

How do I retrieve the MediaUrl parameter for an MMS I received?

Just like SMS, when Twilio receives an MMS on your Twilio number, it makes a synchronous HTTP request to the message request URL configured for that number, and it expects to receive TwiML in response. In addition to the regular SMS parameters, the "MediaContentType" and "MediaUrl" parameters will also be sent. Since there can be up to 10 images in one MMS, the "MediaUrl" parameter is structured as "MediaUrl0", "MediaUrl1" , "MediaUrl2" and etc. In PHP, for example, you can use:


to retrieve the first image. To learn more, check out our documentation here.

Have more questions? Submit a request
Powered by Zendesk