Send Transactional Mail
This method allows you to send mail immediately to one recipient. Useful for OTP, verification mails etc.
URL
https://mail.tribearc.com/api/campaigns/send_now.php
PARAMETERS (POST)
api_keyyour API key, available in Settings.from_namethe 'From name' of your campaignfrom_emailthe 'From email' of your campaignreply_tothe 'Reply to' of your campaigntitlethe 'Title' of your campaignsubjectthe 'Subject' of your campaignplain_textthe 'Plain text version' of your campaign (optional)html_textthe 'HTML version' of your campaignemailsA single email you want to send to. (Only one recipient email is expected)brand_idRequired only if you are creating a 'Draft' campaign (send_campaignset to 0 or left as default). Brand IDs can be found under 'Brands' page named IDquery_stringeg. Google Analytics tags (optional)track_opensSet to0to disable,1to enable and2for anonymous opens tracking.track_clicksSet to0to disable,1to enable and2for anonymous clicks tracking.send_campaignSet to1if you want to send the campaign as well and not just create a draft. Default is0.ccInclude additional emails as copy. If multiple emails, make them comma separatedbccInclude additional emails as blind copy. If multiple emails, make them comma separatedschedule_date_timeCampaign will be scheduled if a valid date/time is passed. Date/time format eg. June 15, 2021 6:05pm. The minutes part of the time has to be in increments of5, eg. 6pm, 6:05pm, 6:10pm, 6:15pm.schedule_timezoneEg. 'America/New_York'. See the list of PHP's supported timezones. This parameter only applies if you're scheduling your campaign withschedule_date_timeparameter. TribeArc will use your default timezone if this parameter is empty.
RESPONSE (Plain text)
Success: Campaign created
Success: Campaign created and now sending
Success: Campaign scheduled
Error: No data passed
Error: API key not passed
Error: Invalid API key
Error: From name not passed
Error: From email not passed
Error: Reply to email not passed
Error: Subject not passed
Error: HTML not passed
Error: List or segment ID(s) not passed
Error: Unable to create campaign
Error: Unable to create and send campaign
Error: Unable to schedule campaign
Error: Unable to calculate totals
Error: Schedule_date_time is invalid
CLICK TO TRY ON POSTMAN