---
title: "Run Datasource Node"
method: POST
path: "/datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run"
tags: ["Knowledge Pipeline"]
---

# Run Datasource Node

`POST /datasets/{dataset_id}/pipeline/datasource/nodes/{node_id}/run`

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

## Path parameters

- `dataset_id` string, uuid, required
- `node_id` string, required

## Request body

- object
  - `inputs` object, required — Input variables for the datasource node.
  - `datasource_type` 'online_document' | 'local_file' | 'website_crawl' | 'online_drive', required — Type of the datasource.
  - `credential_id` string, nullable — ID of the credential to authenticate with the datasource, from the `credentials` array of [List Datasource Plugins](/en/api-reference/knowledge-pipeline/list-datasource-plugins).
  - `is_published` boolean, required — Whether to run the published version of the node instead of the draft.

## Response `200`

Streaming response with node execution events.

## Other responses

- `400` — `invalid_param` : The knowledge base has no processing pipeline configured, or the request body failed validation.
- `403` — `forbidden` : API access is not enabled for this knowledge base.
- `404` — `not_found` : No knowledge base matches `dataset_id`.

---

[API](https://skmtc.dev/langgenius/apis/dify-service-api.md) · [All operations](https://skmtc.dev/langgenius/apis/dify-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langgenius/dify-service-api/revisions/f76a5e9db35c/schema)
