Skip to main content

Creating an unsubscription

Create an unsubscription

POST https://api.cm.com/bulkemail/v1.0/accounts/{accountID}/unsubscriptions

POST Parameters​

NameInDescriptionRequiredTypeExample
AccountIDPathThe account guidTrueGuidA8C062E4-ECFD-48D0-89B1-A37D2622B7A9
BodyBodyThe from address to createTrueJson objectSee example request
X-CM-PRODUCTTOKENHeaderYour product tokenTrueGuidC24A5029-37DD-4161-9728-F80D8639588E
{
"EmailAddress": "[email protected]"
}

Responses​

Http statusDescription
201Unsubscription created
400Bad request
Example response
{
"ID": "db550a9c-f47c-49ff-98b3-eac43325bbb9",
"AccountID": "a65b6ba1-7b13-4cff-aaf6-c736c977c1d4",
"EmailAddress": "[email protected]",
"UnsubscriptionType": 1,
"CreatedOn": "2017-08-09T13:25:14.198",
"CreatedOnUtc": "2017-08-09T12:25:14.198Z",
"ModifiedOn": "2017-08-09T13:25:14.198",
"ModifiedOnUtc": "2017-08-09T12:25:14.198Z"
}