Black Friday / Cyber Monday Alert: Due to increased traffic demand on mobile communication networks, we are expecting potential congestion for US carrier networks during the Black Friday and Cyber Monday period. Customers may experience intermittent SMS and MMS delivery delays. Please refer to our Black Friday / Cyber Monday FAQ page and our Twilio Status page for more information.

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