---
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.
      - `appId` string — The ID of the app associated with the directory.
      - `createdAt` string, date-time
      - `deletedAt` string, date-time
      - `updatedAt` string, date-time
  - `nextPageToken` string — List of serialized related objects.

## Changes

- **2025-04-10** `17f9f3bcedd5` — 6 info
  - added the new optional `query` request parameter `page_size`
  - added the new optional `query` request parameter `page_token`
  - the response optional property `list/items/directory/appId` became read-only for the status `200`
  - the response optional property `list/items/directory/createdAt` became read-only for the status `200`
  - …2 more

[Change history](https://skmtc.dev/conductorone/apis/c1-api/changes/api/v1/directories/get.md)

---

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