# List document category mappings

`GET /lokta-lms/api/v1/documentcategories`

Example Requests:

- documentcategories
- documentcategories?entityType=loans

Reports mappings whose code value has since been deactivated as well; an administrator has to be able to see
the mapping that stopped working. An unknown entityType is a 400 here, unlike on the entity-scoped template
read, because a typo on a configuration screen should be reported rather than answered with an empty list.

## Parameters
- `entityType` (query, string)

## Responses
- `default`: default response

## Response fields
- `active` (boolean)
- `documentCategory` (DocumentClassificationValueData)
- `documentTags` (array of DocumentClassificationValueData)
- `entityType` (string)
- `id` (integer)
- `orderPosition` (integer)

## Example request (cURL)
```bash
curl -X GET \
  'https://default.lokta.tech/lokta-lms/api/v1/documentcategories' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default'
```

## Example response
```json
[
  {
    "active": true,
    "documentCategory": {},
    "documentTags": [],
    "entityType": "string"
  }
]
```

Interactive: https://developer.lokta.ai/reference#operation/retrieveAll_1
