---
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.

## Changes

- **2026-08-06** `3a4f46d48141` — 1 info
  - api operation id `read-file` removed and replaced with `readFile`

[Change history](https://skmtc.dev/instabase/apis/api-reference/changes/v2/files/:path/get.md)

---

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