POST

Authorizations

Authorization
string
header
required

Authorization: Bearer vg_live_<32 hex characters>. Keys are issued by Mergen admins and shown once. Missing or invalid key: 401 unauthorized. Suspended account: 403 tenant_suspended.

Path Parameters

campaignId
string
required

Campaign id (cmp_ + 32 hex characters).

Body

JSON records ({ "records": [...] } or a plain array) for an api campaign, or { "csv": "..." } for a csv campaign.

records
object[]
required
Required array length: 1 - 5000 elements

Response

What was taken in.

What an upload did. received records were read; added are now pending. skipped counts the records not called and why (do_not_call ones are closed). invalid and missing list up to 100 rows each (the CSV row or the position in the request).

received
integer
required
Required range: x >= 0
added
integer
required
Required range: x >= 0
skipped
object
required
invalid
object[]
required
missing
object[]
required