Manage documents
The knowledge-base API lets you add, update, get, list, and delete indexed documents. All operations use HTTP transport.
Operations
addDocument
Create or index a new document by recordId
updateDocument
Replace content and optional metadata
getDocument
Fetch one document and its chunks
listDocuments
Paginated list with optional type filter
deleteDocument
Remove a document by recordId
Common parameters
senderId
Yes
Acting user or service account id
recordId
Yes*
Stable document key (*all except list)
content
Yes*
Text body (*add and update)
type
No
Category label
metadata
No
JSON object β e.g. { source: "help-center" }
limit / offset
No
Pagination for listDocuments
Every document call can carry vectorStore and embedding. A serverConfig set on the client is reused until a call overrides it.
β Vector stores and embeddings
Typical flow
Language guides
Next steps
Last updated