Explore Features  Free Trial

The SendLabs API

CampaignSummary()

Returns a summary which includes total active recipients, unique clicks, total clicks, unique opens, total opens, unsubscribes and bounces for the provided campaign
Welcome To SendLabs!
/

Become an Email Marketing Pro

 
 
Subscribe
Hints tips, best practices, recent blog posts and happenings dropped into your inbox.


Subscribe to the semi-regular email newsletter from the crew at SendLabs.
 
     


/
API Methods
 
  Subscribers
AddSubscriber()
AddSubscriberWithCustomFields()
Unsubscribe()
ReturnActive()
ReturnUnsubscribed()
ReturnBounced()

Campaigns
CampaignSummary()
CampaignBounces()
CampaignClicks()
CampaignOpens()
 
     


/
 
 



 
     
Welcome To SendLabs!
Parameters

ApiKey (Required)
    Your application authentication key. Click here to find out more
EmailID (Required)
    The EmailID for the delivered campaign Click here to find out more

SOAP Sample Request

POST /api/api.php HTTP/1.1
Host: sl5.sendlabs.com
Content-Type: text/xml; charset=utf-8
Content-Length: length

SOAPAction: "http://sl5.sendlabs.com/api/CampaignSummary"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
   <CampaignSummary xmlns="http://sl5.sendlabs.com/api/">
     <ApiKey>string</ApiKey>
     <EmailID>string</EmailID>
   </CampaignSummary>
 </soap:Body>
</soap:Envelope>
   

SOAP Sample Response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
<CampaignSummaryResponse xmlns="http://sl5.sendlabs.com/api/">
      <Recipients>int</Recipients>
      <TotalOpened>int</TotalOpened>
      <UniqueOpened>int</UniqueOpened>
      <TotalClicks>int</TotalClicks>
      <UniqueClicks>int</UniqueClicks>
      <Unsubscribed>int</Unsubscribed>
      <Bounced>int</Bounced>
 </CampaignSummaryResponse>
 </soap:Body>
</soap:Envelope>
   

Fault Codes

200 - Invalid EmailID
    The Associated Email is not valid
100 - Invalid API Key
    The API key is not valid or expired