Add Url Source
Add a URL as a knowledge source
Headers
xi-api-key
xi-workspace-id
The customer workspace a reseller's API key acts on.
Request
This endpoint expects an object.
url
The HTTPS page or site to read.
crawl_entire_site
Crawl the whole site instead of only the page at url.
Response
Successful Response
id
The knowledge source's ID.
source_type
Whether the source is an uploaded file or a web page or site.
Allowed values:
source_url
The page or site URL for 'url' sources.
last_scraped_at_unix
When the URL was last read, as a Unix timestamp in seconds.
original_filename
The uploaded file’s name for ‘file’ sources; empty for URLs.
content_type
The uploaded file’s MIME type; empty for URLs.
file_size_bytes
The uploaded file’s size in bytes; 0 for URLs.
status
Where processing stands: ‘processing’, ‘ready’ or ‘error’.
Allowed values:
error_message
Why processing failed, when status is 'error'.
failure_reason
Machine-readable cause of the failure, when status is ‘error’.
crawl_entire_site
Whether the whole site was crawled rather than the single page at source_url.
scraped_pages_count
How many pages were read for 'url' sources.
content_preview
A short plain-text preview of the content.
processing_started_at_unix
When processing started, as a Unix timestamp in seconds.
created_at_unix
When this was created, as a Unix timestamp in seconds.
updated_at_unix
When this was last updated, as a Unix timestamp in seconds.
Errors
422
Unprocessable Entity Error