---
title: "Upload File"
method: POST
path: "/api/v1/files/upload/{flow_id}"
tags: ["Files"]
---

# Upload File

`POST /api/v1/files/upload/{flow_id}`

## Path parameters

- `flow_id` string, uuid, required

## Response `201`

Successful Response

- LangflowApiV1SchemasUploadFileResponse — Upload file response schema.
  - `file_path` string, required
  - `flowId` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-13** `acd160326a88` — 1 breaking
  - the `file_path` response's property type/format changed from `string`/`path` to `string`/`` for status `201`
- **2026-03-12** `830c31118215` — 1 breaking, 3 info
  - the `file` request property contentMediaType changed from `` to `application/octet-stream`
  - the `file` request property type/format was generalized from `string`/`binary` to `string`/``
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-03-06** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API
- **2026-02-18** `191b57fc530b` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was removed from the API
- **2026-02-10** `0be341779529` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearerCookie` was added to the API
  - the endpoint scheme security `OAuth2PasswordBearer` was removed from the API

[Full history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/files/upload/:flow_id/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
