Campaigns

Create a new web push campaign

post/push/tasks

Request

  • Base URL: https://api.sendpulse.com
  • URL: https://api.sendpulse.com/push/tasks
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (client credentials, token URL https://api.sendpulse.com/oauth/access_token)

Request body

titlestring required
website_idinteger required
bodystring required
ttlinteger required
linkstring
filter_langstring
filter_browserstring
filter_regionstring

JSON string of country codes, e.g. ['UK']

filter_urlstring

JSON string for URL filtering

filter_subscription_date_fromstring
filter_subscription_date_tostring
filterobject

Segmentation by custom variables

stretch_timeinteger
send_datestring date-time
buttonsstring

JSON string for buttons

imagestring

JSON string with name and Base64 data

iconstring

JSON string with name and Base64 data

Response

Campaign created

resultboolean
idinteger

Changes

No recorded changes to this operation across all 1 revision of this API.