Send an HTML Upload to an Uploaded List

Combine both uploads: the HTML body as a ZIP file and the recipients as a CSV file.

Endpointhttps://enterprise.webaroo.com/GatewayAPI/rest
MethodEMS_UPLOAD_CAMPAIGN_TO_UPLOADED_ADDRESSES
HTTP methodsPOST
🚧

CC and BCC are not supported

ccEmailId and bccEmailId cannot be used with this method.

Request

curl --location --request POST 'https://enterprise.webaroo.com/GatewayAPI/rest' \
--form 'method="EMS_UPLOAD_CAMPAIGN_TO_UPLOADED_ADDRESSES"' \
--form 'userid="xxxxxxxxxx"' \
--form 'password="xxxxx"' \
--form 'v="1.1"' \
--form 'name="QA API 011"' \
--form 'subject="QA API 011 - Recipient List and Newsletter"' \
--form 'content_type="text/html"' \
--form 'recipients_file=@"/home/Desktop/Testing/Recipient_list.csv"' \
--form 'newsletter_file=@"/home/Desktop/Testing/Test_2-link.zip"' \
--form 'replyToEmailId="[email protected]"' \
--form 'attachment1=@"/C:/Users/TEST/Downloads/EnterpriseEmailAPIDocument.pdf"'

Parameters

ParameterTypeRequiredDescriptionExample
useridstringYesYour Gupshup account user ID. Numeric only, no special characters.2000155005
passwordstringYesPassword for the user ID.sh1gw4e
methodstringYesMust be EMS_UPLOAD_CAMPAIGN_TO_UPLOADED_ADDRESSES.EMS_UPLOAD_CAMPAIGN_TO_UPLOADED_ADDRESSES
vstringYesAPI version. Must be 1.1.1.1
content_typestringYesEmail body type. Must be text/html.text/html
subjectstringYesEmail subject line.Email Notification for Subscription renewal
recipients_filefileYesCSV file containing recipient email IDs.@"/C:/Users/TEST/Desktop/list.csv"
newsletter_filefileYesEmail body as a ZIP file.@"/C:/Users/TEST/Downloads/newsletter.zip"
namestringNoSender name shown to the recipient.X Company
scheduled_atstringNoSend time, URL-encoded, format YYYY-MM-DD HH:mm:ss.2020-04-16%2012:53:00
replyToEmailIdstringNoAddress that receives replies. Must be configured on the account, otherwise the request fails.[email protected]
attachment1 … attachment5fileNoFiles to attach. Total size must not exceed 20 MB.@"/C:/Users/TEST/Downloads/file.pdf"

Did this page help you?