- API reference
- Knowledge sources
Replace a file's text for Otto
PUThttps://app.notert.io/api/v1/knowledge-sources/{id}/text
Replaces what a file Otto reads holds, as a file's Replace on the Knowledge page does, and indexes it again. A website is NOT_FOUND.
A token with knowledge:write. How to send one
Request
curl -X PUT https://app.notert.io/api/v1/knowledge-sources/3c5e7a9b-1d2f-4a6b-8c0e-2f4a6c8e0b17/text \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "refunds.md",
"text": "Refunds take ten days."
}'Response 200
{
"id": "3c5e7a9b-1d2f-4a6b-8c0e-2f4a6c8e0b17",
"kind": "website",
"name": "docs.example.com",
"url": "https://docs.example.com/",
"state": "ready",
"failure": null,
"pages": {
"indexed": 120,
"failed": 2,
"skipped": 6,
"queued": 0
},
"crawledAt": "2026-11-20T08:12:00.000Z"
}Path parameters
idstringRequiredThe file's id.
At most 64 characters.
Body
namestringRequiredThe name the Knowledge page lists it by and Otto's answers cite it by, such as pricing-faq.md.
At least 1 character. At most 200 characters.
textstringRequiredWhat Otto reads, as plain text or Markdown, up to 200,000 characters; a longer document is uploaded as a file on the Knowledge page.
At least 1 character. At most 200000 characters.
Response 200
idstringThe source's id.
kindstringWhat the source is: a website the team added, a file it uploaded, or what Notert connects by itself, the published changelog (changelog), completed requests (completed) and help articles (help).
One ofwebsitefilechangelogcompletedhelpnamestringA file's name as uploaded, or a website's address, as the team added it.
urlstring or nullA website's address. Null for a file or a source Notert connects.
statestringWhere the source stands: crawling, paused, ready (every page it found settled) or failed (its first page couldn't be read, or getting it ready for Otto ran out of tries).
One ofcrawlingpausedreadyfailedfailurestring or nullWhy the source failed, such as unreachable, blocked or not found, or not indexed when getting what was read ready for Otto ran out of tries. Null unless it failed.
One ofunreachableblockednot foundno accessrefusedserver errorrate limitednot a pagetoo largerobotsemptyelsewherenot a product sitenot indexedpagesobjectThe source's pages by where each stands.
indexedintegerThe pages Otto answers from.
failedintegerThe pages that couldn't be read.
skippedintegerThe pages left out: those the website's robots.txt keeps out or that ask not to be indexed.
queuedintegerThe pages still to read.
crawledAtdate-time or nullWhen the source last finished being read. Null before it has.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
FORBIDDENThe teammate who holds this API token's secret can't change Otto's knowledge. Only an owner or admin can. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't change what Otto reads or its description. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 409
LIMIT_REACHEDThe workspace keeps 20 websites and files for Otto, as many as it may. Its data holdslimit. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.