Skip to main content
post/datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run
Request example
Response
post/datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run

Authorization

Authorizationstringheaderrequired#

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

dataset_idstringrequired#
Knowledge base ID, from List Knowledge Bases. For a scoped key, copy the ID from the Dify URL.
node_idstringrequired#
ID of the datasource node to run, from List Datasource Plugins.

Body

application/json
credential_idstring#
ID of the credential to authenticate with the datasource, from the credentials array of List Datasource Plugins.
datasource_typeenum<string>required#
Type of the datasource.
Options:online_documentlocal_filewebsite_crawlonline_drive
inputsobjectrequired#
Input variables for the datasource node.
is_publishedbooleanrequired#
Whether to run the published version of the node instead of the draft.

Responses

text/event-stream
Streaming response with node execution events.