Skip to main content
POST
Add Knowledge Base

Example: Add Text Document

Example: Add URLs

Example: Crawl Sitemap

URL and sitemap sources may take time to process. Check document status via GET /agents/{agentId}/kb/{docId}.
Set refreshRate to automatically re-crawl URL sources. Options: 3d, 7d, or never.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

Body

application/json
name
string
required
sourceType
enum<string>
required
Available options:
doc,
url,
sitemap
content
string
metadata
object
tags
string[]
refreshRate
enum<string>
default:never
Available options:
3d,
7d,
never
sitemapUrl
string
urls
string[]
maxPages
number
scrapeContent
boolean

Response

Successful response

success
boolean
required
message
string
required
data
any