Get Source
Returns one source as stored.
last_synced_at, sync_policy, and sync_workflow are always null here. Read the schedule with Get Sync Policy, follow runs with Get Source Run or List Source Runs, and read last_synced_at from List Sources. Do not overwrite a List Sources result with this response.
Authorization
Path parameters
…/knowledge-fs/spaces/<knowledge base ID>), and the segment after /datasets/new/ in the address bar.Responses
connectionId when binding another source to the same connection. null when unbound.true when the source holds a credential reference of its own. null when it holds none, as with sources bound to a connection.completed or zero_results) or completed import. Set by List Sources only. null elsewhere and when the source has never synced.parameters; connection-managed settings need not appear here. Credential-like keys are removed. Do not copy the entire object when creating another source.active, syncing, error, or disabled. Most operations return the stored value. List Sources derives it from the latest sync run:
failedorcanceledrun:errorcompletedorzero_resultsrun:active- Any live run:
syncing
disabled is never overridden.
null elsewhere and when no schedule exists. Read it on its own with Get Sync Policy and change it with Update Sync Policy.The source's active sync or import run (crawl-import, online-document-import, or online-drive-import), or else its latest sync run. List Sources sets it when a run is active or newer than the source. Update Source sets it when the call started a sync. null otherwise. Crawl previews and imports from them never appear here.
To follow one run, call Get Source Run with its id.
web (website crawl), connector (online document or online drive), upload, or object-storage.
For a connector source, metadata.providerKind is online-document or online-drive. For a web source it is website.
Dify fills upload and object-storage sources.
web sources. connector://<connection_id> for Dify-created connector sources.expectedVersion on Update Source, as expectedRevision on Delete Source, and as expectedSourceVersion on Update Sync Policy.