No — you must supply either a template/preset or the message content. Validation requires at least one of the two; when explicit content is present it is used to build the email body and no template is needed.
The field names differ per endpoint — use the right one:
/createEmailMessage(Email API): the template is referenced bypresetand the body bycontent. The reference table markspresetas required, but a request that carries explicitcontentis accepted.- Messaging API v2 email payload: the fields are
email_template(template code) oremail_preset(preset code), with the body inbody. If neither is set, the request fails with “either email_template or body must be set”.
If you pass both a template/preset and inline values, the inline values win — subject, from, reply-to and body you specify explicitly override the preset.
Comments
0 comments
Please sign in to leave a comment.