---
title: "List Files"
method: GET
path: "/v1/files?beta=true"
---

# List Files

`GET /v1/files?beta=true`

## Query parameters

- `before_id` string — ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.
- `after_id` string — ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.
- `limit` integer — Number of items to return per page. Defaults to `20`. Ranges from `1` to `1000`.
- `scope_id` string — Filter by scope ID. Only returns files associated with the specified scope (e.g., a session ID).

## Headers

- `anthropic-beta` string — Optional header to specify the beta version(s) you want to use. To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
- `anthropic-version` string — The version of the Claude API you want to use. Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
- `x-api-key` string — Your unique API key for authentication. This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.

## Response `200`

Successful Response

- BetaFileListResponse
  - `data` BetaFileMetadataSchema[], required — List of file metadata objects.
    - `created_at` string, date-time, required — RFC 3339 datetime string representing when the file was created.
    - `downloadable` boolean — Whether the file can be downloaded.
    - `filename` string, required — Original filename of the uploaded file.
    - `id` string, required — Unique object identifier. The format and length of IDs may change over time.
    - `mime_type` string, required — MIME type of the file.
    - `scope` BetaFileScope
      - `id` string, required — The ID of the scoping resource (e.g., the session ID).
      - `type` 'session', required — The type of scope (e.g., `"session"`).
    - `size_bytes` integer, required — Size of the file in bytes.
    - `type` 'file', required — Object type. For files, this is always `"file"`.
  - `first_id` string, nullable — ID of the first file in this page of results.
  - `has_more` boolean — Whether there are more results available.
  - `last_id` string, nullable — ID of the last file in this page of results.

## Other responses

- `4XX` — Error response. See our [errors documentation](https://platform.claude.com/docs/en/api/errors) for more details.

---

[API](https://skmtc.net/anthropics/apis/anthropic-api.md) · [All operations](https://skmtc.net/anthropics/apis/anthropic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anthropics/anthropic-api/versions/93d8fd7d6493/schema)
