> For the complete documentation index, see [llms.txt](https://docs.fortifiedid.se/information-endpoint/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/information-endpoint/about.md).

# About

InformationEndpoint module acts a simple http endpoint. Basic configuration is inherited by common http module properties.

When trace id is desired in information to end user, template is required. By using *${trace\_id}* in template it will expand to the session trace id.

{% hint style="info" %}
Module name: InformationEndpoint
{% endhint %}

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

<table><thead><tr><th>Name</th><th>Description</th><th data-type="checkbox">Mandatory</th><th>Default</th></tr></thead><tbody><tr><td>http_context</td><td>First part of the url exposed.</td><td>false</td><td><code>/infoendpoint</code></td></tr><tr><td>endpoint</td><td>Array of custom endpoints</td><td>true</td><td></td></tr><tr><td>endpoint.context_path</td><td>Last part of the URI exposed.</td><td>true</td><td></td></tr><tr><td>template</td><td>Name of template to use when accessing <em>http_context+endpoint.context_path</em>.</td><td>false</td><td></td></tr><tr><td>webroot_dir</td><td>Where to look for files other than template.  js, html etc.</td><td>true</td><td>web/infoendpoint</td></tr><tr><td>overlay_dir</td><td>Location for additional overlay files.</td><td>false</td><td>N/A</td></tr><tr><td></td><td></td><td>false</td><td></td></tr></tbody></table>
{% endtab %}

{% tab title="Example" %}

```json
{
    "name": "InformationEndpoint",
    "config": {
        "http_context": "/userinfo",
        "endpoint": [
            {
                "context_path": "/generic",
                "template": "generic_error.template",
                "overlay_dir": "web/overlay_test"
            }
        ]
    }
}
```

{% endtab %}
{% endtabs %}

Example config is accessible on */userinfo/generic.* This will render configured template. Files located in the webroot\_dir is accessed by name.

{% hint style="warning" %}
Sharing http\_context with other modules is mandatory for expanding shared *trace\_id.*&#x20;
{% endhint %}

{% hint style="danger" %}
Configuring identical paths as other module will render non deterministic behaviour.&#x20;
{% endhint %}
