Message Media

Retrieve Message Media

Retrieves one MMS attachment by message SID and media SID. Use List Message Media to discover media SIDs; this endpoint does not retrieve fax documents or voice recordings.

Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: Messaging.

Learn more about API scopes.

get/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}

Path parameters

AccountSidstring uuid required

Universal Unique Identifier.

The unique identifier of the project that sent or received this message.

MessageSidstring uuid required

Universal Unique Identifier.

A unique ID that identifies this specific message.

Sidstring uuid required

Universal Unique Identifier.

A unique ID that identifies this specific message.

Response

The request has succeeded.

account_sidstring uuid required

Universal Unique Identifier.

content_typestring required

The content type of the media.

date_createdstring required

The date, in RFC 2822 GMT format, this media was created.

date_updatedstring required

The date, in RFC 2822 GMT format, this media was updated.

parent_sidstring uuid required

Universal Unique Identifier.

sidstring uuid required

Universal Unique Identifier.

uristring required

The URI for the media.

Example response

{
  "content_type": "image/jpeg",
  "date_created": "Mon, 13 Aug 2018 21:38:46 +0000",
  "date_updated": "Mon, 13 Aug 2018 21:38:46 +0000",
  "uri": "/api/laml/2010-04-01/Accounts/ea108133-d6b3-407c-9536-9fad8a929a6a/Messages/0a059168-ead0-41af-9d1f-343dae832527/Media/b3877c40-da60-4998-90ad-b792e98472me.json"
}

Changes

Changed in 6 of the 40 revisions of this API.819

  • 2916d5e3072e33See the full diff
    • the response's property type changed from string to no type, and format from uuid to no format for status

      response-property-type-changed

    • the response's property type changed from string to no type, and format from uuid to no format for status

      response-property-type-changed

    • the response's property type changed from string to no type, and format from uuid to no format for status

      response-property-type-changed

    • added to the response property allOf list for the response status

      response-property-all-of-added

    • added to the response property allOf list for the response status

      response-property-all-of-added

    • added to the response property allOf list for the response status

      response-property-all-of-added

    • added 'unevaluatedProperties' constraint to the response body for the status

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status

      response-body-unevaluated-properties-added

    • added 'unevaluatedProperties' constraint to the response body for the status

      response-body-unevaluated-properties-added

    • api tag Message Media added

      api-tag-added

    • api tag Media removed

      api-tag-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the non-success response with the status

      response-non-success-status-added

    • the response property became required for the status

      response-property-became-required

    • the response property became required for the status

      response-property-became-required

    • the response property became required for the status

      response-property-became-required

    • the response property became required for the status

      response-property-became-required

    • the response property became required for the status

      response-property-became-required

    • the response property became required for the status

      response-property-became-required

    • the response property became required for the status

      response-property-became-required

    This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 3c88f14db21e52See the full diff
    • added the new path request parameter AccountSid

      new-request-path-parameter

    • added the new path request parameter MessageSid

      new-request-path-parameter

    • added the new path request parameter Sid

      new-request-path-parameter

    • the response's property format changed from uuid to no format for status

      response-property-type-changed

    • the response's property type changed from boolean to string for status

      response-property-type-changed

    • added the non-success response with the status

      response-non-success-status-added

    • added the non-success response with the status

      response-non-success-status-added

    This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog