---
title: "Read project files"
method: GET
path: "/v0/api/projects/{projectGroupId}/files"
tags: ["Files"]
---

# Read project files

`GET /v0/api/projects/{projectGroupId}/files`

## Request

- Base URL: `https://api.anything.com`
- URL: `https://api.anything.com/v0/api/projects/{projectGroupId}/files`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/anything/apis/anything-api/docs/v0/api/projects/:projectGroupId/files/get.ts> (a function with typed inputs; its response is checked against the schema)

Lists project files, or returns one file with content when `path` is provided.

## Path parameters

- `projectGroupId` string, uuid, required

## Query parameters

- `path` string

## Response `200`

Project files

- union
  - object
    - `files` object[], required
      - `path` string, required
  - object
    - `file` object, required
      - `path` string, required
      - `content` string, required

## Other responses

- `400`: Invalid request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: File not found

---

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