DataSource

获取数据源同步进度

Changed on

Retrieve a specific sync log entry

get/datasource/logs/{log_id}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/datasource/logs/{log_id}
  • Auth
    none declared

Path parameters

log_idstring required

Sync log ID

Response

OK

created_atstring

Creation timestamp (usually same as StartedAt)

data_source_idstring

Reference to the data source

error_messagestring

Error details if status is "failed"

finished_atstring

Sync completion time

idstring

Unique identifier

items_createdinteger

New items created in knowledge base

items_deletedinteger

Items deleted from knowledge base

items_failedinteger

Items that failed to sync

items_skippedinteger

Items skipped (no changes detected)

items_totalinteger

Total items fetched from source

items_updatedinteger

Existing items updated

resultobject

Detailed sync result (JSON-encoded)

started_atstring

Sync start time

statusstring

Sync status: running, success, partial, failed, canceled

tenant_idinteger

Workspace ID

updated_atstring

Last update timestamp

Changes