> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/tasktypes/_list.md).

# \_list

Fetches all the different types of Tasks.

### Parameters

None.

### Example

```
FM_api('TaskTypes_list');
```

### Results

#### On Success

A list of the types of Tasks and their IDs. For example: {\['id':'1','name':'Email'],\['id':'2','name':'Case'],\['id':'3','name':'Phone Call']}

#### On Failure

If the User is not logged in: {'error':'not logged in'}
