---
title: "List Directories"
method: GET
path: "/api/v1/beta/directories"
tags: ["Beta", "Directories"]
---

# List Directories

`GET /api/v1/beta/directories`

## Query parameters

- `project_id` string, uuid, nullable
- `organization_id` string, uuid, nullable
- `name` string, nullable
- `type` 'user' | 'index' | 'ephemeral', nullable
- `include_deleted` boolean
- `page_size` integer, nullable
- `page_token` string, nullable

## Cookies

- `session` string, nullable

## Response `200`

Successful Response

- DirectoryQueryResponse — API query response schema for directories.
  - `items` DirectoryResponse[], required — The list of items.
    - `id` string, required — Unique identifier for the directory.
    - `created_at` string, date-time, nullable — Creation datetime
    - `updated_at` string, date-time, nullable — Update datetime
    - `project_id` string, required — Project the directory belongs to.
    - `name` string, required — Human-readable name for the directory.
    - `description` string, nullable — Optional description shown to users.
    - `type` 'user' | 'index' | 'ephemeral' | 'system_ephemeral', nullable — Directory type: 'user', 'index', 'ephemeral', or 'system_ephemeral'.
    - `expires_at` string, date-time, nullable — When this directory expires and is eligible for cleanup.
    - `system_metadata` object, nullable — Reserved system-managed metadata.
    - `deleted_at` string, date-time, nullable — Optional timestamp of when the directory was deleted. Null if not deleted.
  - `next_page_token` string, nullable — A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
  - `total_size` integer, nullable — The total number of items available. This is only populated when specifically requested. The value may be an estimate and can be used for display purposes only.

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-09** `b17341164de9` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-05-27** `1c29e1491a38` — 4 info
  - added the enum value `ephemeral` to the property `anyOf[subschema #1]/` of the `query` request parameter `type`
  - added the optional property `items/items/expires_at` to the response with the `200` status
  - added the optional property `items/items/system_metadata` to the response with the `200` status
  - added the optional property `items/items/type` to the response with the `200` status
- **2026-05-23** `34da5826db1c` — 2 warning
  - deleted the `query` request parameter `data_source_id`
  - removed the optional property `items/items/data_source_id` from the response with the `200` status
- **2026-05-21** `fb63fb8d662c` — 2 info
  - added the new optional `query` request parameter `data_source_id`
  - added the optional property `items/items/data_source_id` to the response with the `200` status
- **2026-05-16** `c317ed7c691a` — 2 warning
  - deleted the `query` request parameter `data_source_id`
  - removed the optional property `items/items/data_source_id` from the response with the `200` status

[Full history](https://skmtc.dev/run-llama/apis/llama-platform/changes/api/v1/beta/directories/get.md)

---

[API](https://skmtc.dev/run-llama/apis/llama-platform.md) · [All operations](https://skmtc.dev/run-llama/apis/llama-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/run-llama/llama-platform/revisions/b17341164de9/schema)
