Send an HTML Upload Campaign
Send a campaign whose HTML body is uploaded as a ZIP file, to a comma-separated list of recipients.
| Endpoint | https://enterprise.webaroo.com/GatewayAPI/rest |
| Method | EMS_UPLOAD_CAMPAIGN |
| HTTP methods | POST |
Request
curl --location --request POST 'https://enterprise.webaroo.com/GatewayAPI/rest' \
--form 'method="EMS_UPLOAD_CAMPAIGN"' \
--form 'userid="xxxxxxxxxx"' \
--form 'password="xxxxxx"' \
--form 'v="1.1"' \
--form 'name="QA 033"' \
--form 'subject="Verify Email 033"' \
--form 'newsletter_file=@"/C:/Users/TEST/Downloads/newsletter.zip"' \
--form 'content_type="text/html"' \
--form 'replyToEmailId="[email protected]"' \
--form 'recipients="[email protected]"' \
--form 'attachment1=@"/home/TEST/Desktop/Testing/Testing_100KB.pdf"'Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
userid | string | Yes | Your Gupshup account user ID. Numeric only, no special characters. | 2000155005 |
password | string | Yes | Password for the user ID. | YOUR_PASSWORD |
method | string | Yes | Must be EMS_UPLOAD_CAMPAIGN. | EMS_UPLOAD_CAMPAIGN |
v | string | Yes | API version. Must be 1.1. | 1.1 |
content_type | string | Yes | Email body type. Must be text/html. | text/html |
subject | string | Yes | Email subject line. | Email Notification for Subscription renewal |
recipients | string | Yes | Comma-separated recipient email IDs. | [email protected],[email protected] |
newsletter_file | file | Yes | Email body as a ZIP file. | @"/C:/Users/TEST/Downloads/newsletter.zip" |
name | string | No | Sender name shown to the recipient. | X Company |
content | string | No | Email body text. | Hi, This is a campaign |
scheduled_at | string | No | Send time, URL-encoded, format YYYY-MM-DD HH:mm:ss. | 2020-04-16%2012:53:00 |
replyToEmailId | string | No | Address that receives replies. Must be configured on the account, otherwise the request fails. | [email protected] |
attachment1 … attachment5 | file | No | Files to attach. Total size must not exceed 20 MB. | @"/C:/Users/TEST/Downloads/file.pdf" |
Updated about 11 hours ago
Did this page help you?
