Add Campaign

 Home /Knowledgebase / SEMSblast API /Add Campaign

Use the API to add a new campaign.



Submit an XML Request with the following details:

Post URL:


Fields to Post
apiKey String REQUIRED The APIKey of the requesting user.
groupID Int REQUIRED The ID of the group you would like to send to.
segmentID Int OPTIONAL The ID of a segment in the group you would like to send to.
newsletterID Int REQUIRED The ID of the newsletter you would like to send.
campaignName String REQUIRED A friendly name for the Campaign
senderName String REQUIRED The name of the sender which will be shown on the email.
senderEmail String REQUIRED The email address the email should be sent from.
fromEmail String OPTIONAL Sets the RETURN-PATH email header.
subject String REQUIRED The email subject that will be sent.
startDate Date Time REQUIRED The start time of the campaign. yyyy-mm-dd hh:mm
includeFooter Int OPTIONAL Whether to include the default footer (Unsubscribe,Send to Friend, Report as Junk) at the bottom of your email template. Set to 1 to include, set to 0 to not include.



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.
campaignID Int If the campaign has been added succesfully, the ID of the new campaign.
totalSubscribers Int The total number of subscribers sent to.


Sample request XML

     <campaignName>Sample Campaign</campaignName>
     <senderName>My Name</senderName>
     <subject>Welcome to my newsletter</subject>
     <startDate>2014-06-01 12:00</startDate>


Sample response XML


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