Description
Creates a new message as a draft.
Request path
POST [REST URL]/draftmessage/create
Request Body Type
Example body
{ "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":"John<info@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" } }
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 }