---
title: "Upload File"
method: POST
path: "/api/v1/flows/upload/"
tags: ["Flows"]
---

# Upload File

`POST /api/v1/flows/upload/`

Upload flows from a JSON or ZIP file (upsert semantics for flows with stable IDs).

## Query parameters

- `folder_id` string, uuid, nullable

## Response `201`

Successful Response

- FlowRead[]
  - `a2a_card_overrides` object, nullable — User overrides for the generated A2A agent card (skill description, examples, tags)
  - `a2a_enabled` boolean, nullable — Can be exposed as an A2A agent (only meaningful when flow_type=agent)
  - `access_type` 'PRIVATE' | 'PUBLIC'
  - `action_description` string, nullable — The description of the action associated with the flow
  - `action_name` string, nullable — The name of the action associated with the flow
  - `data` object, nullable
  - `description` string, nullable
  - `endpoint_name` string, nullable
  - `flow_type` 'workflow' | 'agent'
  - `folder_id` string, uuid, nullable, required
  - `gradient` string, nullable
  - `icon` string, nullable
  - `icon_bg_color` string, nullable
  - `id` string, uuid, required
  - `is_component` boolean, nullable
  - `locked` boolean, nullable
  - `mcp_enabled` boolean, nullable — Can be exposed in the MCP server
  - `name` string, required
  - `name_key` string, nullable — Stable i18n key derived from the original English name
  - `tags` string[], nullable — The tags of the flow
  - `updated_at` string, date-time, nullable
  - `user_id` string, uuid, nullable, required
  - `webhook` boolean, nullable — Can be used on the webhook endpoint
  - `workspace_id` string, uuid, nullable

## Other responses

- `422` — Validation Error

---

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