# List the workspace's document types

Every document type a file, a document request, a record's checklist standing, a checklist rule, a result mapping or a message template may name: builtIn, the app's own words each with its label (bank_statement as Bank statement, …), and custom, the workspace's own processor-v2 types each as {word, name} (word is custom_<slug>, the value to send). customAvailable is false, with note saying why, when this deployment has no processor-v2 — then only the built-ins exist. A custom word not in this list is refused 422 document_type_unknown by every write. Any seat.

Access class: `workspace`.

## Endpoint

`GET /v1/workspace/document-types`

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "builtIn": [
      {
        "label": "string",
        "word": "string"
      }
    ],
    "custom": [
      "string"
    ],
    "customAvailable": true,
    "note": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
