# Respond

> Part of the NocoDB documentation (Workflows > Workflows > Nodes > Flow). Index of all pages: https://nocodb.com/llms.txt. Any docs page is available as Markdown by adding `.md` to its URL.

URL: https://nocodb.com/docs/workflows/nodes/flow-nodes/respond-to-webhook
Last updated: 2026-12-02

Use the Respond node to send a status code, body and headers back to the caller of a NocoDB workflow webhook, or to a workflow that called this one.

The **Respond** node sends the reply to whoever started the workflow: a webhook caller that waits for an answer, or a workflow that ran this one with a [Run workflow](/docs/workflows/nodes/action-nodes/run-workflow) step. Use it when the caller needs an answer from the workflow, for example a form that waits for a validation result, or a service that expects the record id that NocoDB created.

<AskNocoAI>
  <Prompt>
    When a webhook arrives, create a [lead] and reply with its [record id]
  </Prompt>

  <Prompt>
    Reply [400] to the webhook when the payload has no [email]
  </Prompt>

  <Prompt>
    Check the [order number] from a webhook and reply with the [Status]
  </Prompt>
</AskNocoAI>

## Hold the request open

A webhook caller waits only when the trigger asks it to:

1. Open the **When webhook received** trigger.
2. Turn on **Wait for response**.
3. Optional: set **Response timeout (seconds)**, from `1` to `20`. The default is `10`.

<img alt="Wait for response turned on in the When webhook received trigger" src={__img0} placeholder="blur" />

Add the Respond node anywhere after the trigger. A workflow that starts from the [When called by another workflow](/docs/workflows/nodes/trigger-nodes/workflow-called) trigger needs no such setting: its caller always reads the reply. With any other trigger, the Respond node shows a warning and sends nothing.

## Configuration

<img alt="Respond node with a 201 status, a JSON body and two headers" src={__img1} placeholder="blur" />

* **Status code**: the HTTP status of the reply. The list holds `200`, `201`, `202`, `204`, `400`, `401`, `403`, `404`, `405`, `409`, `422`, `429`, `500` and `503`.
* **Body type**: `JSON`, `Text` or `Empty`. A `204` reply never carries a body.
* **Body**: the reply body, up to 1 MB. It can use the variables of the earlier steps. A JSON body must be valid JSON.
* **Headers**: extra response headers. They reach webhook callers only. A calling workflow reads the status code and the body.

A body or a header that holds a [sensitive base variable](/docs/workflows/create-workflow#use-base-variables) fails the step, so a secret never reaches the caller.

### Headers you can set

NocoDB sets the content type itself and accepts these headers:

| Header                                                                 | Note                                                                                                 |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `Cache-Control`                                                        | Only `no-store`, `no-cache`, `private` and `must-revalidate`.                                        |
| `Location`, `Retry-After`, `ETag`, `Last-Modified`, `Content-Language` |                                                                                                      |
| Your own `X-` headers                                                  | Not `X-Accel-*`, `X-Sendfile`, `X-Forwarded-*` or the other headers that a proxy or the server owns. |

The node flags a header outside this list before the run. If one still reaches a run, it is dropped, and the step logs which one.

## What the caller gets

The first Respond step that succeeds sends the reply. A later Respond step in the same run is marked ignored and changes nothing.

A workflow that called this one reads that reply as the `body` and `statusCode` of its [Run workflow](/docs/workflows/nodes/action-nodes/run-workflow) step, with `returned` set to true. When no Respond step runs, the step reports the run as completed with `returned` false and an empty body.

For a waiting webhook caller, when no Respond step runs, NocoDB answers by itself as soon as the run ends:

| Run                                                                       | Reply                                                                                     |
| ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| Finished                                                                  | `200` with `{ "success": true, "executionId": "..." }`                                    |
| Still running when the timeout passes, or paused at a Delay or Wait Until | `202` with `{ "success": true, "executionId": "..." }`                                    |
| Failed or cancelled                                                       | `500` with `{ "success": false, "executionId": "...", "message": "The workflow failed" }` |

A timeout stops the waiting, not the run: the workflow carries on in the background.

## Output

| Output       | Content                       |
| ------------ | ----------------------------- |
| `statusCode` | The status code that was sent |
| `body`       | The body that was sent        |

## Use cases

* Answer a form or a service with the record that the workflow created
* Validate a payload and reply `400` when it is wrong
* Send `Location` with the link to a new record
* Return a calculated value to the workflow that called this one

## Availability

* To reply to an HTTP caller, the node needs the [When webhook received](/docs/workflows/nodes/trigger-nodes/webhook) trigger, which is available on NocoDB Cloud (Plus plan and above) and on licensed on-premise deployments.
* To return a result to a calling workflow, the node needs the [When called by another workflow](/docs/workflows/nodes/trigger-nodes/workflow-called) trigger. The calling [Run workflow](/docs/workflows/nodes/action-nodes/run-workflow) node is available on NocoDB Cloud (Plus plan and above) and on licensed on-premise deployments.

---

## Related pages

- [If-Else](https://nocodb.com/docs/workflows/nodes/flow-nodes/if-else.md): Use the If-else node to create conditional branches in your NocoDB workflows.
- [Iterate](https://nocodb.com/docs/workflows/nodes/flow-nodes/iterate.md): Use the Iterate node in NocoDB workflows to process each item in a list one at a time.
- [Delay](https://nocodb.com/docs/workflows/nodes/flow-nodes/delay.md): Use the Delay node to pause NocoDB workflow execution for a specific duration.
- [Wait Until](https://nocodb.com/docs/workflows/nodes/flow-nodes/wait-until.md): Use the Wait Until node to pause a NocoDB workflow until a specific date and time.
