Files
langflow/docs/docs/Components/webhook.mdx
Mendon Kissling 7c5668e1ca docs: rename data to JSON and dataframe to table (#12352)
* datatypes-page-and-sidebars

* release-notes

* find-and-replace-components

* notes

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>

* make-component-renaming-a-separate-item

---------

Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
2026-03-31 17:51:01 +00:00

36 lines
1.5 KiB
Plaintext

---
title: Webhook
slug: /component-webhook
---
import Icon from "@site/src/components/icon";
import PartialParams from '@site/docs/_partial-hidden-params.mdx';
The **Webhook** component defines a webhook trigger that runs a flow when it receives an HTTP POST request.
## Trigger the webhook
When you add a **Webhook** component to your flow, a **Webhook curl** tab is added to the flow's [**API Access** pane](/concepts-publish#api-access).
This tab automatically generates an HTTP POST request code snippet that you can use to trigger your flow through the **Webhook** component.
For example:
```bash
curl -X POST \
"http://$LANGFLOW_SERVER_ADDRESS/api/v1/webhook/$FLOW_ID" \
-H 'Content-Type: application/json' \
-H 'x-api-key: $LANGFLOW_API_KEY' \
-d '{"any": "data"}'
```
For more information, see [Trigger flows with webhooks](/webhook).
## Webhook parameters
| Name | Display Name | Description |
|------|--------------|-------------|
| data | Payload | Input parameter. Receives a payload from external systems through HTTP POST requests. |
| curl | curl | Input parameter. The curl command template for making requests to this webhook. |
| endpoint | Endpoint | Input parameter. The endpoint URL where this webhook receives requests. |
| output_data | JSON | Output parameter. The processed data from the webhook input. Returns an empty [`JSON`](/data-types#json) object if no input is provided. If the input isn't valid JSON, the **Webhook** component wraps it in a `payload` object so that it can be accepted as input to trigger the flow. |