Source: https://seerepo.com/docs/api-paths
Markdown source: https://seerepo.com/docs/api-paths.md
Description: For a list of the repo's paths: each one's class and marks, and for code its module, whether a test reaches it and whether it's unused.

# What SeeRepo knows of some paths

`POST https://seerepo.com/api/v1/repos/:repo/paths`

Says what SeeRepo knows of each path you send: what it is (code, test, config, docs, image, data, binary or other), whether it was generated or copied in from someone else, and for code its module, whether a test reaches it, whether nothing uses it and its open health tasks.

It's what `seerepo uses` and the `uses` tool of the MCP bridge call after searching your local copy: they send the paths they found, never the code's text. Any tool that already has its paths can call it too.

## Request

| Parameter | Where | Description |
|---|---|---|
| `repo` | path | The repo's id, or owner/name with %2F. |
| `paths` | body | The files, from the repo's root. 1,000 at most. |

```sh
curl -X POST "https://seerepo.com/api/v1/repos/6ad79fd8e89233277ded17c9/paths" \
  -H "Authorization: Bearer $SEEREPO_KEY" -H "Content-Type: application/json" \
  -d '{"paths":["src/lib/env.ts","README.md"]}'
```

## Response

| Field | Type | Description |
|---|---|---|
| `data.read.sha` | string | The commit SeeRepo read. Compare it with your copy's: if they differ, a path may have moved. |
| `data.paths[]` | object | One per path: `path`, `known`, `class`, `flags[]` and `code`. |
| `data.paths[].known` | boolean | False when the path isn't in the map: it doesn't exist at the commit read, or it's in the ignored paths. |
| `data.paths[].code` | object\|null | For code SeeRepo read: `lines`, `kind`, `module` (`path` and `name`), `tested`, `unused`, `kit`, `changedDays` and `tasks`. |

## Errors

| Status | Code | When |
|---|---|---|
| 400 | `bad_paths` | `paths` isn't a list of paths. |
| 400 | `too_many_paths` | More than 1,000 paths. |
| 404 | `not_read_yet` | SeeRepo keeps the repo's files at its next read. |
