---
title: "/api/filepaths"
method: GET
path: "/api/filepaths"
tags: ["filepaths"]
---

# /api/filepaths

`GET /api/filepaths`

List all files touched by any commit in the database

## Query parameters

- `offenders` boolean

## Response `200`

OK

- object[]
  - `id` integer
  - `filepath` string
  - `slug` string — A URL-friendly conversion of a filepath to serves a unique identifier. We use ActiveSupport's `parameterize` for this, which replaces most non-word characters with hyphens. For example, for project `foo` and file `mydir/myfile.c`, it's `foo-mydir-myfile-c` The filepath slug is guaranteed to be globally unique across all VHP data.
  - `dir` string
  - `is_code` boolean
  - `note` string
  - `project_id` integer

## Other responses

- `400` — Malformed request.
- `500` — Internal error. Please report these on our [issue tracker](https://github.com/VulnerabilityHistoryProject/vulnerability-history/issues).

---

[API](https://skmtc.net/vulnerabilityhistoryproject/apis/vulnerability-history-project-restful-api.md) · [All operations](https://skmtc.net/vulnerabilityhistoryproject/apis/vulnerability-history-project-restful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vulnerabilityhistoryproject/vulnerability-history-project-restful-api/versions/2390172697da/schema)
