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

# List Files

`GET /v1/files`

## Query parameters

- `page` string, nullable — Opaque page cursor returned in a prior list response's `next_page`. Prefixed `page_`.
- `ids[]` string[], nullable — Restrict the result set to Files whose `id` is in this list. At most 100 entries (after de-duplication). Mutually exclusive with `page` and `limit`. When supplied, the response is always a single page (`next_page` is null). IDs that do not resolve to a visible File — including deleted Files — are silently omitted.
- `limit` integer — Number of items to return per page. Defaults to `20`. Ranges from `1` to `1000`.

## Headers

- `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

- FileListResponse
  - `data` FileMetadataSchema[], 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.
    - `expires_at` string, date-time, nullable — RFC 3339 datetime string representing when the file will expire and become unavailable for download. Null if the file does not expire. For files uploaded with `expires_in_seconds`, this is the upload time plus that value.
    - `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.
    - `size_bytes` integer, required — Size of the file in bytes.
    - `type` 'file', required — Object type. For files, this is always `"file"`.
  - `next_page` string, nullable — Opaque cursor for the next page. Supply as `?page=` to fetch the next page; null when there are no more 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/revisions/0042750ea1ee/schema)
