The /build endpoints are used by Langflow's frontend visual editor code.
+
The /build endpoints are used by Langflow's frontend visual editor code.
These endpoints are part of the internal Langflow codebase.
Don't use these endpoints to run flows in applications that use your Langflow flows.
To run flows in your apps, see Flow trigger endpoints.
The /build endpoints support Langflow's frontend code for building flows in the Langflow visual editor.
@@ -68,13 +68,13 @@ You might need to use or understand these endpoints when contributing to the Lan
Result
_10{"event": "vertices_sorted", "data": {"ids": ["ChatInput-XtBLx"], "to_run": ["Prompt-x74Ze", "ChatOutput-ylMzN", "ChatInput-XtBLx", "OpenAIModel-d1wOZ"]}}
_10{"event": "add_message", "data": {"timestamp": "2025-03-03T17:42:23", "sender": "User", "sender_name": "User", "session_id": "d2bbd92b-187e-4c84-b2d4-5df365704201", "text": "Tell me a story", "files": [], "error": false, "edit": false, "properties": {"text_color": "", "background_color": "", "edited": false, "source": {"id": null, "display_name": null, "source": null}, "icon": "", "allow_markdown": false, "positive_feedback": null, "state": "complete", "targets": []}, "category": "message", "content_blocks": [], "id": "28879bd8-6a68-4dd5-b658-74d643a4dd92", "flow_id": "d2bbd92b-187e-4c84-b2d4-5df365704201"}}
_10// ... Additional events as the flow executes ...
_10{"event": "end", "data": {}}
-
The /build/$FLOW_ID/events endpoint has a stream query parameter that defaults to true.
+
The /build/$FLOW_ID/events endpoint has a stream query parameter that defaults to true.
To disable streaming and get all events at once, set ?stream=false.
_10 "$LANGFLOW_URL/api/v1/build/123e4567-e89b-12d3-a456-426614174000/events?stream=false" \
_10 -H "accept: application/json" \
_10 -H "x-api-key: $LANGFLOW_API_KEY"
| Header | Info | Example |
|---|
| Content-Type | Required. Specifies the JSON format. | "application/json" |
| accept | Optional. Specifies the response format. | "application/json" |
| x-api-key | Optional. Required only if authentication is enabled. | "sk-..." |
-
| Parameter | Type | Description |
|---|
| inputs | object | Optional. Input values for flow components. |
| data | object | Optional. Flow data to override stored configuration. |
| files | array[string] | Optional. List of file paths to use. |
| start_component_id | string | Optional. ID of the component where the execution should start. Component id values can be found in Langflow JSON files |
| stop_component_id | string | Optional. ID of the component where the execution should stop. Component id values can be found in Langflow JSON files. |
| log_builds | Boolean | Whether to record build logs. Default: Enabled (true). |
+
| Parameter | Type | Description |
|---|
| inputs | object | Optional. Input values for flow components. |
| data | object | Optional. Flow data to override stored configuration. |
| files | array[string] | Optional. List of file paths to use. |
| start_component_id | string | Optional. ID of the component where the execution should start. Component id values can be found in Langflow JSON files |
| stop_component_id | string | Optional. ID of the component where the execution should stop. Component id values can be found in Langflow JSON files. |
| log_builds | Boolean | Whether to record build logs. Default: Enabled (true). |
The /build endpoint accepts optional values for start_component_id and stop_component_id to control where the flow run starts and stops.
Setting stop_component_id for a component triggers the same behavior as clicking Run component on that component in the visual editor: The specified component and all dependent components leading up to that component will run.
diff --git a/api-files.html b/api-files.html
index 7c7defb08d..18c091992b 100644
--- a/api-files.html
+++ b/api-files.html
@@ -23,8 +23,8 @@
-
-
+
+