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

# Get Directory

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

## Request

- Base URL: `https://api.traversal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.traversal.com/agent-knowledge/directories/{directory_id}`
- Auth: none declared

## 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.dev/traversal/apis/traversal-api.md) - [All operations](https://skmtc.dev/traversal/apis/traversal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traversal/apis/traversal-api/revisions/31e1a8b7cf89?raw)
