Download OpenAPI specification:Download
Build and process a flow, returning a job ID for event polling.
This endpoint requires authentication through the CurrentActiveUser dependency.
For public flows that don't require authentication, use the /build_public_tmp/flow_id/flow endpoint.
Args:
flow_id: UUID of the flow to build
background_tasks: Background tasks manager
inputs: Optional input values for the flow
data: Optional flow data
files: Optional files to include
stop_component_id: Optional ID of component to stop at
start_component_id: Optional ID of component to start from
log_builds: Whether to log the build process
current_user: The authenticated user
queue_service: Queue service for job management
flow_name: Optional name for the flow
event_delivery: Optional event delivery type - default is streaming
Returns:
Dict with job_id that can be used to poll for build status
| flow_id required | string <uuid> (Flow Id) |
Stop Component Id (string) or Stop Component Id (null) (Stop Component Id) | |
Start Component Id (string) or Start Component Id (null) (Start Component Id) | |
| log_builds | boolean (Log Builds) Default: true |
Flow Name (string) or Flow Name (null) (Flow Name) | |
| event_delivery | string (EventDeliveryType) Default: "polling" Enum: "streaming" "direct" "polling" |
InputValueRequest (object) or null | |
FlowDataRequest (object) or null | |
Array of Files (strings) or Files (null) (Files) |
{- "inputs": {
- "components": [
- "components_id",
- "Component Name"
], - "input_value": "input_value",
- "session": "session_id"
}, - "data": {
- "nodes": [
- { }
], - "edges": [
- { }
], - "viewport": { }
}, - "files": [
- "string"
]
}nullGet events for a specific build job.
Requires authentication to prevent unauthorized access to build events.
| job_id required | string (Job Id) |
| event_delivery | string (EventDeliveryType) Default: "streaming" Enum: "streaming" "direct" "polling" |
nullCancel a specific build job.
Requires authentication to prevent unauthorized build cancellation.
| job_id required | string (Job Id) |
{- "success": true,
- "message": "string"
}Build a public flow without requiring authentication.
This endpoint is specifically for public flows that don't require authentication.
It uses a client_id cookie to create a deterministic flow ID for tracking purposes.
The endpoint:
1. Verifies the requested flow is marked as public in the database
2. Creates a deterministic UUID based on client_id and flow_id
3. Uses the flow owner's permissions to build the flow
Requirements:
- The flow must be marked as PUBLIC in the database
- The request must include a client_id cookie
Args:
flow_id: UUID of the public flow to build
background_tasks: Background tasks manager
inputs: Optional input values for the flow
data: Optional flow data
files: Optional files to include
stop_component_id: Optional ID of component to stop at
start_component_id: Optional ID of component to start from
log_builds: Whether to log the build process
flow_name: Optional name for the flow
request: FastAPI request object (needed for cookie access)
queue_service: Queue service for job management
event_delivery: Optional event delivery type - default is streaming
Returns:
Dict with job_id that can be used to poll for build status
| flow_id required | string <uuid> (Flow Id) |
Stop Component Id (string) or Stop Component Id (null) (Stop Component Id) | |
Start Component Id (string) or Start Component Id (null) (Start Component Id) | |
Log Builds (boolean) or Log Builds (null) (Log Builds) Default: true | |
Flow Name (string) or Flow Name (null) (Flow Name) | |
| event_delivery | string (EventDeliveryType) Default: "polling" Enum: "streaming" "direct" "polling" |
InputValueRequest (object) or null | |
FlowDataRequest (object) or null | |
Array of Files (strings) or Files (null) (Files) |
{- "inputs": {
- "components": [
- "components_id",
- "Component Name"
], - "input_value": "input_value",
- "session": "session_id"
}, - "data": {
- "nodes": [
- { }
], - "edges": [
- { }
], - "viewport": { }
}, - "files": [
- "string"
]
}nullExecutes a specified flow by ID with support for streaming and telemetry (API key auth).
This endpoint executes a flow identified by ID or name, with options for streaming the response
and tracking execution metrics. It handles both streaming and non-streaming execution modes.
This endpoint uses API key authentication (Bearer token).
Args:
background_tasks (BackgroundTasks): FastAPI background task manager
flow (FlowRead | None): The flow to execute, loaded via dependency
input_request (SimplifiedAPIRequest | None): Input parameters for the flow
stream (bool): Whether to stream the response
api_key_user (UserRead): Authenticated user from API key
context (dict | None): Optional context to pass to the flow
http_request (Request): The incoming HTTP request for extracting global variables
Returns:
Union[StreamingResponse, RunResponse]: Either a streaming response for real-time results
or a RunResponse with the complete execution results
Raises:
HTTPException: For flow not found (404) or invalid input (400)
APIException: For internal execution errors (500)
Notes:
- Supports both streaming and non-streaming execution modes
- Tracks execution time and success/failure via telemetry
- Handles graceful client disconnection in streaming mode
- Provides detailed error handling with appropriate HTTP status codes
- Extracts global variables from HTTP headers with prefix X-LANGFLOW-GLOBAL-VAR-*
- Merges extracted variables with the context parameter as "request_variables"
- In streaming mode, uses EventManager to handle events:
- "add_message": New messages during execution
- "token": Individual tokens during streaming
- "end": Final execution result
- Authentication: Requires API key (Bearer token)
| flow_id_or_name required | string (Flow Id Or Name) |
| stream | boolean (Stream) Default: false |
User Id (string) or User Id (string) or User Id (null) (User Id) |
SimplifiedAPIRequest (object) or null | |
Context (object) or Context (null) (Context) |
{- "input_request": {
- "input_value": "string",
- "input_type": "chat",
- "output_type": "chat",
- "output_component": "",
- "tweaks": {
- "Component Name": {
- "parameter_name": "value"
}, - "component_id": {
- "parameter_name": "value"
}, - "parameter_name": "value"
}, - "session_id": "string"
}, - "context": { }
}nullRun a flow using a webhook request.
Args:
flow_id_or_name: The flow ID or endpoint name (used by dependency).
flow: The flow to be executed.
request: The incoming HTTP request.
Returns:
A dictionary containing the status of the task.
Raises:
HTTPException: If the flow is not found or if there is an error processing the request.
| flow_id_or_name required | string (Flow Id Or Name) |
User Id (string) or User Id (string) or User Id (null) (User Id) |
{ }Executes a specified flow by ID with optional input values, output selection, tweaks, and streaming capability.
This endpoint supports running flows with caching to enhance performance and efficiency.
### Parameters:
- flow (Flow): The flow object to be executed, resolved via dependency injection.
- inputs (List[InputValueRequest], optional): A list of inputs specifying the input values and components
for the flow. Each input can target specific components and provide custom values.
- outputs (List[str], optional): A list of output names to retrieve from the executed flow.
If not provided, all outputs are returned.
- tweaks (Optional[Tweaks], optional): A dictionary of tweaks to customize the flow execution.
The tweaks can be used to modify the flow's parameters and components.
Tweaks can be overridden by the input values.
- stream (bool, optional): Specifies whether the results should be streamed. Defaults to False.
- session_id (Union[None, str], optional): An optional session ID to utilize existing session data for the flow
execution.
- api_key_user (User): The user associated with the current API key. Automatically resolved from the API key.
### Returns:
A RunResponse object containing the selected outputs (or all if not specified) of the executed flow
and the session ID.
The structure of the response accommodates multiple inputs, providing a nested list of outputs for each input.
### Raises:
HTTPException: Indicates issues with finding the specified flow, invalid input formats, or internal errors during
flow execution.
### Example usage:json<br>POST /run/flow_id<br>x-api-key: YOUR_API_KEY<br>Payload:<br>{<br> "inputs": [<br> {"components": ["component1"], "input_value": "value1"},<br> {"components": ["component3"], "input_value": "value2"}<br> ],<br> "outputs": ["Component Name", "component_id"],<br> "tweaks": {"parameter_name": "value", "Component Name": {"parameter_name": "value"}, "component_id": {"parameter_name": "value"}}<br> "stream": false<br>}<br>
This endpoint facilitates complex flow executions with customized inputs, outputs, and configurations,
catering to diverse application requirements.
| flow_id_or_name required | string (Flow Id Or Name) |
User Id (string) or User Id (string) or User Id (null) (User Id) |
Array of Inputs (objects) or Inputs (null) (Inputs) | |
Array of Outputs (strings) or Outputs (null) (Outputs) | |
Tweaks (object) or null | |
| stream | boolean (Stream) Default: false |
Session Id (string) or Session Id (null) (Session Id) |
{- "inputs": [
- {
- "components": [
- "components_id",
- "Component Name"
], - "input_value": "input_value",
- "session": "session_id"
}
], - "outputs": [
- "string"
], - "tweaks": {
- "Component Name": {
- "parameter_name": "value"
}, - "component_id": {
- "parameter_name": "value"
}, - "parameter_name": "value"
}, - "stream": false,
- "session_id": "string"
}{- "outputs": [ ],
- "session_id": "string"
}Retrieve application configuration settings.
Returns different configuration based on authentication status:
- Authenticated users: Full ConfigResponse with all settings
- Unauthenticated users: PublicConfigResponse with limited, safe-to-expose settings
Args:
user: The authenticated user, or None if unauthenticated.
Returns:
ConfigResponse | PublicConfigResponse: Configuration settings appropriate for the user's auth status.
Raises:
HTTPException: If an error occurs while retrieving the configuration.
{- "max_file_size_upload": 0,
- "event_delivery": "polling",
- "voice_mode_available": true,
- "frontend_timeout": 0,
- "type": "full",
- "feature_flags": {
- "mvp_components": false
}, - "serialization_max_items_length": 0,
- "serialization_max_text_length": 0,
- "auto_saving": true,
- "auto_saving_interval": 0,
- "health_check_max_retries": 0,
- "webhook_polling_interval": 0,
- "public_flow_cleanup_interval": 0,
- "public_flow_expiration": 0,
- "webhook_auth_enable": true,
- "default_folder_name": "string",
- "hide_getting_started_progress": true
}| name required | string (Name) |
Description (string) or Description (null) (Description) | |
Icon (string) or Icon (null) (Icon) | |
Icon Bg Color (string) or Icon Bg Color (null) (Icon Bg Color) | |
Gradient (string) or Gradient (null) (Gradient) | |
Data (object) or Data (null) (Data) | |
Is Component (boolean) or Is Component (null) (Is Component) Default: false | |
Updated At (string) or Updated At (null) (Updated At) | |
Webhook (boolean) or Webhook (null) (Webhook) Default: false Can be used on the webhook endpoint | |
Endpoint Name (string) or Endpoint Name (null) (Endpoint Name) | |
Array of Tags (strings) or Tags (null) (Tags) | |
Locked (boolean) or Locked (null) (Locked) Default: false | |
Mcp Enabled (boolean) or Mcp Enabled (null) (Mcp Enabled) Default: false Can be exposed in the MCP server | |
Action Name (string) or Action Name (null) (Action Name) The name of the action associated with the flow | |
Action Description (string) or Action Description (null) (Action Description) The description of the action associated with the flow | |
| access_type | string (AccessTypeEnum) Default: "PRIVATE" Enum: "PRIVATE" "PUBLIC" |
User Id (string) or User Id (null) (User Id) | |
Folder Id (string) or Folder Id (null) (Folder Id) | |
Fs Path (string) or Fs Path (null) (Fs Path) |
{- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "fs_path": "string"
}{- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}Retrieve a list of flows with pagination support.
Args:
current_user (User): The current authenticated user.
session (Session): The database session.
settings_service (SettingsService): The settings service.
components_only (bool, optional): Whether to return only components. Defaults to False.
get_all (bool, optional): Whether to return all flows without pagination. Defaults to True.
This field must be True because of backward compatibility with the frontend - Release: 1.0.20
folder_id (UUID, optional): The project ID. Defaults to None.
params (Params): Pagination parameters.
remove_example_flows (bool, optional): Whether to remove example flows. Defaults to False.
header_flows (bool, optional): Whether to return only specific headers of the flows. Defaults to False.
Returns:
list[FlowRead] | Page[FlowRead] | list[FlowHeader]
A list of flows or a paginated response containing the list of flows or a list of flow headers.
| remove_example_flows | boolean (Remove Example Flows) Default: false |
| components_only | boolean (Components Only) Default: false |
| get_all | boolean (Get All) Default: true |
Folder Id (string) or Folder Id (null) (Folder Id) | |
| header_flows | boolean (Header Flows) Default: false |
| page | integer (Page) >= 1 Default: 1 |
| size | integer (Size) [ 1 .. 100 ] Default: 50 |
[ ]Delete multiple flows by their IDs.
Args:
flow_ids (List[str]): The list of flow IDs to delete.
user (User, optional): The user making the request. Defaults to the current active user.
db (Session, optional): The database session.
Returns:
dict: A dictionary containing the number of flows deleted.
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]nullRead a flow.
| flow_id required | string <uuid> (Flow Id) |
{- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}Update a flow.
| flow_id required | string <uuid> (Flow Id) |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) | |
Data (object) or Data (null) (Data) | |
Folder Id (string) or Folder Id (null) (Folder Id) | |
Endpoint Name (string) or Endpoint Name (null) (Endpoint Name) | |
Mcp Enabled (boolean) or Mcp Enabled (null) (Mcp Enabled) | |
Locked (boolean) or Locked (null) (Locked) | |
Action Name (string) or Action Name (null) (Action Name) | |
Action Description (string) or Action Description (null) (Action Description) | |
AccessTypeEnum (string) or null | |
Fs Path (string) or Fs Path (null) (Fs Path) |
{- "name": "string",
- "description": "string",
- "data": { },
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "endpoint_name": "string",
- "mcp_enabled": true,
- "locked": true,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "fs_path": "string"
}{- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}Read a public flow.
| flow_id required | string <uuid> (Flow Id) |
{- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}Create multiple new flows.
required | Array of objects (Flows) | ||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||
{- "flows": [
- {
- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "fs_path": "string"
}
]
}[- {
- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}
]Upload flows from a file.
Folder Id (string) or Folder Id (null) (Folder Id) |
| file required | string <application/octet-stream> (File) |
[- {
- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}
]Download all flows as a zip file.
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]nullRetrieve a list of basic example flows.
Args:
session (Session): The database session.
Returns:
list[FlowRead]: A list of basic example flows.
[- {
- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}
]Get a list of starter projects.
[- {
- "data": {
- "nodes": [
- { }
], - "edges": [
- { }
], - "viewport": {
- "x": 0,
- "y": 0,
- "zoom": 0
}
}, - "is_component": true,
- "name": "string",
- "description": "string",
- "endpoint_name": "string"
}
]Add a new user to the database.
This endpoint allows public user registration (sign up).
User activation is controlled by the NEW_USER_IS_ACTIVE setting.
| username required | string (Username) |
| password required | string (Password) |
Optins (object) or Optins (null) (Optins) Default: {"github_starred":false,"dialog_dismissed":false,"discord_clicked":false} |
{- "username": "string",
- "password": "string",
- "optins": {
- "github_starred": false,
- "dialog_dismissed": false,
- "discord_clicked": false
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "profile_image": "string",
- "store_api_key": "string",
- "is_active": true,
- "is_superuser": true,
- "create_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z",
- "optins": { }
}Retrieve a list of users from the database with pagination.
| skip | integer (Skip) Default: 0 |
| limit | integer (Limit) Default: 10 |
{- "total_count": 0,
- "users": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "profile_image": "string",
- "store_api_key": "string",
- "is_active": true,
- "is_superuser": true,
- "create_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z",
- "optins": { }
}
]
}Retrieve the current user's data.
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "profile_image": "string",
- "store_api_key": "string",
- "is_active": true,
- "is_superuser": true,
- "create_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z",
- "optins": { }
}Update an existing user's data.
| user_id required | string <uuid> (User Id) |
Username (string) or Username (null) (Username) | |
Profile Image (string) or Profile Image (null) (Profile Image) | |
Password (string) or Password (null) (Password) | |
Is Active (boolean) or Is Active (null) (Is Active) | |
Is Superuser (boolean) or Is Superuser (null) (Is Superuser) | |
Last Login At (string) or Last Login At (null) (Last Login At) | |
Optins (object) or Optins (null) (Optins) |
{- "username": "string",
- "profile_image": "string",
- "password": "string",
- "is_active": true,
- "is_superuser": true,
- "last_login_at": "2019-08-24T14:15:22Z",
- "optins": { }
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "profile_image": "string",
- "store_api_key": "string",
- "is_active": true,
- "is_superuser": true,
- "create_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z",
- "optins": { }
}Reset a user's password.
| user_id required | string <uuid> (User Id) |
Username (string) or Username (null) (Username) | |
Profile Image (string) or Profile Image (null) (Profile Image) | |
Password (string) or Password (null) (Password) | |
Is Active (boolean) or Is Active (null) (Is Active) | |
Is Superuser (boolean) or Is Superuser (null) (Is Superuser) | |
Last Login At (string) or Last Login At (null) (Last Login At) | |
Optins (object) or Optins (null) (Optins) |
{- "username": "string",
- "profile_image": "string",
- "password": "string",
- "is_active": true,
- "is_superuser": true,
- "last_login_at": "2019-08-24T14:15:22Z",
- "optins": { }
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "username": "string",
- "profile_image": "string",
- "store_api_key": "string",
- "is_active": true,
- "is_superuser": true,
- "create_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_login_at": "2019-08-24T14:15:22Z",
- "optins": { }
}| flow_id required | string <uuid> (Flow Id) |
| file required | string <application/octet-stream> (File) |
{- "flowId": "string",
- "file_path": "string"
}Download profile picture from local filesystem.
Profile pictures are first looked up in config_dir/profile_pictures/,
then fallback to the package's bundled profile_pictures directory.
| folder_name required | string (Folder Name) |
| file_name required | string (File Name) |
nullUpload a file for the current user and track it in the database.
| append | boolean (Append) Default: false |
| file required | string <application/octet-stream> (File) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "path": "string",
- "size": 0,
- "provider": "string"
}List the files available to the current user.
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "name": "string",
- "path": "string",
- "size": 0,
- "provider": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Upload a file for the current user and track it in the database.
| append | boolean (Append) Default: false |
| file required | string <application/octet-stream> (File) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "path": "string",
- "size": 0,
- "provider": "string"
}List the files available to the current user.
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "name": "string",
- "path": "string",
- "size": 0,
- "provider": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Download multiple files as a zip file by their IDs.
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]nullDelete multiple files by their IDs.
[- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]nullDownload a file by its ID or return its content as a string/bytes.
Args:
file_id: UUID of the file.
current_user: Authenticated user.
session: Database session.
storage_service: File storage service.
return_content: If True, return raw content (str) instead of StreamingResponse.
Returns:
StreamingResponse for client downloads or str for internal use.
| file_id required | string <uuid> (File Id) |
| return_content | boolean (Return Content) Default: false |
nullEdit the name of a file by its ID.
| file_id required | string <uuid> (File Id) |
| name required | string (Name) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "path": "string",
- "size": 0,
- "provider": "string"
}| flow_id required | string <uuid> (Flow Id) |
{- "vertex_builds": {
- "property1": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "id": "string",
- "data": { },
- "artifacts": { },
- "params": "string",
- "valid": true,
- "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
- "build_id": "bfb1f3fa-bf7b-43a5-9e0b-26cc050e44cb"
}
], - "property2": [
- {
- "timestamp": "2019-08-24T14:15:22Z",
- "id": "string",
- "data": { },
- "artifacts": { },
- "params": "string",
- "valid": true,
- "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
- "build_id": "bfb1f3fa-bf7b-43a5-9e0b-26cc050e44cb"
}
]
}
}Flow Id (string) or Flow Id (null) (Flow Id) | |
Session Id (string) or Session Id (null) (Session Id) | |
Sender (string) or Sender (null) (Sender) | |
Sender Name (string) or Sender Name (null) (Sender Name) | |
Order By (string) or Order By (null) (Order By) Default: "timestamp" |
[- {
- "id": "string",
- "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "timestamp": "2019-08-24T14:15:22Z",
- "sender": "string",
- "sender_name": "string",
- "session_id": "string",
- "context_id": "string",
- "text": "string",
- "files": [ ],
- "edit": true,
- "duration": 0,
- "properties": {
- "text_color": "string",
- "background_color": "string",
- "edited": false,
- "source": {
- "id": "string",
- "display_name": "string",
- "source": "string"
}, - "icon": "string",
- "allow_markdown": false,
- "positive_feedback": true,
- "state": "partial",
- "targets": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0
}, - "build_duration": 0
}, - "category": "string",
- "content_blocks": [
- {
- "title": "string",
- "contents": [
- { }
], - "allow_markdown": true,
- "media_url": [
- "string"
]
}
]
}
][- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}| message_id required | string <uuid> (Message Id) |
Text (string) or Text (null) (Text) | |
Sender (string) or Sender (null) (Sender) | |
Sender Name (string) or Sender Name (null) (Sender Name) | |
Session Id (string) or Session Id (null) (Session Id) | |
Context Id (string) or Context Id (null) (Context Id) | |
Array of Files (strings) or Files (null) (Files) | |
Edit (boolean) or Edit (null) (Edit) | |
Error (boolean) or Error (null) (Error) | |
Properties (object) or null |
{- "text": "string",
- "sender": "string",
- "sender_name": "string",
- "session_id": "string",
- "context_id": "string",
- "files": [
- "string"
], - "edit": true,
- "error": true,
- "properties": {
- "text_color": "string",
- "background_color": "string",
- "edited": false,
- "source": {
- "id": "string",
- "display_name": "string",
- "source": "string"
}, - "icon": "string",
- "allow_markdown": false,
- "positive_feedback": true,
- "state": "partial",
- "targets": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0
}, - "build_duration": 0
}
}{- "timestamp": "2019-08-24T14:15:22Z",
- "sender": "string",
- "sender_name": "string",
- "session_id": "string",
- "context_id": "string",
- "text": "string",
- "files": [
- "string"
], - "error": false,
- "edit": false,
- "properties": {
- "text_color": "string",
- "background_color": "string",
- "edited": false,
- "source": {
- "id": "string",
- "display_name": "string",
- "source": "string"
}, - "icon": "string",
- "allow_markdown": false,
- "positive_feedback": true,
- "state": "partial",
- "targets": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0
}, - "build_duration": 0
}, - "category": "message",
- "content_blocks": [
- {
- "title": "string",
- "contents": [
- { }
], - "allow_markdown": true,
- "media_url": [
- "string"
]
}
], - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2"
}| old_session_id required | string (Old Session Id) |
| new_session_id required | string (New Session Id) The new session ID to update to |
[- {
- "id": "string",
- "flow_id": "0746f03b-16cc-49fb-9833-df3713d407d2",
- "timestamp": "2019-08-24T14:15:22Z",
- "sender": "string",
- "sender_name": "string",
- "session_id": "string",
- "context_id": "string",
- "text": "string",
- "files": [ ],
- "edit": true,
- "duration": 0,
- "properties": {
- "text_color": "string",
- "background_color": "string",
- "edited": false,
- "source": {
- "id": "string",
- "display_name": "string",
- "source": "string"
}, - "icon": "string",
- "allow_markdown": false,
- "positive_feedback": true,
- "state": "partial",
- "targets": [ ],
- "usage": {
- "input_tokens": 0,
- "output_tokens": 0,
- "total_tokens": 0
}, - "build_duration": 0
}, - "category": "string",
- "content_blocks": [
- {
- "title": "string",
- "contents": [
- { }
], - "allow_markdown": true,
- "media_url": [
- "string"
]
}
]
}
]| flow_id required | string <uuid> (Flow Id) |
| page | integer (Page) >= 1 Default: 1 Page number |
| size | integer (Size) [ 1 .. 100 ] Default: 50 Page size |
{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "timestamp": "2019-08-24T14:15:22Z",
- "vertex_id": "string",
- "target_id": "string",
- "inputs": { },
- "outputs": { },
- "status": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}Get list of traces for a flow.
Args:
current_user: Authenticated user (required for authorization)
flow_id: Filter by flow ID
session_id: Filter by session ID
status: Filter by trace status
query: Search query for trace name/id/session id
start_time: Filter traces starting on/after this time (ISO)
end_time: Filter traces starting on/before this time (ISO)
page: Page number (1-based)
size: Page size
Returns:
List of traces
Flow Id (string) or Flow Id (null) (Flow Id) | |
Session Id (string) or Session Id (null) (Session Id) | |
SpanStatus (string) or Status (null) (Status) | |
Query (string) or Query (null) (Query) | |
Start Time (string) or Start Time (null) (Start Time) | |
End Time (string) or End Time (null) (End Time) | |
| page | integer (Page) >= 0 Default: 1 |
| size | integer (Size) [ 1 .. 200 ] Default: 50 |
{- "traces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "status": "unset",
- "startTime": "2019-08-24T14:15:22Z",
- "totalLatencyMs": 0,
- "totalTokens": 0,
- "flowId": "ccd52024-9c9c-4751-993a-9d75a778bf9d",
- "sessionId": "string",
- "input": { },
- "output": { }
}
], - "total": 0,
- "pages": 0
}Delete all traces for a flow.
Args:
flow_id: The ID of the flow whose traces should be deleted.
current_user: The authenticated user (required for authorization).
| flow_id required | string <uuid> (Flow Id) |
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}Get a single trace with its hierarchical span tree.
Args:
trace_id: The ID of the trace to retrieve.
current_user: The authenticated user (required for authorization).
Returns:
TraceRead containing the trace and its hierarchical span tree.
| trace_id required | string <uuid> (Trace Id) |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "status": "unset",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "totalLatencyMs": 0,
- "totalTokens": 0,
- "flowId": "ccd52024-9c9c-4751-993a-9d75a778bf9d",
- "sessionId": "string",
- "input": { },
- "output": { },
- "spans": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "type": "chain",
- "status": "unset",
- "startTime": "2019-08-24T14:15:22Z",
- "endTime": "2019-08-24T14:15:22Z",
- "latencyMs": 0,
- "inputs": { },
- "outputs": { },
- "error": "string",
- "modelName": "string",
- "tokenUsage": { },
- "children": [
- { }
]
}
]
}Delete a trace and all its spans.
Args:
trace_id: The ID of the trace to delete.
current_user: The authenticated user (required for authorization).
| trace_id required | string <uuid> (Trace Id) |
{- "detail": [
- {
- "loc": [
- "string"
], - "msg": "string",
- "type": "string",
- "input": null,
- "ctx": { }
}
]
}[- {
- "name": "string",
- "description": "string",
- "auth_settings": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef"
}
]| name required | string (Name) |
Description (string) or Description (null) (Description) | |
Auth Settings (object) or Auth Settings (null) (Auth Settings) Authentication settings for the folder/project | |
Array of Components List (strings) or Components List (null) (Components List) | |
Array of Flows List (strings) or Flows List (null) (Flows List) |
{- "name": "string",
- "description": "string",
- "auth_settings": { },
- "components_list": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "flows_list": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "name": "string",
- "description": "string",
- "auth_settings": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef"
}| project_id required | string <uuid> (Project Id) |
Page (integer) or Page (null) (Page) | |
Size (integer) or Size (null) (Size) | |
| is_component | boolean (Is Component) Default: false |
| is_flow | boolean (Is Flow) Default: false |
| search | string (Search) Default: "" |
{- "folder": {
- "name": "string",
- "description": "string",
- "auth_settings": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef"
}, - "flows": {
- "items": [
- {
- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [ ],
- "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901",
- "fs_path": "string"
}
], - "total": 0,
- "page": 1,
- "size": 1,
- "pages": 0
}
}| project_id required | string <uuid> (Project Id) |
Name (string) or Name (null) (Name) | |
Description (string) or Description (null) (Description) | |
Parent Id (string) or Parent Id (null) (Parent Id) | |
| components | Array of strings <uuid> (Components) [ items <uuid > ] |
| flows | Array of strings <uuid> (Flows) [ items <uuid > ] |
Auth Settings (object) or Auth Settings (null) (Auth Settings) |
{- "name": "string",
- "description": "string",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef",
- "components": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "flows": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "auth_settings": { }
}{- "name": "string",
- "description": "string",
- "auth_settings": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef"
}Upload flows from a file.
| file required | string <application/octet-stream> (File) |
[- {
- "name": "string",
- "description": "string",
- "icon": "string",
- "icon_bg_color": "string",
- "gradient": "string",
- "data": { },
- "is_component": false,
- "updated_at": "2019-08-24T14:15:22Z",
- "webhook": false,
- "endpoint_name": "string",
- "tags": [
- "string"
], - "locked": false,
- "mcp_enabled": false,
- "action_name": "string",
- "action_description": "string",
- "access_type": "PRIVATE",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "folder_id": "7695bac3-9397-4ec2-9335-45a2a16f1901"
}
]Update the MCP settings of all flows in a project and project-level auth settings.
On MCP Composer failure, this endpoint should return with a 200 status code and an error message in
the body of the response to display to the user.
| project_id required | string <uuid> (Project Id) |
required | Array of objects (Settings) |
AuthSettings (object) or null |
{- "settings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "mcp_enabled": true,
- "action_name": "string",
- "action_description": "string",
- "name": "string",
- "description": "string"
}
], - "auth_settings": {
- "auth_type": "none",
- "oauth_host": "string",
- "oauth_port": "string",
- "oauth_server_url": "string",
- "oauth_callback_path": "string",
- "oauth_callback_url": "string",
- "oauth_client_id": "string",
- "oauth_client_secret": "pa$$word",
- "oauth_auth_url": "string",
- "oauth_token_url": "string",
- "oauth_mcp_scope": "string",
- "oauth_provider_scope": "string"
}
}nullInstall MCP server configuration for Cursor, Windsurf, or Claude.
| project_id required | string <uuid> (Project Id) |
| client required | string (Client) |
Transport (string) or Transport (null) (Transport) |
{- "client": "string",
- "transport": "sse"
}nullGet the MCP Composer URL for a specific project.
On failure, this endpoint should return with a 200 status code and an error message in
the body of the response to display to the user.
| project_id required | string <uuid> (Project Id) |
{- "project_id": "string",
- "uses_composer": true,
- "streamable_http_url": "string",
- "legacy_sse_url": "string",
- "error_message": "string"
}Check if MCP server configuration is installed for this project in Cursor, Windsurf, or Claude.
| project_id required | string <uuid> (Project Id) |
nullCreate a response using OpenAI Responses API format.
This endpoint accepts a flow_id in the model parameter and processes
the input through the specified Langflow flow.
Args:
request: OpenAI Responses API request with model (flow_id) and input
background_tasks: FastAPI background task manager
api_key_user: Authenticated user from API key
http_request: The incoming HTTP request
telemetry_service: Telemetry service for logging
Returns:
OpenAI-compatible response or streaming response
Raises:
HTTPException: For validation errors or flow execution issues
| model required | string (Model) The flow ID to execute (used instead of OpenAI model) |
| input required | string (Input) The input text to process |
| stream | boolean (Stream) Default: false Whether to stream the response |
| background | boolean (Background) Default: false Whether to process in background |
Array of Tools (any) or Tools (null) (Tools) Tools are not supported yet | |
Previous Response Id (string) or Previous Response Id (null) (Previous Response Id) ID of previous response to continue conversation | |
Array of Include (strings) or Include (null) (Include) Additional response data to include, e.g., ['tool_call.results'] |
{- "model": "string",
- "input": "string",
- "stream": false,
- "background": false,
- "tools": [
- null
], - "previous_response_id": "string",
- "include": [
- "string"
]
}nullExecute a named flow from the flows directory.
| flow_name required | string (Flow Name) |
| flow_id required | string (Flow Id) |
Component Id (string) or Component Id (null) (Component Id) | |
Field Name (string) or Field Name (null) (Field Name) | |
Input Value (string) or Input Value (null) (Input Value) | |
Max Retries (integer) or Max Retries (null) (Max Retries) | |
Model Name (string) or Model Name (null) (Model Name) | |
Provider (string) or Provider (null) (Provider) | |
Session Id (string) or Session Id (null) (Session Id) |
{- "flow_id": "string",
- "component_id": "string",
- "field_name": "string",
- "input_value": "string",
- "max_retries": 0,
- "model_name": "string",
- "provider": "string",
- "session_id": "string"
}{ }Chat with the Langflow Assistant.
| flow_id required | string (Flow Id) |
Component Id (string) or Component Id (null) (Component Id) | |
Field Name (string) or Field Name (null) (Field Name) | |
Input Value (string) or Input Value (null) (Input Value) | |
Max Retries (integer) or Max Retries (null) (Max Retries) | |
Model Name (string) or Model Name (null) (Model Name) | |
Provider (string) or Provider (null) (Provider) | |
Session Id (string) or Session Id (null) (Session Id) |
{- "flow_id": "string",
- "component_id": "string",
- "field_name": "string",
- "input_value": "string",
- "max_retries": 0,
- "model_name": "string",
- "provider": "string",
- "session_id": "string"
}{ }Chat with the Langflow Assistant with streaming progress updates.
| flow_id required | string (Flow Id) |
Component Id (string) or Component Id (null) (Component Id) | |
Field Name (string) or Field Name (null) (Field Name) | |
Input Value (string) or Input Value (null) (Input Value) | |
Max Retries (integer) or Max Retries (null) (Max Retries) | |
Model Name (string) or Model Name (null) (Model Name) | |
Provider (string) or Provider (null) (Provider) | |
Session Id (string) or Session Id (null) (Session Id) |
{- "flow_id": "string",
- "component_id": "string",
- "field_name": "string",
- "input_value": "string",
- "max_retries": 0,
- "model_name": "string",
- "provider": "string",
- "session_id": "string"
}null| server_name required | string (Server Name) |
Command (string) or Command (null) (Command) | |
Array of Args (strings) or Args (null) (Args) | |
Env (object) or Env (null) (Env) | |
Headers (object) or Headers (null) (Headers) | |
Url (string) or Url (null) (Url) | |
| property name* additional property | any |
{- "command": "string",
- "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "headers": {
- "property1": "string",
- "property2": "string"
}, - "url": "string"
}null| server_name required | string (Server Name) |
Command (string) or Command (null) (Command) | |
Array of Args (strings) or Args (null) (Args) | |
Env (object) or Env (null) (Env) | |
Headers (object) or Headers (null) (Headers) | |
Url (string) or Url (null) (Url) | |
| property name* additional property | any |
{- "command": "string",
- "args": [
- "string"
], - "env": {
- "property1": "string",
- "property2": "string"
}, - "headers": {
- "property1": "string",
- "property2": "string"
}, - "url": "string"
}nullExecute a workflow with support for sync, stream, and background modes
| background | boolean (Background) Default: false |
| stream | boolean (Stream) Default: false |
| flow_id required | string (Flow Id) |
Inputs (object) or Inputs (null) (Inputs) Component-specific inputs in flat format: 'component_id.param_name': value |
{- "background": false,
- "flow_id": "flow_67ccd2be17f0819081ff3bb2cf6508e60bb6a6b452d3795b",
- "inputs": {
- "ChatInput-abc.input_value": "Hello, how can you help me today?",
- "ChatInput-abc.session_id": "session-123",
- "LLM-xyz.max_tokens": 100,
- "LLM-xyz.temperature": 0.7,
}, - "stream": false
}nullGet status of workflow job by job ID
Job Id (string) or Job Id (string) or Job Id (null) (Job Id) Job ID to query |
{- "flow_id": "string",
- "job_id": "string",
- "object": "response",
- "created_timestamp": "string",
- "status": "queued",
- "errors": [ ],
- "inputs": { },
- "outputs": { }
}Stop a running workflow execution
required | Job Id (string) or Job Id (string) (Job Id) |
Any of string (Job Id) | |
{- "job_id": "string"
}{- "job_id": "string",
- "message": "string"
}HTTP/2 Server-Sent-Event (SSE) endpoint for streaming logs.
Requires authentication to prevent exposure of sensitive log data.
It establishes a long-lived connection to the server and receives log messages in real-time.
The client should use the header "Accept: text/event-stream".
nullRetrieve application logs with authentication required.
SECURITY: Logs may contain sensitive information and require authentication.
| lines_before | integer (Lines Before) Default: 0 The number of logs before the timestamp or the last log |
| lines_after | integer (Lines After) Default: 0 The number of logs after the timestamp |
| timestamp | integer (Timestamp) Default: 0 The timestamp to start getting logs from |
null