{

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": "QkVHSU46VkNBTEVOREFSDQpNRVRIT0Q6UkVRVUVTVA0KUFJPRElEOk1pY3Jvc29mdCBFeGNoYW5nZSBTZXJ2ZXIgMjAxMA0KVkVSU0lPTjoyLjANCkJFR0lOOlZUSU1FWk9ORQ0KVFpJRDpXLiBFdXJvcGUgU3RhbmRhcmQgVGltZQ0KQkVHSU46U1RBTkRBUkQNCkRUU1RBUlQ6MTYwMTAxMDFUMDMwMDAwDQpUWk9GRlNFVEZST006KzAyMDANClRaT0ZGU0VUVE86KzAxMDANClJSVUxFOkZSRVE9WUVBUkxZO0lOVEVSVkFMPTE7QllEQVk9LTFTVTtCWU1PTlRIPTEwDQpFTkQ6U1RBTkRBUkQNCkJFR0lOOkRBWUxJR0hUDQpEVFNUQVJUOjE2MDEwMTAxVDAyMDAwMA0KVFpPRkZTRVRGUk9NOiswMTAwDQpUWk9GRlNFVFRPOiswMjAwDQpSUlVMRTpGUkVRPVlFQVJMWTtJTlRFUlZBTD0xO0JZREFZPS0xU1U7QllNT05USD0zDQpFTkQ6REFZTElHSFQNCkVORDpWVElNRVpPTkUNCkJFR0lOOlZFVkVOVA0KT1JHQU5JWkVSO0NOPU1hcmxvdSBWZXJtZWVyZW46TUFJTFRPOk1hcmxvdS5WZXJtZWVyZW5A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y1JTVBPUlRBTkNFOjENClgtTUlDUk9TT0ZULUNETy1JTlNUVFlQRTowDQpYLU1JQ1JPU09GVC1ESVNBTExPVy1DT1VOVEVSOkZBTFNFDQpCRUdJTjpWQUxBUk0NCkRFU0NSSVBUSU9OOlJFTUlOREVSDQpUUklHR0VSO1JFTEFURUQ9U1RBUlQ6LVBUMTVNDQpBQ1RJT046RElTUExBWQ0KRU5EOlZBTEFSTQ0KRU5EOlZFVkVOVA0KRU5EOlZDQUxFTkRBUg0K", "FileName": "CalendarInvite.ics" }], "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