Skip to main content
Version: v3

Start crawling and discover pages for training

POST 

/knowledge-bases/crawler

Starts a website crawl that discovers pages for later AI training. WHEN TO USE: use this when you need to scan a site before training; use trainDiscoveredUrls to ingest selected pages; use getCrawlingStatusForLatestOperation to poll progress. RETURNS: the discovery operation id, current status, and the URL being crawled.

Request

Version stringrequired

API Version

Available optionsv3
application/json

Bodyrequired

    locationIdstringrequired

    Location ID as string

    urlstringrequired

    Website URL as string

    optionstringrequired

    Mode as string

    Available optionsExactPathDomain
    knowledgeBaseIdstringrequired

    knowledge base ID as string

    preSelectedUrlsstring[]

    Pre-selected URLs from sitemap preview — when provided, only these URLs are crawled

    autoTrainboolean

    Automatically train the discovered URLs after crawling

application/json

Crawling and discovery started successfully

Schema
    operationIdstringrequired

    Operation ID for tracking the discovery process

    statusstringrequired

    Current status of the website discovery operation

    Available optionsPendingProcessingSuccessfulFailedExistingRestrictedCancelledAbortedTraining
    urlstringrequired

    The URL being discovered/crawled