Sample - Twilio API
GET/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json

Get message media

Retrieves one media resource associated with a specific message. Supply the account, message, and media SIDs to identify the resource.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
AccountSidstringrequired
The account SID associated with the media resource, matching the 34-character `AC` SID format.
MessageSidstringrequired
The SID of the associated message, matching the 34-character `SM` or `MM` SID format.
Sidstringrequired
The unique media SID to retrieve, matching the 34-character `ME` SID format.

1 status code
200Returns the media resource, including its account SID, parent message SID, MIME type, creation and update timestamps, media SID, and relative URI.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this Media resource.
content_typestringoptional
The default [MIME type](https://en.wikipedia.org/wiki/Internet_media_type) of the media, for example `image/jpeg`, `image/png`, or `image/gif`.
date_createdstringoptional
The date and time in GMT when this Media resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
date_updatedstringoptional
The date and time in GMT when this Media resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
parent_sidstringoptional
The SID of the Message resource that is associated with this Media resource.
sidstringoptional
The unique string that identifies this Media resource.
uristringoptional
The URI of this Media resource, relative to `https://api.twilio.com`.

Error handling

AccountSid must be a 34-character SID beginning with AC, MessageSid must begin with SM or MM, and Sid must be a 34-character media SID beginning with ME. Each SID must use hexadecimal characters after its prefix.