Webhook integration

Last updated: May 11, 2021 Written by: Avatar Marta Szeliga
share
Table of contents
share
Table of contents

With the Webhook integration, you can send data from the form using both the POST and GET methods – you can choose the method that suits you best.

Set up the Webhook integration

1. Log in to your Landingi account and go to the edition of your landing page.

2. Navigate to the form Settings.

form settings landingi

3. In the Integrations tab, choose Webhook.

webhook landingi integration

4. In the Request URL field, enter the URL to which the form data will be sent.

webhook request url

5. In the Request method field, select the way you want to send data from the form: you can choose the GET or POST method.

webhook request method

6. Connect the Landingi form fields with the fields on your server.

map form fields landingi webhook

7. In the Request headers fields, set the request headers that will be sent each time the form is sent. Remember that each heading consists of two parts: key and value, e.g., API_KEY: 1234-abcd-5678, where the first field concerns key and the second value. To add headers, click +.

request headers webhook

8. In the Request parameters fields, you can set additional parameters that will be sent together with the form. Similar to headers, it consists of two parts: key and value, which should be completed. For example, if we have a form with an email field and we set one parameter source:landingi, then each time someone sends this form, the query will send data to the API:

email: name@test.com (or what the user enters in the form)
source: Landingi

request parameters webhook

To add parameters, click +. The request parameters perform almost the same function as the hidden fields in the form, but their advantage is that they are invisible from the page code.

9. Save and close.

Publish your landing page and check if the integration works correctly.

share

Was this manual helpful?