How to create a webhook

Modified on Tue, 11 Feb at 12:11 PM

To create a Webhook on the KOMPaaS website, go to the ‘Integrations’ section → ‘Webhooks’ tab, and click the ‘New Web Hook’ button.

In the modal window that opens, select the Webhook event type and click ‘Create’.

 

Configure the Webhook Settings:

  1. Title — the name of the Webhook;

  2. URL — the address where the Webhook request will be sent;

  3. Retry if error — enabled by default. It is recommended to keep this option enabled.

  4. Choose a method — request types: GET or POST:

    • GET — retrieves data from a specified resource (website);
    • POST — sends data to the server for further processing.
  5. Select the data type — choose between JSON or Text:

    • JSON — structured data in JSON format;

    • Text — freeform text that can be customized as needed in any format or structure. 

  6. Available parameters — event-specific parameters. You can add them to any Webhook settings by clicking on them. 

  7. User parameters — additional parameters that will be added to the JSON structure along with the selected blue check marked variables above.

  8. Query parametersURL Query Parameters provide additional information that can be added to the URL. These consist of a parameter and its value, separated by an equals sign (=).

    • Example: https://site.com/?first_param=first_value&second_param=second_value
  9. Headers (HTTP Headers) — lines of text in a specific format that either clarify the request or describe the message body content. 

  10. After completing the settings, click ‘Save’.


More details on request types:

‘Webhooks’

‘WebHook Event Types’

‘GET request’

‘POST request’

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article