SunshineConversationsClient::MessagePost

August 27, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
authorAuthorThe author of the message.
contentContentThe content of the message.
destinationDestination[optional]
metadataHash<String, Object>Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.[optional]
overrideMessageOverride[optional]
schemaStringWhen `schema` is set to `&quot;whatsapp&quot;`, the `content` key is expected to conform to the native WhatsApp schema for sending message templates. For more details, consult the documentation for sending message templates on WhatsApp.[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::MessagePost.new(
  author: null,
  content: null,
  destination: null,
  metadata: {&quot;lang&quot;:&quot;en-ca&quot;},
  override: null,
  schema: whatsapp
)