90040: Broadcast 'MediaUrls' list has too many items
ERROR
This error occurs when your broadcast request includes more MediaUrl values than Twilio accepts. In Notify, SMS channel-specific media is sent in the sms.media_urls JSON array, and Twilio supports up to 10 media files per message.
- Your request includes more than the supported number of
MediaUrlvalues for a single message. - Your
sms.media_urlsJSON array contains too many items. - Your application repeats
MediaUrlfields or appends media URLs dynamically without enforcing the per-message media limit before sending the request.
- Reduce the number of
MediaUrlvalues in the request so the message includes no more than 10 media files. - If you are using Notify channel-specific payloads, place media in the
sms.media_urlsJSON array. - Validate the final media count in your application before you submit the broadcast request.
- Verify that the combined size of the message and its media stays within the destination channel limit before you retry the request.
- If you are starting a new implementation for SMS notifications, use Programmable Messaging for SMS notifications because Notify is deprecated and no longer supported.