---
title: "List Files"
method: GET
path: "/drive/files"
tags: ["drive"]
---

# List Files

`GET /drive/files`

## Request

- Base URL: `https://api.moda.app/v1`
- URL: `https://api.moda.app/v1/drive/files`
- Auth: HTTP bearer

List drive files (offset pagination, #9317 contract; true ``total``).

EXACTLY the view the app's file browser presents, via the browser's own
predicates (``FolderService.get_folder_contents`` / ``get_root_contents``
file conditions verbatim): library-visible files only
(``show_in_library``), the shared ``FileAccessChecker`` visibility filter
(another user's private file is invisible), newest-modified first with the
id tiebreaker that keeps pages stable. Folder-scoped listings resolve the
folder with the app's rules first: cross-team and other users' private
folders are indistinguishable 404s, and hidden system subtrees (brand-kit
/`.canvas-data` machinery) are blocked exactly like folder navigation.
The unscoped listing covers the same locations the tree exposes — files
inside folders you cannot see stay invisible even when team-visible.

## Query parameters

- `folder_id` string, nullable: Filter to one location: a folder id (``fld_...``) for that folder's files, or the literal ``root`` for unfiled files. Omit to list every library-visible file across the locations you can see.
- `limit` integer: Max files per page. Defaults to 50, caps at 200.
- `offset` integer: Files to skip — pass ``offset + limit`` to page through.

## Headers

- `Moda-Version` '2026-04-12' | '2026-05-01'

## Response `200`

Successful Response

- object

## Other responses

- `401`: Authentication required.
- `402`: Insufficient credits for a metered operation.
- `403`: Permission denied for this scope.
- `404`: Resource not found.
- `409`: Conflict (idempotency / resource state).
- `422`: Request validation failed.
- `429`: Rate limit exceeded.
- `500`: Internal error.

## Changes

- **2026-11-03** `9ac6a3abc0f8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/moda/apis/moda-public-api/changes/drive/files/get.md)

---

[API](https://skmtc.dev/moda/apis/moda-public-api.md) - [All operations](https://skmtc.dev/moda/apis/moda-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moda/apis/moda-public-api/revisions/9ac6a3abc0f8?raw)
