Run Pipeline
Runs the full knowledge pipeline over one or more datasources. response_mode selects a streaming or blocking response.
Authorizations
Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).
Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).
Path Parameters
Knowledge base ID, from List Knowledge Bases.
Body
List of datasource objects to process. The expected item structure depends on datasource_type.
- Local File
- Online Document
- Website Crawl
- Online Drive
Type of the datasource. Determines which fields are expected in datasource_info_list items.
local_file, online_document, website_crawl, online_drive Key-value pairs for pipeline input variables defined in the workflow. Pass {} if the pipeline has no input variables.
Whether to run the published version of the pipeline instead of the current draft. Run the draft to test unpublished changes.
Response mode for the pipeline execution. streaming returns a Server-Sent Events stream, blocking waits and returns the complete result.
streaming, blocking ID of the node to start execution from, from List Datasource Plugins.
Response
Pipeline execution result. Format depends on response_mode: streaming returns a text/event-stream, blocking returns a JSON object.
Complete pipeline execution result. Returned when response_mode is blocking.