Skip to main content

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

    AccountSid uuidrequired

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

    MessageSid uuidrequired

    A unique ID that identifies this specific message.

Query Parameters

    DateCreated string
    PageSize integer

Responses

OK

Schema

    uristring
    first_page_uristring
    next_page_uristring
    previous_page_uristring
    pageinteger
    page_sizeinteger

    media_list

    object[]

  • Array [

  • sidstring

    A unique identifier for this media resource.

    Example: b51dc3c6-df20-4af6-b774-a99de20d3fd8
    date_createdstring

    The date and time the message was sent in RFC 2822 format.

    Example: Fri, 15 Jun 2018 17:59:25 +0000
    date_updatedstring

    The date and time the message was sent in RFC 2822 format.

    Example: Fri, 15 Jun 2018 17:59:25 +0000
    account_siduuid

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

    Example: b51dc3c6-df20-4af6-b774-a99de20d3fd8
    parent_sidboolean

    The unique identifier of the resource that created this media resource.

    Example: 3338f508-c98c-45a1-b2e3-1a2c345477a8
    content_typestring

    The mime-type of the media file, for example image/gif.

    Example: image/jpeg
    uristring

    The URI for this resource, relative to your base URL.

    Example: /api/laml/2010-04-01/Accounts/446e9986-0848-4d46-a617-48793c5f5e07/Messages/3338f508-c98c-45a1-b2e3-1a2c345477a8/Media/b51dc3c6-df20-4af6-b774-a99de20d3fd8.json
  • ]