---
title: "List"
method: GET
path: "/api/v1/directories"
tags: ["Directory"]
---

# List

`GET /api/v1/directories`

List directories.

## Query parameters

- `page_size` integer — The pageSize field.
- `page_token` string — The pageToken field.

## Response `200`

The DirectoryServiceListResponse message contains a list of results and a nextPageToken if applicable.

- C1ApiDirectoryV1DirectoryServiceListResponse — The DirectoryServiceListResponse message contains a list of results and a nextPageToken if applicable.
  - `expanded` object[], nullable — The nextPageToken is shown for the next page if the number of results is larger than the max page size. The server returns one page of results and the nextPageToken until all results are retreived. To retrieve the next page, use the same request and append a pageToken field with the value of nextPageToken shown on the previous page.
    - `@type` string — The type of the serialized message.
  - `list` C1ApiDirectoryV1DirectoryView[], nullable — The list of results containing up to X results, where X is the page size defined in the request.
    - `appPath` string — JSONPATH expression indicating the location of the App object in the array.
    - `directory` C1ApiDirectoryV1Directory — This object indicates that an app is also a directory. This message contains a oneof named account_filter. Only a single field of the following list may be set at a time: - all - celExpression
      - `all` C1ApiDirectoryV1DirectoryAccountFilterAll, nullable — The DirectoryAccountFilterAll message.
      - `appId` string — The ID of the app associated with the directory.
      - `celExpression` C1ApiDirectoryV1DirectoryAccountFilterCel, nullable — The DirectoryAccountFilterCel message.
        - `expression` string — The expression field.
      - `createdAt` string, date-time
      - `deletedAt` string, date-time
      - `mergeConfig` C1ApiDirectoryV1DirectoryMergeConfig — DirectoryMergeConfig configures how AppUsers from this directory are matched to C1 Users.
        - `matchCases` C1ApiDirectoryV1DirectoryMergeMatchCase[], nullable — Ordered list of match cases evaluated in sequence. First match wins.
          - `appUserKeyCel` string — CEL expression evaluated against an AppUser to produce match key(s).
          - `userKeyCel` string — CEL expression evaluated against a User to produce match key(s).
      - `updatedAt` string, date-time
  - `nextPageToken` string — List of serialized related objects.

---

[API](https://skmtc.net/conductorone/apis/c1-api.md) · [All operations](https://skmtc.net/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/d391405a35d3/schema)
