# Webhook

With webhooks, you can integrate external messaging service APIs to create cross-channel messages or connect with your own servers for tasks like issuing coupons.

While some development knowledge is required, webhooks are popular among our clients because they allow you to continue using your existing messaging provider while offering flexibility in the server integration process.

## Creating Webhooks

<figure><img src="/files/nZFSBzPV38bgENxjLJW9" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

In the FlareLane console, you can create webhooks by navigating to the **Channels > Webhooks** page, where you can configure the endpoint, headers, and body parameters for external HTTP requests.

Each field allows you to use **hyper-personalized message** syntax to input **user tags or data values for dynamic parameter configuration**.

***

## Examples

Using the phone number tag to send messages via another provider's API:

```javascript
{
  "body": "{{ text }}", // text Enter the variable manually
  "sendNo": "15446859",
  "recipientList": [
    {
      "recipientNo": "{{ tags.phone_number }}", // Automatically inserted if the phone number tag is present
      "countryCode": "82"
    }
  ]
}
```

Using the user ID to directly use your own API:

```javascript
{
  "userId": "{{ userId }}", // Automatically inserted if the use ID is present
  "text": "{{ text }}" // text Enter the variable manually
}
```

***

## Adding Webhooks to a Journey

<figure><img src="/files/RiBqUZ4fRuiCJ9lXmIb3" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

You can configure the created webhook within a customer journey webhook action.

If there are data fields available for input within the webhook, additional data fields will be set up for further input.

***

## Sending Test Messages

<figure><img src="/files/UR2GM8iF0Cw59EiglXMk" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Based on the webhook created, you can also send test messages targeting specific users. If you’re using data variables from **hyper-personalized message** syntax, an **input field will open where you can enter the relevant data**.

***

## Viewing Sent Messages

<figure><img src="/files/1I7socrCODqNuWgiYhjP" alt=""><figcaption><p><em>Image by FlareLane</em></p></figcaption></figure>

Webhook history is divided into successful and failed attempts. As shown in the image above, the request and response details at the time of sending the test messages are recorded for your review.


---

# 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://guide.flarelane.com/channels/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.
