List Source Connections
Lists the connections of this knowledge base, oldest first. Pass a connection’s id as connectionId to Create Source to add a source that reads through it.
The list holds a connection only after a source from that provider has been added to the knowledge base in Dify. To use a new provider, add its first source in Dify. Each knowledge base has its own connections. Pick one whose status is active and whose provider_id and configuration match the provider and credential you want.
For the steps to add a source, see Add a Source.
1 min read
get/knowledge-fs/spaces/{knowledge_base_id}/source-connections
Request example
Response
get/knowledge-fs/spaces/{knowledge_base_id}/source-connections
Authorization
Path parameters
Knowledge base ID: the last segment of the Service API endpoint shown in the knowledge base's API Access dialog (
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.Query parameters
Responses
application/json
One page of connections.