config.kbStoreIds whenever a caller asks something your files may answer. Knowledge Base for AI Agents explains how agents use it.
Endpoints
The workspace comes from your API key, so no endpoint asks you for a workspace id.
From files to an assistant that uses them
1
Create the knowledge base with its files
One call creates it and uploads its first files. The answer comes back once the files are stored, each one
processing.2
Wait until it is ready
Read the knowledge base until
processing_count is 0. A small file is usually ready within a minute; a large one can take several minutes.3
Attach it to an assistant
Add its id to the assistant’s
kbStoreIds. A PATCH replaces the whole list, so send every knowledge base the assistant should search.Uploading files
Send the files asmultipart/form-data, each one under the field name files (curl -F files=@prices.pdf). One request can carry:
- Up to 25 files, together up to 25 MB. Send more in further requests. A larger request is refused with
413 PAYLOAD_TOO_LARGEbefore anything is stored. - Any of these types, told apart by the file name’s extension: PDF (
.pdf), Word (.docx,.doc), OpenDocument (.odt), Rich Text (.rtf), EPUB (.epub), plain text (.txt), Markdown (.md,.markdown), HTML (.html,.htm), XML (.xml), JSON (.json), YAML (.yaml,.yml), Excel (.xlsx) and CSV (.csv). Verbeo then checks the file’s real format from its bytes.
processing. Verbeo then reads it in the background. Read the file with GET /knowledge-base/files/{fileId}, or its knowledge base, until it is ready. What your plan counts is the files, their size and their passages (plan limits).
A file’s status
A file that ends in
error carries one of these error_code values:
The knowledge base object
What your assistants are told this knowledge base covers, so they know when to search it. Verbeo writes it from the files once they are ready; you can edit it.
null until a file is ready: assistants then use a general description.Who wrote the description last:
generated (Verbeo) or manual (you). Verbeo never rewrites a manual one on its own.true when files changed after you wrote the description yourself: check that it still names what the files cover.A fingerprint of the files the description was written from. Verbeo’s own; ignore it.
Not used by the API; ignore it. An assistant searches a knowledge base only while it is in its
kbStoreIds.Its files: ready, processing and failed. A replacement still on its way is not counted: the file it replaces is.
The file object
Passages saved so far while it is processing:
chunks_saved of chunk_count is its progress.The SHA-256 of its bytes, as 64 hex characters. The same bytes cannot be uploaded twice to one knowledge base.
What could not be read from a ready file, such as a page with no text. Empty when everything was read.
On a replacement: the file it takes the place of once it is ready.
The user who uploaded it. A file uploaded with an API key names the workspace’s owner.
Plan limits
A failed file does not count toward the files in a knowledge base, but it still uses storage until you delete it.
GET /knowledge-base/usage answers your plan’s limits and what you use of them.
Who may do what
An API key acts as the owner of its workspace, so it may read, create, change and delete every knowledge base and file in it. A knowledge base or a file in another workspace answers404 NOT_FOUND, exactly like one that does not exist.
Errors
Every error has the published shape,{ "success": false, "error": { "code", "message" } }. A refused upload’s message starts with the file’s name. These codes are this API’s own:
Errors every route can give
Authentication
Every endpoint takes a private workspace API key (vbr_…) as a Bearer token. Public widget keys (vbr_pub_…) are rejected with 403 FORBIDDEN: they ship inside web pages, where anyone can read them. See Authentication.