---
title: "Upload File"
method: POST
path: "/v1/files"
---

# Upload File

`POST /v1/files`

## 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).

## Response `200`

Successful Response

- FileMetadataSchema
  - `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"`.

## Other responses

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

## Changes

> 67 revisions in range; 12 could not be searched.

- **2026-04-24** `2d9a6272c569` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/anthropics/apis/anthropic-api/changes/v1/files/post.md)

---

[API](https://skmtc.dev/anthropics/apis/anthropic-api.md) · [All operations](https://skmtc.dev/anthropics/apis/anthropic-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anthropics/anthropic-api/revisions/717ab2a5efd6/schema)
