How do I use webhooks with Postmatic 2.0?

You can send Postmatic subscribers to 500+ other applications and services using Webhooks and Zapier. Things like Mailchimp, Google Sheets, Infusionsoft, Salesforce and Drip.

Our  Zapier integration uses Webhooks to send subscribe and unsubscribe notifications to the application of your choice. Here are some ideas:

When someone subscribes to your site you could…

  • Add them to a Drip campaign
  • Shoot yourself email or SMS alert
  • Shoot them a personalized email welcoming them to your site
  • Add them to a Google Sheet
  • Add them to Salesforce
  • Add them to Infusionsoft
  • Alert your team in Slack
  • Send them an invite to your event via Eventbrite
  • Make your lights flash on and off in a dazzling show of victory

When someone unsubscribes from your site you could…

  • Send them an email begging forgiveness
  • Remove them from your Mailchimp list as well
  • Remove their customer record in Stripe
  • Add them to Salesforce as someone to follow up with later
  • Publicly shame them on Twitter (not recommended but devilishly fun)

The Webhook includes name, email address, list (more on that later), and if it was a subscribe or unsubscribe. Keep in mind the Webhook is just one-way: out. You can only push subscribers from Postmatic to other services. Pulling in would make it way too easy to violate our spam policies.

Here's how to do it

  1. Go to Settings > Postmatic.
  2. On the Choose Modules tab, scroll down to the Analyze & Monetize section. Check off the box next to Enable Webhooks. You'll see Webhooks appear on the left hand menu. Go there.
  3. Visit your Zapier dashboard and create a new zap. If you don't have a Zapier account you can create one for free.
  4. For your trigger application choose Webhooks by Zapier
  5. Be sure to say that you want to catch a hook:
  6. Next you'll be asked if you'd like to pick off a child key. If you want to get fancy here you could, but 99% of the time you can just leave it blank:
  7. Zapier will give you a url (a Webhook) to use for your zap. This is good. Copy it to your clipboard.
  8. Head back to Postmatic settings in WordPress and paste the url into either the subscribe or unsubscribe url box, depending on what you want this zap to do (to perform an action when someone subscribes, or when someone unsubscribes....)
  9. Click Save Changes in Postmatic
  10. Return to Zapier and click to continue. It will tell you to go to your site and create a brand new hook. What it is asking you to do is to trigger the webhook. You can do this by logging out of your site and adding yourself as a brand new subscriber. Soon we'll have a test button built into Postmatic to let you skip that step. Alternatively, you can just wait for Zapier to time out, and choose to skip the test. It takes about a minute.
  11. Next, choose what you want Zapier to do when the zap is triggered. That's up to you. You can find examples at the top of this document.

Still need help? Contact Us Contact Us