Knowledge
Add knowledge
POST
Add knowledge: plain text, a Q&A pair, a website (pages are mapped automatically) or a file from a URL. Owner/admin.
bearer knowledge:writeheader
AuthorizationBearer <token>API key (rsl_live_…) from Settings → Developers.
Scope: knowledge:write
application/json- body
type*stringValue in
"text""qa""url""file"name?stringDefaults to the question, domain or file name.
Length
2 <= length <= 200content?stringtype=text: the text (policies, FAQ, product info).
Length
10 <= length <= 100000question?stringtype=qa
Length
3 <= length <= 500answer?stringtype=qa
Length
1 <= length <= 10000url?stringtype=url: https website to read.
Format
uricrawlProfile?stringtype=url
Default
"small_web"Value in
"small_web""large_eshop"fileUrl?stringtype=file: https URL of a pdf, doc, docx, txt, csv, md or json (max 10 MB).
Format
urifileName?stringtype=file: name with extension if the URL has none.
Length
length <= 200agentIds?array<>Agents that should use this knowledge.
Items
items <= 50Default
[]Success
application/json- response
id*stringstatus*stringagentIds*array<string>selectedPages?array<string>next*stringcurl -X POST "https://example.com/knowledge-sources" \ -H "Content-Type: application/json" \ -d '{ "type": "text" }'{ "id": "string", "status": "string", "agentIds": [ "string" ], "selectedPages": [ "string" ], "next": "string"}