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
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
      • Skills
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
        • Accounts
        • Applications
        • Calls
        • Conferences
        • Faxes
        • LAML Bins
        • Messages
          • create
          • delete
          • deleteMedia
          • get
          • getMedia
          • list
          • listMedia
          • update
        • Phone Numbers
        • Queues
        • Recordings
        • Tokens
        • Transcriptions
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Response Example
  • Example
REST ClientCompatMessages

getMedia

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

list

Next
Built with

Retrieve a specific media item from a message.

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

account_sidstringRequiredformat: "uuid"
The unique identifier for the account.
content_typestringRequired
The content type of the media.
date_createdstringRequired
The date, in RFC 2822 GMT format, this media was created.
date_updatedstringRequired
The date, in RFC 2822 GMT format, this media was updated.
parent_sidstringRequiredformat: "uuid"
The unique identifier for the message.
sidstringRequiredformat: "uuid"
The unique identifier for the media.
uristringRequired
The URI for the media.

Response Example

Response
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}

Example

1import { RestClient } from "@signalwire/sdk";
2
3const client = new RestClient({
4 project: "your-project-id",
5 token: "your-api-token",
6 host: "your-space.signalwire.com",
7});
8
9const item = await client.compat.messages.getMedia("SM...", "ME...");