---
title: "List Files"
method: GET
path: "/api/v1/beta/files"
tags: ["Beta", "Files"]
---

# List Files

`GET /api/v1/beta/files`

List files with optional filtering and pagination.

Filter by `file_name`, `file_ids`, or `external_file_id`.
Supports cursor-based pagination and custom ordering.

## Query parameters

- `page_size` integer, nullable — The maximum number of items to return. Defaults to 50, maximum is 1000.
- `page_token` string, nullable — A page token received from a previous list call. Provide this to retrieve the subsequent page.
- `file_ids` string[], nullable — Filter by specific file IDs.
- `file_name` string, nullable — Filter by file name (exact match).
- `external_file_id` string, nullable — Filter by external file ID.
- `order_by` string, nullable — A comma-separated list of fields to order by, sorted in ascending order. Use 'field_name desc' to specify descending order.
- `expand` string[], nullable — Fields to expand on each file.
- `project_id` string, uuid, nullable
- `organization_id` string, uuid, nullable

## Cookies

- `session` string, nullable

## Response `200`

Successful Response

- FileQueryResponseV2 — Paginated list of files.
  - `items` FileV2[], required — The list of items.
    - `id` string, required — Unique file identifier
    - `name` string, required — File name including extension
    - `external_file_id` string, nullable — Optional ID for correlating with an external system
    - `file_type` string, nullable — File extension (pdf, docx, png, etc.)
    - `project_id` string, uuid, required — Project this file belongs to
    - `last_modified_at` string, date-time, nullable — When the file was last modified (ISO 8601)
    - `expires_at` string, date-time, nullable — When the file expires and may be automatically removed. Null means no expiration.
    - `purpose` string, nullable — How the file will be used: user_data, parse, extract, classify, split, sheet, or agent_app
    - `download_url` PresignedUrl — Schema for a presigned URL.
      - `url` string, uri, required — A presigned URL for IO operations against a private file
      - `expires_at` string, date-time, required — The time at which the presigned URL expires
      - `form_fields` object, nullable — Form fields for a presigned POST request
  - `next_page_token` string, nullable — A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
  - `total_size` integer, nullable — The total number of items available. This is only populated when specifically requested. The value may be an estimate and can be used for display purposes only.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/run-llama/apis/llama-platform.md) · [All operations](https://skmtc.net/run-llama/apis/llama-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/run-llama/llama-platform/versions/b17341164de9/schema)
