> ## Documentation Index
> Fetch the complete documentation index at: https://api.aodocs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List classes (to find target classes for your documents)

> You can list available target classes for your documents as follows:

### Method and API

Play with the API Explorer:

### [PUT /documentType/v1/libraries/\{libraryId}](/api-reference/document-type)

### Guidelines

### Request

Only `libraryId` is mandatory.

#### Sample request

<RequestExample>
  ```yaml Sample request theme={null}
  GET https://aodocs.altirnao.com/api/documentType/v1/libraries/RrVcEFb8wtDeNAnlmNN
  ```
</RequestExample>

To return just the bare minimum of class ID and displayName in the response, you can filter the results by populating the `fields` query parameter with `items(displayName,id,kind),kind` with `%2C` in place of each comma as follows:

```yaml theme={null}
?fields=items(displayName%2Cid%2Ckind)%2Ckind
```

## Responses

The response returns an [ApiDocumentTypeList](/api-reference/document-type) resource, listing all document classes available as part of the specified library.

**Response fields of note:**

* `id` (of the class)
* `displayName`(of the class)
* `libraryId` (of the library we searched)
* `defaultClass` (whether or not this is the library's default class)
* any other fields of interest

<ResponseExample>
  ```json Samplefull response theme={null}
  {
    "kind": "aodocs#classList",
    "items": [
      {
        "kind": "aodocs#classId",
        "id": "RnTbOft44KfZYkfBpV",
        "displayName": "my-dms-class-001-default",
        "libraryId": "RnTG8PDu8ZqTuDVHcv",
        "defaultClass": true,
      },
      {
        "kind": "aodocs#classId",
        "id": "RnTf1mx35gaTJLzoFp",
        "displayName": "my-dms-class-002-not-default",
        "libraryId": "RnTG8PDu8ZqTuDVHcv",
        "defaultClass": false,
      }
    ]
  }
  ```

  ```json Sample filtered response theme={null}
  {
    "kind": "aodocs#classList",
    "items": [
      {
        "kind": "aodocs#classId",
        "id": "Rmk8LOJ1y0Jlwq8cxz",
        "displayName": "testClassInsideDMS"
      },
      {
        "kind": "aodocs#classId",
        "id": "Rmn9gYNz9JwCVfQaIK",
        "displayName": "testClass2insideDMS"
      }
    ]
  }
  ```
</ResponseExample>

## List classes in the UI

You can also list your library classes in the UI, on the Library Administration page.

Go to Administration > Library administration. In the left-hand pane, go to Library configuration > Document classes. This is where your classes are listed. Note the singular green checkmark signifying the library’s default class.

<Frame>
  <img src="https://mintcdn.com/aodocs/kJFBiERnMnnphjlG/images/list-classes-in-ui.png?fit=max&auto=format&n=kJFBiERnMnnphjlG&q=85&s=bd4013d910414653a5782b467438fc2c" alt="list-classes-in-ui.png" width="1278" height="599" data-path="images/list-classes-in-ui.png" />
</Frame>
