---
title: "Get Directory"
method: GET
path: "/agent-knowledge/directories/{directory_id}"
tags: ["agent-knowledge"]
---

# Get Directory

`GET /agent-knowledge/directories/{directory_id}`

## Path parameters

- `directory_id` string, required

## Response `200`

Successful Response

- AgentKnowledgeDirectoryResponse
  - `kind` 'directory'
  - `id` string, nullable
  - `path` string, required
  - `parentPath` string, required
  - `name` string, required
  - `directoryKind` string, nullable
  - `status` string, nullable
  - `isUserVisible` boolean, required
  - `fileCount` integer, nullable
  - `directoryCount` integer, nullable
  - `categoryLabel` string, nullable
  - `commentCount` integer
  - `updatedAt` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/traversal/apis/fastapi.md) · [All operations](https://skmtc.net/traversal/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/traversal/fastapi/revisions/2134ebffd1ef/schema)
