Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Manage documents

The knowledge-base API lets you add, update, get, list, and delete indexed documents. All operations use HTTP transport.

Operations

Method
Action

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

Field
Required
Description

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

Language
Guide

JavaScript / TypeScript

Dart / Flutter

Python

Next steps

Last updated