/draftmessage/create
- 1 Minute to read
- Print
- DarkLight
/draftmessage/create
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Post
/draftmessage/create
Creates a new message as a draft.
Request body example:
{
"name": "Test Draft Message",
"externalId": null,
"messageCategoryId": null,
"message":
{
"subject": "This is draft test",
"emailBodyText": null,
"emailBodyHtml": "Test",
"smsText": null,
"faxText": null,
"emailHeaders":
[
],
"attachments":
[
],
"attachmentReferences": null,
"encoding": "ISO-8859-1",
"encodingSMS": "ISO-8859-1",
"imageHandlingMode": "none"
}
}
Example body with from and Reply-to headers:
{
"name": "Test Draft Message",
"externalId": null,
"messageCategoryId": null,
"message":
{
"subject": "This is draft test",
"emailBodyText": null,
"emailBodyHtml": "Test",
"smsText": null,
"faxText": null,
"emailHeaders":
[{"name":"from","value":"Johninfo@qamanual.staging11.shortest-route.com"},
{"name":"Reply-to","value":"Bob info@qamanual.staging11.shortest-route.com"}],
"attachments":[],
"attachmentReferences": null,
"encoding": "ISO-8859-1",
"encodingSMS": "ISO-8859-1",
"imageHandlingMode": "none"
}
}
ImageHandlingMode values:
"none" - Image links are unchanged
"inline" - Image are inlined (Offline HTML)
"host" - Image are Hosted in Mapp Engage (Online HTML)
Body parameters
object
id
integer (int64)
name
string
externalId
string
messageCategoryId
integer (int64)
message
object (MessageBase)
subject
string
emailBodyText
string
emailBodyHtml
string
smsText
string
faxText
string
emailHeaders
Array of object (Attribute)
object
name
string
value
string
attachments
Array of object (Attachment)
object
name
string
contentType
string
content
string
attachmentReferences
Array of object (AttachmentReference)
object
contentId
string
reference
string
encoding
string
encodingSMS
string
imageHandlingMode
string
Responses
200
Example response when dmarcTrue=true and domain not matching:
{
"errorActor": null,
"errorCode": "INVALID_PARAMETER",
"message": "reply-to email must contain valid email domain",
"parameterName": null,
"propertyName": null,
"value": null
}
object
id
integer (int64)
name
string
externalId
string
messageCategoryId
integer (int64)
message
object (MessageBase)
subject
string
emailBodyText
string
emailBodyHtml
string
smsText
string
faxText
string
emailHeaders
Array of object (Attribute)
object
name
string
value
string
attachments
Array of object (Attachment)
object
name
string
contentType
string
content
string
attachmentReferences
Array of object (AttachmentReference)
object
contentId
string
reference
string
encoding
string
encodingSMS
string
imageHandlingMode
string
400
Was this article helpful?