Fetch a single media instance belonging to the account used to make the request

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

The Media resource represents a piece of media, such as an image, that is associated with a message.

Fetch a single media instance belonging to the account used to make the request

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Media resource(s) to fetch.

  • MessageSid string Required

    The SID of the Message resource that this Media resource belongs to.

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Media resource to fetch

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created this resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • content_type string | null

      The default mime-type of the media

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that this resource was last updated

    • parent_sid string | null

      The SID of the resource that created the media

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^(SM|MM)[0-9a-fA-F]{32}$.

    • sid string | null

      The unique string that identifies this resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ME[0-9a-fA-F]{32}$.

    • uri string(uri) | null

      The URI of this resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json \
 --user "username:password"
Response examples (200)
{
  "account_sid": "string",
  "content_type": "string",
  "date_created": "string",
  "date_updated": "string",
  "parent_sid": "string",
  "sid": "string",
  "uri": "https://example.com"
}
Response examples (200)
{
  "account_sid": "string",
  "content_type": "string",
  "date_created": "string",
  "date_updated": "string",
  "parent_sid": "string",
  "sid": "string",
  "uri": "https://example.com"
}