---
title: "GET /ai/workspace/directory"
method: GET
path: "/ai/workspace/directory"
tags: ["AI Chat"]
---

# GET /ai/workspace/directory

`GET /ai/workspace/directory`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ai/workspace/directory`
- Auth: HTTP bearer

## Query parameters

- `path` string
- `cursor` integer
- `limit` integer

## Response `200`

- ApplicationWorkspaceDirectoryResponse
  - `entries` ApplicationWorkspaceDirectoryEntryResponse[], required
    - `kind` string, required
    - `name` string, required
    - `path` string, required
    - `size_bytes` integer, required
  - `next_cursor` integer, nullable
  - `path` string, required
  - `truncated` boolean, required

## Other responses

- `400`
- `401`
- `403`
- `404`
- `500`

## Changes

- **2026-09-07** `504478bfd788`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ai/workspace/directory/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
