Knowledge Pipeline

Run Datasource Node

Runs a single datasource node in the knowledge pipeline and streams its execution events.

post/datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run

Request

  • Base URL
    https://api.dify.ai/v1
  • URL
    https://api.dify.ai/v1/datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run
  • Auth
    HTTP bearer

Path parameters

dataset_idstring uuid required

Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.

node_idstring required

ID of the datasource node to run, from List Datasource Plugins.

Request body

credential_idstring nullable

ID of the credential to authenticate with the datasource, from the credentials array of List Datasource Plugins.

datasource_type'online_document' | 'local_file' | 'website_crawl' | 'online_drive' required

Type of the datasource.

inputsobject required

Input variables for the datasource node.

is_publishedboolean required

Whether to run the published version of the node instead of the draft.

Response

Streaming response with node execution events.

Changes

No recorded changes to this operation across all 17 revisions of this API.