List All Media
GET/Accounts/:AccountSid/Messages/:MessageSid/Media
Returns a paged list of media belonging to this message sorted with the most recent media appearing first.
Permissions
The API token must include the following scopes: Messaging.
Request
Path Parameters
The unique identifier of the project that sent or received this message.
A unique ID that identifies this specific message.
Query Parameters
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
media_list
object[]
A unique identifier for this media resource.
b51dc3c6-df20-4af6-b774-a99de20d3fd8
The date and time the message was sent in RFC 2822 format.
Fri, 15 Jun 2018 17:59:25 +0000
The date and time the message was sent in RFC 2822 format.
Fri, 15 Jun 2018 17:59:25 +0000
The unique identifier of the project that sent or received this message.
b51dc3c6-df20-4af6-b774-a99de20d3fd8
The unique identifier of the resource that created this media resource.
3338f508-c98c-45a1-b2e3-1a2c345477a8
The mime-type of the media file, for example image/gif
.
image/jpeg
The URI for this resource, relative to your base URL.
/api/laml/2010-04-01/Accounts/446e9986-0848-4d46-a617-48793c5f5e07/Messages/3338f508-c98c-45a1-b2e3-1a2c345477a8/Media/b51dc3c6-df20-4af6-b774-a99de20d3fd8.json
{
"uri": "string",
"first_page_uri": "string",
"next_page_uri": "string",
"previous_page_uri": "string",
"page": 0,
"page_size": 0,
"media_list": [
{
"sid": "b51dc3c6-df20-4af6-b774-a99de20d3fd8",
"date_created": "Fri, 15 Jun 2018 17:59:25 +0000",
"date_updated": "Fri, 15 Jun 2018 17:59:25 +0000",
"account_sid": "b51dc3c6-df20-4af6-b774-a99de20d3fd8",
"parent_sid": "3338f508-c98c-45a1-b2e3-1a2c345477a8",
"content_type": "image/jpeg",
"uri": "/api/laml/2010-04-01/Accounts/446e9986-0848-4d46-a617-48793c5f5e07/Messages/3338f508-c98c-45a1-b2e3-1a2c345477a8/Media/b51dc3c6-df20-4af6-b774-a99de20d3fd8.json"
}
]
}