---
title: "Get directory contents"
method: GET
path: "/v1/platform/hub/repos/{owner}/{repo}/directories"
tags: ["directories"]
---

# Get directory contents

`GET /v1/platform/hub/repos/{owner}/{repo}/directories`

Resolves the flattened file tree for an agent or skill repository at a specific commit, tag, or latest.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `commit` string

## Response `200`

OK

- DirectoriesGetDirectoryResponse
  - `commit_hash` string
  - `commit_id` string
  - `files` object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
