Skip to main content
POST
Add a website source

Authorizations

X-API-KEY
string
header
required

Path Parameters

agentId
string
required

Body

application/json

A website to crawl and add to the agent's knowledge base.

name
string
required

Display name of the source

Minimum string length: 1
sourceUrl
string
required

URL the crawl starts from. If no scheme is given, https is used

Minimum string length: 1
targetEnvSandbox
boolean | null

Whether the source is used in sandbox

targetEnvPrerelease
boolean | null

Whether the source is used in pre-release

targetEnvLive
boolean | null

Whether the source is used in live

variantIds
string[] | null

Variants the source applies to. An empty list or null applies it to all variants

pageUrls
string[] | null

Pages fetched on every sync, even if the crawler does not reach them through links. Each must be on the same host as sourceUrl (subdomains count as different hosts). Pinned pages do not count towards pageLimit

Maximum array length: 100
pageLimit
integer | null

Maximum number of pages the crawl visits. If omitted, the crawler default is used

Required range: 1 <= x <= 100
syncInterval
integer | null

Interval between scheduled re-crawls, in seconds (1 to 30 days). If omitted or null, the site is not re-crawled on a schedule

Required range: 86400 <= x <= 2592000

Response

Successful response

The saved source, and whether a crawl was queued.

source
object
required

The saved source

syncRequested
boolean
required

False if the source was saved but a required crawl could not be queued. Creating a website source always requires a crawl; an update requires one only when sourceUrl changes or a new page is pinned. True otherwise

Last modified on November 25, 2026