Creates and Sends an Email message.
-
Emails will be sent using the channel that corresponds to the
from
request parameter.
Thefrom
value can be either the channel'semail adrress
or the channel'sID
. -
Plain Text and HTML bodies are accepted (as long as they're in string format).
-
Attachment-only emails are also accepted.
-
If there is no contact corresponding to the
to
parameter for the organization, a new contact will be created, along with a conversation with thefrom
email channel. If there is an existing contact but no conversation, a new conversation will be created. -
The
opt_in_to_all_channels
andopt_in_to
params are optional and they will be processed in the cases where a new contact is created. These params reflect which of the organization channels the contact will be opted in to.
Note: The Messaging API is designed for creating and managing emails and can only process POST requests. To view emails, navigate to the Conversation section where you can use the Show Conversation API to GET emails within a specific conversation.