Create campaign
API Description
API Key Authentication
Authentication is required in order to interact with Batch's APIs.
Batch implements authentication using API Keys, that we call the "REST API Key". You can find it on your dashboard.
Please make sure that you keep this key secret. You should never use it in client apps to call APIs from there as it would easily be extractable.
How to authenticate
In order to authenticate your requests, add your REST API Key in the Authorization header and prefix it by Bearer. Example: Authorization: Bearer bcd38d9rfb38ra28.
The unique project key, identifying a project on the Batch platform
project_0664hxvwffvbpn278gxdyhsadddqgna6Display name of the campaign on the dashboard
State of the campaign to create. Draft campaigns are not sent until they are started (updated to RUNNING). Stopped campaigns are paused and can be resumed by updating them to RUNNING.
Determines the maximum number of messages to be sent per minute.
An array of labels to assign to the campaign for organizational and capping purposes. Limited at 5 labels per campaign.
Request successful, campaign created
The request is malformed
The Rest API Key is not valid for this project
Too Many Requests
Unexpected error
Batch's services are under maintenance. Please try again later
Request structure
Headers and authentication
Post data
Campaign general information
Send rate (optional)
Labels (optional)
When block
Targeting block
Messages block - for email
Channel type
Sender Identity
Languages array
Messages block - for push
Channel type
Filter push tokens
iOS / Android / Web platorms
Languages array
iOS specific attributes
Android specific attributes
Web specific attributes
Multi-language
Responses
Success
Failure
Last updated

