Connect with Xendy via Zapier

Introduction

Zapier is a useful tool for connecting apps. By integrating Zapier with Xendy, you can automatically add new contacts to your email list. Think of leads from Google Forms, Shopify, or another system. This eliminates manual data entry and allows you to immediately start using newsletters or automations.

Create a webhook URL in Xendy

Here’s how to create a webhook URL in Xendy:

  1. Log in to Xendy and choose ‘All contacts’ in the left menu, then click again on ‘All contacts’ in the top right. Choose ‘Create new segment’. Select ‘Static’. Enter a name for the segment and click ‘Create segment’ to create it.
  2. Now click ‘Add contacts’ in the top right and choose ‘Via a webhook’. A pop-up will appear with a URL and an Authorization: Bearer token.

Set up Zapier

Here’s how to create a Zapier account and prepare the integration with Xendy:

  1. Go to zapier.com and create an account.
  2. Choose a paid plan if you want to use webhooks (required for Xendy).
  3. Log in and click on ‘Create Zap’.

Create a Zap

  1. Set trigger: choose the app from which your data will be pulled, such as Google Forms or Shopify. Select the event that starts the Zap (e.g. new submission or new order). Test the connection so Zapier can pull sample data.
  2. Set action: choose ‘Webhooks by Zapier’ as the action app. Select POST as the method. Paste the webhook URL you created in Xendy. Set the type to JSON. Add headers: under ‘Custom Request Headers’, add a line with the token corresponding to the webhook URL, i.e. ‘Authorization: Bearer abc123’ (including the full code).
  3. Map fields: link the fields from your app to Xendy. Email is required; first name (field name: first_name) and last name (field name: last_name) are optional.
  4. Test: send test data from Zapier and check in Xendy whether the data appears in the correct segment. To do this, log in to Xendy and go to ‘All contacts’ in the left menu, then click again on ‘All contacts’ in the top right. Choose the segment you created.
  5. Activate Zap: if the test works correctly, click ‘Turn on Zap’. New submissions will now automatically be added to Xendy.

Add extra fields

The email field is always required. If you also want to send a first name, this field must be named first_name. For a last name, use the name last_name. You may choose any name for other fields. These are automatically added in Xendy and can then be used in segments or personalization.

Frequently Asked Questions

If the email field is missing from your JSON payload, the webhook request will fail and no contact will be added to Xendy. Always ensure that the email field is included and correctly mapped.