---
title: "Get Directory"
method: GET
path: "/api/v1/beta/directories/{directory_id}"
tags: ["Beta", "Directories"]
---

# Get Directory

`GET /api/v1/beta/directories/{directory_id}`

Retrieve a directory by its identifier.

## Path parameters

- `directory_id` string, required

## Query parameters

- `project_id` string, uuid, nullable
- `organization_id` string, uuid, nullable

## Cookies

- `session` string, nullable

## Response `200`

Successful Response

- DirectoryResponse — API response schema for a directory.
  - `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.

## Other responses

- `422` — Validation Error

---

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