Introduction

INTRO

CM.com'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.