# Webhook

Webhook destination allows you to send event data to APIs that accept receiving JSON data.

POST, PATCH, GET, DELETE, and PUT are all HTTP request methods that can be used to send data. Select or modify the data that will be sent with each request, as well as the format in which it will be sent.

In the settings step, configure first the destination URL, where you want to send data.

<figure><img src="/files/FcSTgw1KWvwSeVygL9NU" alt=""><figcaption></figcaption></figure>

## Request Body (JSON)

Then, you can build the request body (JSON), you can choose to send all events, all events + specific ones or only specific events.

For specific events, you can use the key/value fields to provide data to build the JSON body. Use the [dynamic text inputs](https://doc.commandersact.com/features/destinations/advanced-mapping#text-input-settings) to set static values, dynamic values, or a combination of both.

<figure><img src="/files/gFkpGriAcroV1i23lGyH" alt=""><figcaption></figcaption></figure>

## Request Headers

You can add here headers with key/value fields.

## Additional options

You can select the request method: GET, POST, PUT, PATCH, DELETE

Define the timeout in milliseconds.

Use flatten keys: if checked, all nested objects will flatten with "*" and symbol "-" changed to "*" in keys.

Do not use dot notation: by default, you can use dot notation to create a nested request object. But in case you need to create a property that contains a dot, then you can use this option for that.

<figure><img src="/files/HBYFmr0IDwFByMTBW2Gf" alt=""><figcaption></figcaption></figure>


---

# 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://doc.commandersact.com/features/destinations/destinations-catalog/webhook.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.
