APIs

Campaign API

A campaign is the configuration for sending out messages. Campaigns need senders, messages, and contacts in order to work properly.


Create Campaign

Send an array of contacts to bulk create contacts. If you have more than 100 contacts, you can split them into multiple requests.

curl -X POST https://api.supersend.io/v1/auto/campaign \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-D '{  \
  "name": "", \
  "TeamId": "xxx-xxx-xxx", \
  "CampaignId": "xxx-xxx-xxx", \
}'

Get Campaigns

overview - if set to true will provide campaign highlights

curl -X GET 'https://api.supersend.io/v1/auto/campaigns?TeamId=xxx&CampaignId=xxx&overview=<boolean>' \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"

Get Campaign

Returns the campaign with performance stats

curl -X GET 'https://api.supersend.io/v1/auto/campaign/<CampaignId>?TeamId=xxx' \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"

Update Campaign

curl -X PUT https://api.supersend.io/v1/auto/campaign/<CampaignId> \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json" \
-D '{ \
  "default":false, \
  "name":"4. Twitter - mailshake", \
  "warm":false, \
  "unsubscribe":true, \
  "max_per_day":25, \
  "max_per_day_twitter":50, \
  "unsubscribe_message":"string", \
  "hours": [{ start: "09:00", end: "15:00" }], \
  "status":1, \
  "LinkedinId":"XXX", \
  "TwitterId":"XXX", \
  "SenderIds": ["XXX"], \
  "TeamId":"XXX", \
  "CampaignId":"XXX" \
  "days": { \
    "friday": true, \
    "monday": true, \
    "sunday": false, \
    "tuesday": true, \
    "saturday": false, \
    "thursday": true, \
    "wednesday": true \
  },
}'

Delete Campaign

curl -X DELETE https://api.supersend.io/v1/auto/campaign/<CampaignId> \
-H "Authorization: Bearer <API_KEY>" \
-H "Content-Type: application/json"
Previous
Contacts