Retrieve Message Media

View as MarkdownOpen in Claude
Retrieves one MMS attachment by message SID and media SID. Use [List Message Media](/docs/compatibility-api/rest/message-media/list-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](/docs/platform/your-signalwire-api-space).

Authentication

AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token. The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password. Example: ``` Authorization: Basic base64(project_id:token) ```

Path parameters

AccountSidstringRequiredformat: "uuid"
The unique identifier of the project that sent or received this message.
MessageSidstringRequiredformat: "uuid"
A unique ID that identifies this specific message.
SidstringRequiredformat: "uuid"
A unique ID that identifies this specific message.

Response

The request has succeeded.
account_sidstringformat: "uuid"
The unique identifier for the account.
content_typestring
The content type of the media.
date_createdstring
The date, in RFC 2822 GMT format, this media was created.
date_updatedstring
The date, in RFC 2822 GMT format, this media was updated.
parent_sidstringformat: "uuid"
The unique identifier for the message.
sidstringformat: "uuid"
The unique identifier for the media.
uristring
The URI for the media.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error