---
title: "List and search the files on a board"
method: GET
path: "/projects/{id}/files"
---

# List and search the files on a board

`GET /projects/{id}/files`

## Request

- Base URL: `https://craaft.io/api/v1`
- URL: `https://craaft.io/api/v1/projects/{id}/files`
- Auth: HTTP bearer

Every file attached to the board's cards (archived cards included), newest first.
Every word of q must appear (case-insensitive substring) in the file name, card title,
card description, uploader name or content type.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `q` string
- `limit` integer
- `before` string, date-time

## Response `200`

A page of files

- object
  - `total` integer
  - `nextBefore` string, date-time
  - `items` object[]
    - `id` string, uuid
    - `name` string
    - `size` integer
    - `contentType` string
    - `createdAt` string, date-time
    - `uploadedBy` string
    - `uploadedByName` string
    - `card` object
      - `id` string, uuid
      - `title` string
      - `column` string
      - `archived` boolean

## Other responses

- `400`: before is not an RFC3339 timestamp
- `404`: Board not found or not visible to the caller

---

[API](https://skmtc.dev/craaft/apis/craaft-api.md) · [All operations](https://skmtc.dev/craaft/apis/craaft-api/llms.txt) · [OpenAPI document](https://skmtc.dev/craaft/apis/craaft-api/revisions/3a1e9d30d7dc?raw)
