---
title: "Read file-tree file"
method: GET
path: "/api/v1/file-trees/{nodeId}/files/{filePath}"
tags: ["File Trees"]
---

# Read file-tree file

`GET /api/v1/file-trees/{nodeId}/files/{filePath}`

## Request

- Base URL: `https://api-docs.busabase.com`
- URL: `https://api-docs.busabase.com/api/v1/file-trees/{nodeId}/files/{filePath}`
- Auth: none declared

## Path parameters

- `nodeId` string, required: A node id OR a slug. A slug is only unique WITHIN a type, so pass `type` alongside one; a node id needs no hint.
- `filePath` string, required

## Query parameters

- `type` 'skill' | 'drive' | 'airapp': Disambiguates a slug. Unnecessary — and ignored — when `nodeId` is an id.

## Response `200`

File content and content hash.

- object
  - `nodeId` string, required
  - `path` string, required
  - `encoding` 'utf8' | 'url', required
  - `content` string, required
  - `mimeType` string, required
  - `assetId` string, required
  - `displayName` string, required
  - `assetUrl` string, required
  - `contentHash` string, required

---

[API](https://skmtc.dev/busabase/apis/busabase-api.md) · [All operations](https://skmtc.dev/busabase/apis/busabase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/busabase/apis/busabase-api/revisions/bc6a7d5ff4c1?raw)
