{

Create a mail

Create a mail without creating a campaign

POST https://api.cmtelecom.com/bulkemail/v1.0/accounts/{accountID}/mails

POST Parameters

Name In Description Required Type Example
AccountID Path The account guid True Guid A8C062E4-ECFD-48D0-89B1-A37D2622B7A9
Body Body The mail to create True Json object { "FromAddressID": "05923f4c-eb2e-4e4b-a07a-096fcbb2697a", "FromName": "John Doe", "ReplyToAddressID": null, "ToAddress": "john.doe@cm.com", "Subject": "Demo", "HtmlBody": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><body><p> Hello John!</p></body></html>", "TextBody": "Hello John", "Attachments" : [{ "Content": "VGhpcyBpcyBhIGF3ZXNvbWUgdGV4dCBmaWxl", "FileName": "info.txt" }], "CustomerReference": "123456789" }
X-CM-PRODUCTTOKEN Header Your product token True Guid C24A5029-37DD-4161-9728-F80D8639588E

Responses

Http status Description Example
201 Mailing created { "ID": "16bc0f8e-77af-4cfa-a2d0-686726d1f697", "AccountID": "a8c062e4-ecfd-48d0-89b1-a37d2622b7a9", "FromAddressID": "05923f4c-eb2e-4e4b-a07a-096fcbb2697a", "FromName": "John Doe", "ReplyToAddressID" : null, "ToAddress": "john.doe@cm.com", "Subject": "Demo", "HtmlBody": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional //EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html><body><p> Hello John!</p></body></html>", "TextBody": "Hello John", "Attachments": null, "CreatedOn": "2017-08-22T16:30:09.8992616+02:00", "ModifiedOn": "2017-08-22T16:30:09.8992616+02:00" }
400 Bad request

Try it out