Unsubscribe a Subscriber

 Home /Knowledgebase / SEMSblast API /Unsubscribe a Subscriber

Use the API to remove a subscriber from all groups, and unsubscribe them from future mailings.

 

Request

Submit an XML Request with the following details:

Post URL: http://cp.semsblast.com/api/v3.0/subscribers/unsubscribe/

 

Fields to Post
apiKey String REQUIRED The APIKey of the requesting user.
email String   The email address of the susbcriber you wish to unsubscribe.
subscriberID Int   OR instead of using Email (Above), you can use the subscriber ID of the subscriber you wish to unsubscribe.
groupID Int   Optionally specify the group to remove this subscriber from. If not specified, subscriber will be removed from all groups.

 

Response

Data Sent Back
error Int Indicates wether an error has occured. 0 for no error. 1 for error.
status String If there's been an error, a text description of the error that occured will be here.

 

Sample request XML using Subscriber ID

<xml>
     <apiKey>44-121312131223</apiKey>
     <subscriberID>12323</subscriberID>
</xml>

 

Sample request XML using EMAIL ADDRESS

<xml>
     <apiKey>44-121312131223</apiKey>
     <email>test@test.com</email>
</xml>

 

Sample response XML

<xml>
     <error>0</error>
     <status>success</status>
</xml>





Copyright © 2015 SEMSblast.com | Smarter eMail Marketing Solution. All rights reserved.Terms of Service | Privacy Policy