List Message Media
Lists the MMS attachments associated with one message. Each attachment is a separate media resource that can be retrieved or deleted by SID. Fax Media contains fax documents and is a separate collection.
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.
Path parameters
Universal Unique Identifier.
The unique identifier of the project that sent or received this message.
Universal Unique Identifier.
A unique ID that identifies this specific message.
Query parameters
Only return media created on this particular date, formatted as YYYY-MM-DD in UTC.
Only return media created before this date, formatted as YYYY-MM-DD in UTC.
Only return media created after this date, formatted as YYYY-MM-DD in UTC.
The page number to retrieve. Default is 0.
The number of items per page. Default is 50, maximum is 1000.
The token for cursor-based pagination. Must start with 'PA' or 'PB'.
Response
The request has succeeded.
Example response
{
"uri": "/api/laml/2010-04-01/Accounts/ea108133-d6b3-407c-9536-9fad8a929a6a/Messages/0a059168-ead0-41af-9d1f-343dae832527/Media?Page=0&PageSize=50",
"first_page_uri": "/api/laml/2010-04-01/Accounts/ea108133-d6b3-407c-9536-9fad8a929a6a/Messages/0a059168-ead0-41af-9d1f-343dae832527/Media?Page=0&PageSize=50",
"page_size": 50,
"media_list": [
{
"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 9 of the 40 revisions of this API.10441
- ▲
the
media_list/items/account_sidresponse's property type/format changed fromstring/uuidto/for status200response-property-type-changed
- ▲
the
media_list/items/parent_sidresponse's property type/format changed fromstring/uuidto/for status200response-property-type-changed
- ▲
the
media_list/items/sidresponse's property type/format changed fromstring/uuidto/for status200response-property-type-changed
- ○
added
uuidto themedia_list/items/account_sidresponse propertyallOflist for the response status200response-property-all-of-added
- ○
added
uuidto themedia_list/items/parent_sidresponse propertyallOflist for the response status200response-property-all-of-added
- ○
added
uuidto themedia_list/items/sidresponse propertyallOflist for the response status200response-property-all-of-added
- ▲
- ○
added 'unevaluatedProperties' constraint to the response body for the status
200response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
400response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
401response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
422response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the
media_list/items/response property for the status200response-property-unevaluated-properties-added
- ○
- ▲
response property
next_page_urilist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
previous_page_urilist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
- ○
api tag
Message Mediaaddedapi-tag-added
- ○
api tag
Mediaremovedapi-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
400response-non-success-status-added
- ○
- ▲
for the
queryrequest parameterPageSize, default value50was addedrequest-parameter-default-value-added
- ▲
the response property
next_page_uribecame nullable for the status200response-property-became-nullable
- ▲
the response property
previous_page_uribecame nullable for the status200response-property-became-nullable
- ●
for the
queryrequest parameterPageSize, the max was set to1000.00request-parameter-max-set
- ●
for the
queryrequest parameterPageSize, the min was set to1.00request-parameter-min-set
- ○
added the new optional
queryrequest parameterDateCreated<new-optional-request-parameter
- ○
added the new optional
queryrequest parameterDateCreated>new-optional-request-parameter
- ○
added the new optional
queryrequest parameterPagenew-optional-request-parameter
- ○
added the new optional
queryrequest parameterPageTokennew-optional-request-parameter
- ○
added the non-success response with the status
422response-non-success-status-added
- ○
the response property
first_page_uribecame required for the status200response-property-became-required
- ○
the response property
media_listbecame required for the status200response-property-became-required
- ○
the response property
media_list/items/account_sidbecame required for the status200response-property-became-required
- ○
the response property
media_list/items/content_typebecame required for the status200response-property-became-required
- ○
the response property
media_list/items/date_createdbecame required for the status200response-property-became-required
- ○
the response property
media_list/items/date_updatedbecame required for the status200response-property-became-required
- ○
the response property
media_list/items/parent_sidbecame required for the status200response-property-became-required
- ○
the response property
media_list/items/sidbecame required for the status200response-property-became-required
- ○
the response property
media_list/items/uribecame required for the status200response-property-became-required
- ○
the response property
next_page_uribecame required for the status200response-property-became-required
- ○
the response property
pagebecame required for the status200response-property-became-required
- ○
the response property
page_sizebecame required for the status200response-property-became-required
- ○
the response property
previous_page_uribecame required for the status200response-property-became-required
- ○
the response property
uribecame required for the status200response-property-became-required
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional
queryrequest parameterDateCreatednew-optional-request-parameter
- ○
added the new optional
queryrequest parameterPageSizenew-optional-request-parameter
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
the response property
previous_page_uribecame nullable for the status200response-property-became-nullable
- ▲
- ▲
the response's body type/format changed from
/toobject/for status200response-body-type-changed
- ●
deleted the
queryrequest parameterDateCreatedrequest-parameter-removed
- ●
deleted the
queryrequest parameterPageSizerequest-parameter-removed
- ○
removed
paginationsubschema #2from the response bodyallOflist for the response status200response-body-all-of-removed
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the optional property
first_page_urito the response with the200statusresponse-optional-property-added
- ○
added the optional property
media_listto the response with the200statusresponse-optional-property-added
- ○
added the optional property
next_page_urito the response with the200statusresponse-optional-property-added
- ○
added the optional property
pageto the response with the200statusresponse-optional-property-added
- ○
added the optional property
page_sizeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
previous_page_urito the response with the200statusresponse-optional-property-added
- ○
added the optional property
urito the response with the200statusresponse-optional-property-added
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲