Resolido Docs
Knowledge

Add knowledge

POST
/knowledge-sources

Add knowledge: plain text, a Q&A pair, a website (pages are mapped automatically) or a file from a URL. Owner/admin.

Authorization

bearer knowledge:write
headerAuthorizationBearer <token>

API key (rsl_live_…) from Settings → Developers.

Scope: knowledge:write

Request Body

application/json
  1. body
type*string
Value in"text""qa""url""file"
name?string

Defaults to the question, domain or file name.

Length2 <= length <= 200
content?string

type=text: the text (policies, FAQ, product info).

Length10 <= length <= 100000
question?string

type=qa

Length3 <= length <= 500
answer?string

type=qa

Length1 <= length <= 10000
url?string

type=url: https website to read.

Formaturi
crawlProfile?string

type=url

Default"small_web"
Value in"small_web""large_eshop"
fileUrl?string

type=file: https URL of a pdf, doc, docx, txt, csv, md or json (max 10 MB).

Formaturi
fileName?string

type=file: name with extension if the URL has none.

Lengthlength <= 200
agentIds?array<>

Agents that should use this knowledge.

Itemsitems <= 50
Default[]

Response Body

Success

application/json
  1. response
id*string
status*string
agentIds*array<string>
selectedPages?array<string>
next*string
curl -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"}