SunshineConversationsClient::AttachmentSchema

August 27, 2025 · View on GitHub

Properties

NameTypeDescriptionNotes
media_urlStringUploaded attachment’s url. <aside class=&quot;notice&quot;><strong>Note:</strong> An authorization header is required to access the mediaUrl when private attachments are enabled. See configuring private attachments for messaging guide for more details.</aside>[optional]
media_typeStringUploaded attachment's media type[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::AttachmentSchema.new(
  media_url: https://smooch.io/rocks.smooch.media-dev/apps/5ec41c54fe13cc5ac404bedc/conversations/c616a583e4c240a871818541/TmYMVQUBNsQRItX4fKf4aC-T/Screen%20Shot%202020-09-02%20at%204.04.41%20PM.png,
  media_type: image/png
)