Address Formats
To send a message a minumum of two addresses should be provided, the source address (From) and the destination address (To).
The Source Address (From)
Every message has a source address that refers to the identifier indicating where the message originates from.
It helps the receiving end know where the message came from. Typically, the source address contains an email, phone number, user ID or name, or a verified brand name.
The Destination Address (To)
The destination address identifies the intended recipient of the message.
For SMS, the destination address is the recipient's phone number. Unimsgs accepts phone numbers in international format that is composed of numbers only without any special characters or white spaces.
An example of an accepted phone number is: 966501234567.
For emails, the destination address is an email address (formatted as username@domain.com).
The Channels Format
Unimsgs supports sending various types of messages across multiple channels (Ominichannel messages), including SMS, email, WhatsApp, and Telegram.
Unimsgs uses the channels format that addresses the destination of each channel and will override the default destination address.
The format is '{default address}
;{channel1}:{address1}
;{channel2}:{address2}
'
The following are some examples:
- 'to': '
966501234567
': Descibes a (To) parameter with a default value that should be used for all channels. - 'to': '
966501234567
;email:john@example.com
': Descibes a (To) parameter with a default value that will be overriden with 'john@example.com' for email channels.