1. Intro
  2. From domains
    1. Get all from domains
    2. Get specific from domain
    3. Create from domain
    4. Verify from domain
    5. Delete from domain
    6. From domain object definition
  3. From addresses
    1. Get all from addresses
    2. Get specific from address
    3. Create from address
    4. Update from address
    5. Delete from address
    6. From address object definitions
  4. Address lists
  5. Templates
    1. Get all templates
    2. Get specific template
    3. Create template
    4. Update template
    5. Delete template
    6. Template object definitions
  6. Campaigns
    1. Get all campaigns
    2. Get specific campaign
    3. Create campaign
    4. Update campaign
    5. Delete campaign
    6. Clone campaign
    7. Get statistics
    8. Get clicks
    9. Get statistics details
    10. How to use triggered campaigns
    11. Campaign object definitions
  7. Mailings
    1. Get all mailings
    2. Get specific mailing
    3. Create mailing
    4. Update mailing
    5. Delete mailing
    6. Get statistics
    7. How to use merge fields
    8. Mailing object definitions
  8. Mails
    1. Create mail
    2. Create triggered mail
    3. Mail object definitions
  9. Unsubscriptions
    1. Get all unsubscriptions
    2. Create unsubscription
    3. Delete unsubscription
    4. Unsubscription object definition
  10. Campaign tags
    1. Get all campaign tags
    2. Get specific campaign tag
    3. Create campaign tag
    4. Update campaign tag
    5. Delete campaign tag
    6. Add campaign tag to campaign
    7. Delete campaign tag from campaign
    8. Campaign tag object
  11. Webhooks
    1. Get webhook
    2. Create or update webhook
    3. Delete webhook
    4. Webhook object definition
    5. How to implement the webhook

INTRO

CM's Email campaigns API enables you to send email campaigns to your recipients. You can integrate this in your application by communicating with our api.

The Email campaigns API is a REST API that uses JSON to communicate.

Authentication

Authentication and authorisation is done via a product token. You can obtain your product token by going to the email campaigns app and go to the api settings, which you can find under the settings menu.

For all methods described in this api, the product token should be provided by including it in the X-CM-PRODUCTTOKEN header.

Getting your accountID

In all methods you need to provide the accountID. This is a guid that identifies your account. You can obtain your accountID by going to the email campaigns app and go to the api settings, which you can find under the settings menu.

Getting started

We have an open source netstandard library available @ https://github.com/cmdotcom/email-sdk-dotnet that enables you to use the API directly from a .NET or dotnet core application. You can install it from NuGet using the following command in NuGet Package Manager Console:

Install-Package CM.Email.Sdk

Or search for CM.Email.Sdk in the NuGet Pacakage Manager.

This is the easiest way to send your first mail, but if you are using another programming language or platform, sending a POST command with JSON should be fairly straight forward.