Skip to main content
POST
Trigger Broadcast

Authorizations

Authorization
string
header
required

Pass as Bearer <API_KEY>. Get API Key from SuprSend dashboard Developers -> API Keys section.

Path Parameters

workspace_key
string
required

unique identifier of your workspace

Body

application/json
list_id
string
default:_list_id_
required

unique identifier to user list that you want to send broadcast messages to.

Pattern: ^[a-z0-9_-]+$
template
string
default:_template_slug_
required

Unique slug name of the template created on SuprSend dashboard. You can get this by clicking on the clipboard icon next to the Template name on SuprSend templates page.

notification_category
string
default:transactional
required

Category in which your notification belongs. You can understand more about them in the Notification Category documentation

channels
string[]

If set, broadcast will be sent only on the channels defined here irrespective of communication channels present in user profile.

data
object

Mock data to replace the template variables.

delay
string

Broadcast will be halted for the time mentioned in delay, and become active once the delay period is over. Format - XXdXXhXXmXXs or if its number (n) then delay is in seconds (n)

trigger_at
string<date-time>

Trigger broadcast on a specific date-time. Format - date string in ISO 8601 e.g. "2022-08-27T20:14:51.643Z"

precompute
boolean
default:false

When true, SuprSend prepares the send plan (list snapshot, preferences and rendered messages) before the scheduled time set by trigger_at or delay, so sending starts at the scheduled time. Only applies to scheduled broadcasts; ignored when trigger_at and delay are both absent. See Precompute a scheduled broadcast for the full behavior, what happens to changes after the snapshot, and log events.

tenant_id
string

string identifier of the tenant this broadcast is associated with

cancellation_key
string

Lookup key stored on the running execution(s) so a Cancel Workflow node can later stop them by matching on it. Pass a literal string (max 512 characters; longer values are truncated). Overrides the target workflow's own Trigger-node Cancellation Key expression when both are present.

Maximum string length: 512
Example:

"booking-123"

Response

202 - Accepted

Plain-text confirmation that the broadcast request was accepted for processing.

Example:

"OK"