Fetch a single Media resource associated with a specific Message resource
The Media subresource of a Message resource represents a piece of media, such as an image, that is associated with the Message.
Fetch a single Media resource associated with a specific Message resource
Path parameters
-
The SID of the Account associated with the Media resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The SID of the Message resource that is associated with the Media resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^(SM|MM)[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the Media resource to fetch.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^ME[0-9a-fA-F]{32}$
.
GET
/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json
curl \
--request GET 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json' \
--user "username:password"
Response examples (200)
{
"sid": "MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Media/MEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"parent_sid": "SMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"content_type": "image/jpeg",
"date_created": "Sun, 16 Aug 2015 15:53:54 +0000",
"date_updated": "Sun, 16 Aug 2015 15:53:55 +0000"
}