> For the complete documentation index, see [llms.txt](https://docs.api.intratool.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.api.intratool.de/api-reference/tasks-2/task-field-types.md).

# TaskFieldTypes

## Introduction

`TaskFieldTypes` describe how [TaskFields](/api-reference/tasks-2/task-fields.md) are rendered and which `config` is valid.

## List

**Definition**

<mark style="color:green;">`GET`</mark> `/api/tasks-2/field-types`

**Request Keys**

No additional request keys.

**Example Request**

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

**Example Response**

```json
[
  {
    "id": "text",
    "icon_id": 72,
    "default_config": {},
    "unique": false,
    "relevant": true,
    "sort_number": 1
  }
]
```

## Show

**Definition**

<mark style="color:green;">`GET`</mark> `/api/tasks-2/field-types/{formFieldType}`

**Request Keys**

| Key             | Type   | Default | Description                   |
| --------------- | ------ | ------- | ----------------------------- |
| `formFieldType` | string | -       | Type ID (for example `text`). |

**Example Request**

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

**Example Response**

```json
{
  "id": "text",
  "icon_id": 72,
  "default_config": {},
  "unique": false,
  "relevant": true,
  "sort_number": 1
}
```

## Allowed type keys

* `text`
* `boolean`
* `rich-text`
* `checkbox`
* `radio`
* `select`
* `datetime`
* `file-upload`
* `entity-select`
* `entities-select`
* `recipient-select`
* `description`
* `privacy-policy`
* `signature`
