Skip to main content
GET
Get a knowledge base source

Authorizations

X-API-KEY
string
header
required

Path Parameters

agentId
string
required
sourceId
string
required

Response

Successful response

A knowledge base source, with a single status derived from the processing state of its documents.

id
string
required

Unique source identifier

accountId
string
required

Account this source belongs to

name
string
required

Display name of the source

createdAt
string
required

When the source was created

createdBy
string
required

Email of the user who created the source

sourceType
string
required

Source type (file, website)

documentCount
integer
required

Number of live documents ingested from the source

status
enum<string>
required

pending: no documents yet and no sync has started. in_progress: a sync is running or documents are still being processed. completed: all documents are searchable. completed_with_errors: some documents are searchable, but others failed or the website's latest crawl failed. failed: all documents failed, or the sync failed and nothing is searchable.

Available options:
pending,
in_progress,
completed,
completed_with_errors,
failed
documentCounts
object
required

How many documents are in each stage

failedDocuments
object[]
required

Documents that failed processing, and why

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

projectId
string | null

Agent (project) this source belongs to

updatedAt
string | null

When the source was last updated

updatedBy
string | null

Email of the user who last updated the source

sourceUrl
string | null

URL a website source is crawled from

syncInterval
integer | null

Seconds between scheduled syncs; null when not scheduled

webScrapeConfig
object | null

How a website source is crawled

latestSyncRun
object | null

The source's most recent sync run

Last modified on November 25, 2026