Campaign File Upload

The Campaign File Upload API allows businesses to securely upload their contact list or campaign content files to Viber's platform for use in bulk campaigns.

Files must be uploaded as binary data using multipart/form-data. The following file formats are supported:

  • CSV (.csv) — Comma-separated contact list
  • Excel (.xlsx, .xls) — Spreadsheet contact list
  • Plain Text (.txt) — Tab or newline-delimited contact list
  • ZIP (.zip) — Archive containing a single CSV file

Once uploaded, the API returns a campaign_id which is required when sending campaign messages via the Send Campaign Messages API.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Upload a campaign contact list or content file as a binary multipart/form-data request. Supported formats: CSV, XLSX, XLS, TXT, and ZIP (containing CSV). For sample file formats, see:

file
required

The binary file to upload. Supported formats: CSV (.csv), Excel (.xlsx, .xls), plain text (.txt), or a ZIP archive (.zip) containing a CSV file.

string
enum
required

The MIME type of the uploaded file. Must match the actual file format being sent.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/xml