Create crawl job
Create a crawl job to crawl the given URL with specified depth and page limits.
Headers
xi-api-key
Request
This endpoint expects an object.
url
URL to a page of documentation that the agent will have access to in order to interact with users.
max_depth
Maximum depth for crawling (1-5), defaults to 3.
max_pages
Maximum number of pages to crawl (1-10,000), defaults to 1000.
pattern
If set, only URLs that match this pattern are included.
sitemap_urls
List of URLs to crawl from sitemap (optional, overrides automatic URL discovery).
parent_folder_id
If set, the created document or folder will be placed inside the given folder.
enable_auto_sync
Whether to enable auto-sync for this URL document.
auto_remove
Whether to automatically remove the document if the URL becomes unavailable. Only applicable when auto-sync is enabled.
Response
Successful Response
id
type
root_folder_id
status
created_at
folder_path
The folder path segments leading to the root folder, from root to parent folder.
Errors
422
Crawl Jobs Create Request Unprocessable Entity Error