Skip to main content
POST
cURL

Authorizations

X-Auth-ID
string
header
required

Your Vobiz account Auth ID (MA_XXXXXXXX).

X-Auth-Token
string
header
required

Your Vobiz account Auth Token.

Path Parameters

id
string<uuid>
required

The broadcast's id (UUID), as returned by POST /broadcasts or GET /broadcasts. An id that is not a UUID, or that belongs to another account, returns 404 with broadcast not found.

Body

A recipient file upload. Every column other than the phone column becomes a template variable named after its header.

file
file
required

A .csv or .xlsx file of at most 10 MB and 10,000 recipients. The phone column is detected from its header (phone, mobile, msisdn, number, to, phonenumber and similar), otherwise the first column is used. Files without a header get the columns phone, column2, column3 and so on; CSV delimiters ,, ; and tab are detected, and for XLSX the first sheet is read.

defaultCountry
enum<string>
default:US

ISO 3166-1 alpha-2 country code, matched case-insensitively, used to normalise numbers that have no country code. Defaults to US.

Available options:
US,
CA,
GB,
IN,
AU,
NZ,
IE,
DE,
FR,
ES,
IT,
NL,
BE,
CH,
AT,
SE,
NO,
DK,
FI,
PL,
PT,
BR,
MX,
AR,
CO,
CL,
SG,
MY,
ID,
PH,
TH,
VN,
JP,
KR,
CN,
HK,
AE,
SA,
QA,
IL,
TR,
ZA,
NG,
KE,
EG,
PK,
BD,
LK,
NP
Example:

"US"

Response

Upload summary. The broadcast's columns and stats are updated.

Summary of a recipient upload. The upload replaces the broadcast's previous recipient list.

total
integer

Rows read from the file or array, excluding the header line.

Example:

5

valid
integer

Rows with a valid, unique number that were stored as recipients, including opted-out numbers.

Example:

3

invalid
object[]

Rejected rows with the reason for each, at most the first 100. Fix them in your file and upload again.

invalidCount
integer

Total rejected rows, including any beyond the 100 listed in invalid.

Example:

1

duplicates
integer

Rows dropped because the same number appeared earlier in the upload.

Example:

1

optedOut
integer

Stored rows marked opted_out because the number opted out of SMS from you. They count towards valid and are never sent.

Example:

0

columns
string[]

Column names detected in the upload, as written in your header. The first is the phone column; the rest are template variables.

Example: