---
title: "Workspace Read File"
method: GET
path: "/api/v1/workspace/files/{file_path}"
tags: ["grep-public-api"]
---

# Workspace Read File

`GET /api/v1/workspace/files/{file_path}`

## Request

- Base URL: `https://api.grep.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.grep.ai/api/v1/workspace/files/{file_path}`
- Auth: none declared

Read a workspace file's contents. Returns raw bytes with appropriate content-type.

## Path parameters

- `file_path` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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