---
title: "Get Files"
method: GET
path: "/v1/files"
---

# Get Files

`GET /v1/files`

Get a paginated list of files for the authenticated organization.

Args:
    identity: Authentication identity containing org_id and user_id
    limit: Maximum number of files to return (max 100)
    status: Optional filter by file status (processing, ready, etc.)
    cursor: Optional pagination cursor for getting next page
    db: Database session
    
Returns:
    ListFilesResponse: Paginated list of files with metadata
    
Raises:
    HTTPException: 400 if cursor is invalid

## Query parameters

- `limit` integer
- `status` 'uploading' | 'ready', nullable
- `cursor` string, nullable

## Response `200`

Successful Response

- ListFilesResponse — Response model for listing files. Attributes: items: List of file metadata responses next_cursor: Optional cursor for pagination to get next page of results
  - `items` FileMetaResponse[], required
    - `file_id` string, uuid, required
    - `status` 'uploading' | 'ready', required
    - `original_name` string, nullable, required
    - `size_bytes` integer, nullable, required
    - `content_type` string, nullable, required
    - `category` string, nullable, required
    - `created_at` string, date-time, required
    - `uploaded_by` string, nullable
  - `next_cursor` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-07** `62c455aac36a` — 1 breaking, 2 warning, 2 info
  - the response property `items/items/uploaded_by` became optional for the status `200`
  - added the new `ready` enum value to the `items/items/status` response property for the response status `200`
  - added the new `uploading` enum value to the `items/items/status` response property for the response status `200`
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - …1 more
- **2025-10-06** `8814c306e6ef` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/spi-tch/apis/spitch-api/changes/v1/files/get.md)

---

[API](https://skmtc.dev/spi-tch/apis/spitch-api.md) · [All operations](https://skmtc.dev/spi-tch/apis/spitch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spi-tch/spitch-api/revisions/b384c3db1a21/schema)
