How to Send Test Data to Zapier

read
Last updated at:

Overview

Learn how to send test data to Zapier via a POST request when creating a webhook to send email and SMS consent to Klaviyo.

This article builds off of the information in How to Send Consent to Klaviyo via Zapier.

Create a POST Request

Before testing your trigger, you will need to send test data to your webhook via a POST request. The steps listed below explain how to make the POST request via Postman, but you’re welcome to use any program you’d like.

First, copy the webhook URL generated by Zapier. Then, in Postman, click New to start a new request. Select HTTP Request from the Create New menu.

Postman’s Create New request menu, showing HTTP Request under the Building Blocks section

Paste the Zapier webhook URL you copied earlier into the URL box. Select POST from the dropdown to the left of the webhook URL.

Postman setup to create POST request, with POST selected from the dropdown and the Zapier webhook URL entered into URL box

Select the Body tab, choose the form-data radio button, and then enter the keys and appropriate test data from the following table:

Key Value
name <Test name>
email <Test email>
phone_number <Test phone number>
$consent sms
$consent email
sms_consent true

Postman form-data body setup for name, email, phone number, consent, and SMS consent

Enter $consent twice to test both sms and email consent in the Python setup step.

Click Send to send the test data to Zapier. If the POST request is successful, you’ll see the line "status": "success" in the response.

Postman POST request response, showing a successful response

Now you can return to Zapier and complete the webhook setup process.

Additional Resources

x
Was this article helpful?
0 out of 0 found this helpful