---
title: "Read file"
method: GET
path: "/v2/files/{path}"
tags: ["files"]
---

# Read file

`GET /v2/files/{path}`

Read contents from a file.

<Info>This acts on files in the AI Hub filesystem, not your local filesystem.</Info>

<Note>Ensure the path is accessible within the context defined by the `IB-Context` header.</Note>

## Path parameters

- `path` string, required

## Query parameters

- `expect-node-type` 'file' | 'folder', required

## Headers

- `Authorization` string, required
- `IB-Context` string
- `Range` string
- `IB-Retry-Config` string

## Response `200`

Indicates that the response contains the entire file contents.

---

[API](https://skmtc.net/instabase/apis/api-reference.md) · [All operations](https://skmtc.net/instabase/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/instabase/api-reference/revisions/3a4f46d48141/schema)
