> For the complete documentation index, see [llms.txt](https://api-docs.intratool.help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-docs.intratool.help/api-reference/layouts/layout-elements.md). Agents can also search and read this documentation through its [MCP server](https://api-docs.intratool.help/~gitbook/mcp).

# LayoutElements

## Introduction

`LayoutElements` resolve typed content within [Layouts](https://api-docs.intratool.help/api-reference/layouts/layouts.md). Results are [ContentElements](https://api-docs.intratool.help/api-reference/layouts/content-elements.md) or [FormFields](https://api-docs.intratool.help/api-reference/forms/form-fields.md), rather than assignment records from [LayoutColumnLayoutElements](https://api-docs.intratool.help/api-reference/layouts/layout-column-layout-elements.md).

Layout structure, resource assignments, and content placement are described under [Layouts](https://api-docs.intratool.help/introduction/layouts.md).

## Model Definition

**Element Types**

* `contentElement` - ContentElements such as text or field-result blocks.
* `formField` - FormFields attached to layout columns.

## List by Layout and Type

List visible elements of one type within one layout.

**Definition**

<mark style="color:green;">`GET`</mark> `/api/layouts/{layout}/elements/{layoutElementType}`

**Route Parameters**

| Parameter           | Type      | Description                     |
| ------------------- | --------- | ------------------------------- |
| `layout`            | `integer` | Layout ID.                      |
| `layoutElementType` | `string`  | [Element type](#element-types). |

**Behavior**

* The results can be further restricted using [Result Control filters](https://api-docs.intratool.help/introduction/query-manipulation/result-control.md#filters).
* The response shape follows the selected element type. Unknown or unsupported type aliases return HTTP 404.
* Only authorized elements are returned. Access to the containing layout does not grant access to every element.

**Example Request**

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

```php
$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/layouts/1/elements/contentElement', [
    'headers' => [
        'Authorization' => "Bearer {accessToken}"
    ]
]);
```

{% endtab %}
{% endtabs %}

**Example Response**

```json
[
  {
    "id": 1,
    "user_id": 3,
    "lang_id": "en-US",
    "type": "text",
    "title": "Instructions",
    "description": null,
    "config": {
      "text": "<p>Please complete the fields below.</p>"
    }
  },
  {
    "id": 2,
    "user_id": 3,
    "lang_id": "en-US",
    "type": "text",
    "title": "Additional instructions",
    "description": null,
    "config": {
      "text": "<p>Use your work email address.</p>"
    }
  }
]
```

## Admin: List by Layout and Type

List visible elements of one type within one layout.

**Definition**

<mark style="color:green;">`GET`</mark> `/api/administration/layouts/{layout}/elements/{layoutElementType}`

**Route Parameters**

| Parameter           | Type      | Description                     |
| ------------------- | --------- | ------------------------------- |
| `layout`            | `integer` | Layout ID.                      |
| `layoutElementType` | `string`  | [Element type](#element-types). |

**Behavior**

* The results can be further restricted using [Result Control filters](https://api-docs.intratool.help/introduction/query-manipulation/result-control.md#filters).
* The response shape follows the selected element type. Unknown or unsupported type aliases return HTTP 404.
* Only authorized elements are returned. Access to the containing layout does not grant access to every element.

**Example Request**

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

```php
$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('GET', '/api/administration/layouts/1/elements/contentElement', [
    'headers' => [
        'Authorization' => "Bearer {accessToken}"
    ]
]);
```

{% endtab %}
{% endtabs %}

**Example Response**

```json
[
  {
    "id": 1,
    "user_id": 3,
    "lang_id": "en-US",
    "type": "text",
    "title": "Instructions",
    "description": null,
    "config": {
      "text": "<p>Please complete the fields below.</p>"
    }
  },
  {
    "id": 2,
    "user_id": 3,
    "lang_id": "en-US",
    "type": "text",
    "title": "Additional instructions",
    "description": null,
    "config": {
      "text": "<p>Use your work email address.</p>"
    }
  }
]
```
