Files
langflow/docs/versioned_docs/version-1.9.0/Components/webhook.mdx
Mendon Kissling 71fbf5ff00 docs: cut version 1.9.0 (#12681)
* version-1.9.0-docs

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-14 02:07: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. |