Skip to main content
POST
Create a Push Campaign

Create a Push Campaign

Creates a push campaign draft. You can set content and audience now or later with Update a push campaign, then send it. Requires the campaigns:write scope.

Request

string
default:"Untitled push campaign"
Campaign name.
object
Audience, same shape as campaign targetLists: {"type":"all"}, {"type":"lists","listIds":[...]}, {"type":"segment","segmentId":"..."}, or {"type":"rules","include":[...]}. Only contacts with an active push device receive the campaign.
string
Notification title, up to 120 characters. Merge tags such as {{FIRST_NAME|there}} work.
string
Notification message, up to 500 characters. Merge tags work.
string | null
Link opened on tap: an https URL, an app deep link (myapp://...), or a merge tag. Browsers only open https links. null clears it.
string | null
Optional https image shown in the notification.
string | null
Optional https icon for web push. Defaults to the icon in push settings.
string[]
Limit delivery to web, ios, and/or android. Omit or pass [] for every platform.

Responses