LogoLogo
API DocsMy Dashboard
Integrations
Integrations
  • Poplar App for Shopify
    • Batch Mailings on Shopify
  • Poplar App for Klaviyo
    • External One Time Sends
  • Salesforce Marketing Cloud
    • Data Extension Setup
  • SUPPORTED PLATFORMS
    • Klaviyo
    • Iterable
    • Customer.io
    • Emarsys
    • Simon Data
    • Segment
    • Optimizely
    • Cordial
    • Sailthru
    • Braze
    • Marketo
    • Hightouch
  • Zapier
    • HubSpot
    • ActiveCampaign
    • Drip.io
    • Mailchimp
    • ReCharge
    • ConvertKit
    • BigCommerce
    • WooCommerce
    • Zoho
  • TROUBLESHOOTING
    • Status Errors
Powered by GitBook
On this page
  • Email Append:
  • Mailing Address:
Export as PDF
  1. SUPPORTED PLATFORMS

Sailthru

PreviousCordialNextBraze

Last updated 1 month ago

Sailthru

We've provided the Poplar-specific webhook directions below. is also available.


Create a new or select an existing Lifecycle Optimizer Flow under the Messaging tab in Sailthru.

Add an Action step to the flow.3Select Send Webhook in the dropdown.

Add our URL: https://api.heypoplar.com/v1/mailing/

Set the method to POST.

Set the content type to Other.

Add your formatted payload - this will change depending on the data structure of your Sailthru configuration, and what you want to pass into Poplar.

Email Append:

  1. Select Send Webhook in the dropdown.

  2. Add our URL: https://api.heypoplar.com/v1/mailing/

  3. Set the method to POST.

  4. Set the content type to Other.

  5. Add your formatted payload - this will change depending on the data structure of your Sailthru configuration, and what you want to pass into Poplar.

Email Append

campaign_id=XXXXX&creative_id=XXXXX&recipient[email]={email}

Mailing Address:

campaign_id=XXXXX&creative_id=XXXXX&recipient[full_name]={profile.vars.full_name}&recipient[address_1]={profile.vars.address_1}&recipient[address_2]={profile.vars.address_2}&recipient[city]={profile.vars.city}&recipient[state]={profile.vars.state}&recipient[postal_code]={profile.vars.postal_code}

"Profile" Object Syntax

When formatting your Mailing Address payload, use & to separate parameters. Be careful not to include any breaks or spaces because they will prevent the data from passing to Poplar in the right format. Nested parameters live inside square brackets [...] and continue to nest within those brackets. For example, payload campaign_id=XXXXX&recipient[full_name]=Poplar&recipient[postal_code]=10004 would appear:

{
    "campaign_id":"XXXXX",
    "recipient": {
        "full_name":"Poplar",
        "postal_code:"10004"
    }
}
  • - Use profile.{insert-field-name} to pull from Sailthru's core data. - Use profile.vars.{your-custom-variable-name} to pull any custom variables you created that were not originally fields specified by Sailthru. - Note: The customer email is an exception to the above. It is specifically referenced as {email}.

key

value

campaign_id

Copy from the right side of the Campaign > Overview

creative_id

(optional) Copy from the individual creative page under Campaign > Creative

full_name

(optional) You can also replace with a fixed string like Current Resident for use on the address block

first_name

When using first & last name instead of full name in your webhook you must use BOTH or it will error out

last_name

address_1

address_2

city

state

postal_code

You can also add merge tags with your own variable data at the end. When using first & last name options instead of full name you need to include both or it will error.


You can also add merge tags with your own variable data at the end.

  1. Add a HTTP Header and configure an Authorization key and set the *Bearer Your API Key* (make sure to also replace the asterisks*)

We strongly recommend you use a Test API Key to start. Once your workflow is set up successfully and running in test mode, go back into the webhook and swap it out for a Production API Key to begin mailing.

  1. Underneath Headers, you must also specify your Content-Type to be text/plain.

  2. Test your webhook by sending a test through the flow, and then checking the History Tab of the campaign in Poplar to confirm that the data looks as you intended.

  3. We recommend leaving the webhook live with your test key for a period of time to get a sense of your volume. Once it looks like it's working well, go back in and replace the API Key with a Production Key to begin mailing.

Add a HTTP Header and configure an Authorization key and set the *Bearer Your API Key* (make sure to also replace the asterisks*)

We strongly recommend you use a Test API Key to start. Once your workflow is set up successfully and running in test mode, go back into the webhook and swap it out for a Production API Key to begin mailing.

Underneath Headers, you must also specify your Content-Type to be text/plain.

Test your webhook by sending a test through the flow, and then checking the History Tab of the campaign in Poplar to confirm that the data looks as you intended.

We recommend leaving the webhook live with your test key for a period of time to get a sense of your volume. Once it looks like it's working well, go back in and replace the API Key with a Production Key to begin mailing.

Need help? Reach out at support@heypoplar.com for assistance.

When pulling data, it is important to know when to use profile. vs profile.vars. Sailthru's model is a useful reference.

See the for complete details.

Profile Object
Sailthru Profile Object
Sailthru's documentation