---
title: "Search Project Files"
method: GET
path: "/api/projects/{project_id}/files/search"
---

# Search Project Files

`GET /api/projects/{project_id}/files/search`

## Request

- Base URL: `https://app.tin.computer` (the document declares no server; this is the origin it was published from)
- URL: `https://app.tin.computer/api/projects/{project_id}/files/search`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, uuid, required

## Query parameters

- `query` string, required
- `revision` string, nullable
- `path` string[], nullable
- `limit` integer

## Response `200`

Successful Response

- ProjectFileSearchView
  - `revision` string, required
  - `matches` ProjectFileSearchMatchView[], required
    - `path` string, required
    - `lines` ProjectFileSearchLineView[], required
      - `line_number` integer, required
      - `text` string, required
  - `has_more` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tin/apis/tin-lite-switchboard.md) · [All operations](https://skmtc.dev/tin/apis/tin-lite-switchboard/llms.txt) · [OpenAPI document](https://skmtc.dev/tin/apis/tin-lite-switchboard/revisions/c800ca3406f4?raw)
