Skip to main content
POST
JavaScript

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

The account for which the blast should be sent.

Example:

"acct_01j9a43avnfqzbjfch6pygv1td"

Body

application/json

Parameters for creating a Blast

attachments
AttachmentParams · object[]
body
string | null

The message body.

contacts
string<id>[]
deprecated

Deprecated. Use to instead.

from
string

The phone number from which to send the blast. This can be either the phone number in E.164 format or a Surge phone number id. If not provided, the account's default phone number is used.

Pattern: ^\+[1-9]\d{6,14}$|^\d{5,6}$|^pn_[[:alnum:]]{26}$
Example:

"+18015552345"

name
string

Optional name for the blast.

segments
string<id>[]
deprecated

Deprecated. Use to with audience IDs instead.

send_at
string<date-time>

When to send the blast. If not provided, sends immediately.

to
string<id> · string<id> · string<phone-number>[]

List of recipients to whom the blast should be sent. This can be a combination of contact IDs, audience IDs, and phone numbers.

Example:

"ctc_01jxwtp1vse91twb5bj977gav9"

Response

Created blast

A Blast is a message sent to multiple recipients at once.

attachments
object[]
body
string | null

The message body.

id
string

Unique identifier for the object.

name
string

Optional name for the blast.

send_at
string<date-time>

When the blast will be or was sent.