GET/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json

List media for a message

Lists media resources associated with a specific message. Filter the results by creation date and use the page parameters to navigate the list.

8 parameters
AccountSidstringrequired
The SID of the account associated with the media resources, in the format `AC` followed by 32 hexadecimal characters.
MessageSidstringrequired
The SID of the message whose media resources to list, in the format `SM` or `MM` followed by 32 hexadecimal characters.
DateCreatedstringoptional
Filter by creation date in GMT, using `YYYY-MM-DD` to match a date or a date inequality to select media on or before or after that date.
DateCreated<stringoptional
Filter for media created on or before the specified GMT date, using a `YYYY-MM-DD` date value.
DateCreated>stringoptional
Filter for media created on or after the specified GMT date, using a `YYYY-MM-DD` date value.
PageSizeintegeroptional
The number of resources to return per page, from 1 to 1000. Defaults to 50 when omitted.
Pageintegeroptional
The page index used for client state. Must be zero or greater.
PageTokenstringoptional
The page token provided by the API for navigating the results.

1 status code
200Returns a paginated response containing media records and page navigation metadata. Each media record includes account and parent message SIDs, MIME type, creation and update dates, media SID, and URI.
endintegeroptional
first_page_uristringoptional
next_page_uristringoptional
pageintegeroptional
page_sizeintegeroptional
previous_page_uristringoptional
startintegeroptional
uristringoptional
media_listarray<object>optional

Error handling

AccountSid must be a 34-character SID beginning with AC, and MessageSid must be a 34-character SID beginning with SM or MM. PageSize must be between 1 and 1000, and Page must be zero or greater.