# Web Hooks

Web hook is a way for a company app to provide Kvalifika with real-time session information. A web hook delivers data to Kvalifika as it happens, meaning the data is received immediately. *Web Hooks* page shows added web hooks and gives the possibility to add new and update/delete the existing ones:

![Settings / Web hooks](/files/-MWPzT1Rt8wndUragULX)

By clicking `CONFIGURE NEW WEBHOOK`, Master User can add a new web hook, after first selecting from the two available types:

* Callback webhook
* Serverless function web hook

![Adding a new web hook](/files/-MWQ0A9MJ9ZZa1bDz4r5)

### Callback webhook

After selecting Callback webhook, it is possible to configure it on the same pop-up window:

![Adding Callback webhook](/files/-MWQ0hnmKDu7xBHf8Cfq)

The following options should be selected:

* Web Hook
  * Post Verification
  * Post Manual Verification
* Method (see [this article](https://www.w3schools.com/tags/ref_httpmethods.asp) for more details)
  * POST
  * PUT
* Callback URL
* Active (ON/OFF)
* ACTIVATE

### Serverless function hook

If Serverless function hook is selected, it is possible to create web hook directly from the Kvalifika platform in the same pop-up window:

![Adding Serverless function hook](/files/-MWQ2-CQ-ia2BYxM-wXg)

Serverless function is written in JavaScript programming language (Python or other languages may be added later). The following information is needed for creating a new serverless function hook:

* Function name
* Web Hook
  * Which session data should be transferred:
    * Verification
    * Manual Verification
* Enabled (ON/OFF)
* Function body
* CREATE

After adding a new web hook, it will be available for further configuration on the landing page of Settings/Configuration/Web Hooks.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kvalifika.gitbook.io/kvalifika-1/initial-setup/settings/web-hooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
