跳到导航

List Knowledge Sources

List all knowledge sources for the current workspace

请求头

xi-api-keystring可选
xi-workspace-idstring or null可选
The customer workspace a reseller's API key acts on.

响应

成功响应

_idstring
source_typeenum可选默认为 file
Type of knowledge source.
允许的值:
source_urlstring or null可选
last_scraped_at_unixinteger or null可选
original_filenamestring可选默认为
content_typestring可选默认为
file_size_bytesinteger可选默认为 0
statusenum可选默认为 processing

Processing status for knowledge sources.

  • processing: the file or site is being read.
  • ready: done; the results are available.
  • error: it failed and can be retried.

See progress for detail.

允许的值:
error_messagestring or null可选
failure_reasonenum or null可选
Why processing a knowledge source failed.
crawl_entire_siteboolean可选默认为 false
scraped_pages_countinteger可选默认为 0
content_previewstring or null可选
processing_started_at_unixinteger or null可选
created_at_unixinteger可选

Unix timestamp (seconds since epoch)

updated_at_unixinteger可选

Unix timestamp (seconds since epoch)

错误

422
Unprocessable Entity Error