> For the complete documentation index, see [llms.txt](https://docs.fortifiedid.se/pipes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fortifiedid.se/pipes/valves/flow/pipe-include.md).

# Pipe Include

## Introduction

Valve for including a subpipe in the current execution context. The subpipe's valves are executed as if they were part of the calling pipe, sharing the same request, session, state, and items.

See [Subpipes](/pipes/subpipes.md) for how to define subpipes in the module configuration.

## Configuration

{% hint style="info" %}
**Valve name:** `PipeInclude`
{% endhint %}

{% tabs %}
{% tab title="Properties" %}

<table><thead><tr><th>Name</th><th>Description</th><th>Default value</th><th data-type="checkbox">Mandatory</th><th data-type="checkbox">Expanded</th></tr></thead><tbody><tr><td><code>subpipe</code></td><td>Id of the subpipe to include.</td><td></td><td>true</td><td>false</td></tr></tbody></table>
{% endtab %}

{% tab title="Example" %}

```json
{
  "name" : "PipeInclude",
  "config" : {
    "subpipe" : "shared-auth"
  }
}
```

{% endtab %}
{% endtabs %}
