> ## Documentation Index
> Fetch the complete documentation index at: https://visaflo.ca/knowledge-base/llms.txt
> Use this file to discover all available pages before exploring further.

# List case types

> List the firm's own case types an API key can open a case with.

`GET https://api.vflo.app/api/public/case-type/list`

A firm sets up its own case types in **Settings** > **Templates** > **Case types**: a built-in case type with the firm's questions, document checklist and description (for example "ICT work permit" on top of the work permit). This endpoint lists them, so your system can map each of its services to one.

```bash theme={null}
curl "https://api.vflo.app/api/public/case-type/list" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json theme={null}
{
  "success": true,
  "data": [
    { "caseTypeTemplateId": "VFLO_CASE_TYPE_ID", "name": "ICT work permit", "type": "work" }
  ]
}
```

Each item has the `caseTypeTemplateId` to send to [Create a case](https://visaflo.ca/knowledge-base/developers/endpoints/create-case.md), the `name` staff see, and `type`, the built-in case type a case of it has. The list is ordered by name. The ids don't change when a case type is renamed, so store the id, not the name.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.