How to send test data to Zapier

Estimated 2 minute read
|
Updated Aug 29, 2024, 7:04 PM EST
You will learn

You will learn

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

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.

  1. Copy the webhook URL generated by Zapier.
  2. In Postman, click New to start a new request.
  3. Select HTTP Request from the Create New menu.
    Postman’s Create New request menu, showing HTTP Request under the Building Blocks section
  4. Paste the Zapier webhook URL you copied earlier into the URL box.
  5. 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
  6. Select the Body tab, choose the form-data radio button, and then enter the keys and appropriate test data from the following table. Make sure to format phone numbers correctly. You'll need to use a real phone number when testing your webhook in order for the profile to be added to your list. 
    KeyValue
    name<Test name>
    email<Test email>
    phone_number<Test phone number>
    sms_consenttrue
    Postman form-data body setup for name, email, phone number, and SMS consent
  7. Click Send to send the test data to Zapier.
  8. 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

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type