For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
cXMLREST API
cXMLREST API
  • Core
    • Overview
    • Authorization
    • Error codes
    • Paging
    • REST client SDKs
  • Compatibility REST API
      • GETList Message Media
      • GETRetrieve Message Media
      • DELDelete Message Media
LogoLogoSignalWire Docs
Log inSign up
Support
Compatibility REST APIMessage Media

Retrieve Message Media

|View as Markdown|Open in Claude|
GET
https://your_space.signalwire.com/api/laml/2010-04-01/Accounts/:AccountSid/Messages/:MessageSid/Media/:Sid
GET
/api/laml/2010-04-01/Accounts/:AccountSid/Messages/:MessageSid/Media/:Sid
$curl https://your_space.signalwire.com/api/laml/2010-04-01/Accounts/AccountSid/Messages/MessageSid/Media/Sid \
> -u "<project_id>:<api_token>"
1{
2 "account_sid": "ea108133-d6b3-407c-9536-9fad8a929a6a",
3 "content_type": "image/jpeg",
4 "date_created": "Mon, 13 Aug 2018 21:38:46 +0000",
5 "date_updated": "Mon, 13 Aug 2018 21:38:46 +0000",
6 "parent_sid": "0a059168-ead0-41af-9d1f-343dae832527",
7 "sid": "b3877c40-da60-4998-90ad-b792e98472me",
8 "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"
9}

Retrieve media for a message.

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.

Was this page helpful?
Previous

Delete Message Media

Next
Built with

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

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)