Skip to main content
A knowledge base is a set of documents an assistant can search during a call: price lists, FAQs, policies, manuals. You upload files; Verbeo reads each one, splits it into short passages and indexes them by meaning. An assistant searches the knowledge bases in its 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.
The guide Add a knowledge base with the API walks through the same steps in Node.js and Python.

Uploading files

Send the files as multipart/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_LARGE before 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.
A request is all or nothing. Each file is checked against your plan’s limits in turn, and a second copy of the same bytes counts as a duplicate. If any file is refused, or a file cannot be stored, none of the request’s files is kept, and the error names the file it is about:
Fix that file, or leave it out, and send the request again. The answer comes once the files are stored, not once they are read: each file is 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 text or a list of questions and answers needs no file: add it as text, and Verbeo saves it as a Markdown file of the knowledge base.

A file’s status

A file that ends in error carries one of these error_code values:

The knowledge base object

string
required
UUID of the knowledge base: what goes in an assistant’s kbStoreIds.
string
required
The workspace it belongs to: your API key’s.
string
required
Its name, 1 to 255 characters.
string | null
required
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.
string
required
Who wrote the description last: generated (Verbeo) or manual (you). Verbeo never rewrites a manual one on its own.
boolean
required
true when files changed after you wrote the description yourself: check that it still names what the files cover.
string | null
required
A fingerprint of the files the description was written from. Verbeo’s own; ignore it.
string | null
required
Not used by the API; ignore it. An assistant searches a knowledge base only while it is in its kbStoreIds.
object | null
required
Verbeo’s own; ignore it.
number
required
Its files: ready, processing and failed. A replacement still on its way is not counted: the file it replaces is.
number
required
Files assistants can search.
number
required
Files Verbeo is still reading. 0 means every file has finished, ready or failed.
number
required
Files that could not be read.
number
required
Passages its ready and processing files hold: what counts toward the plan’s passages.
string
required
ISO 8601 timestamp with microseconds and a UTC offset.
string
required
The last change, in the same format.

The file object

string
required
UUID of the file.
string
required
UUID of its knowledge base.
string
required
The file’s name as you uploaded it.
string
required
Where Verbeo stores it. Verbeo’s own; use display_name.
string
required
Its content type, from the extension: application/pdf, text/markdown, text/csv…
number
required
Its size in bytes.
string
required
processing, ready or error (a file’s status); uploading for a link upload not yet confirmed.
string | null
required
Why it failed, when status is error (table above).
string | null
required
The same, as a sentence you can show a person.
number | null
required
Its passages, once it has been read.
number
required
Passages saved so far while it is processing: chunks_saved of chunk_count is its progress.
string | null
required
The SHA-256 of its bytes, as 64 hex characters. The same bytes cannot be uploaded twice to one knowledge base.
number | null
required
Characters of text read from it.
string[] | null
required
What could not be read from a ready file, such as a page with no text. Empty when everything was read.
string | null
required
On a replacement: the file it takes the place of once it is ready.
string | null
required
When it was last read.
number
required
How many times Verbeo has started reading it.
string | null
required
For a link upload still uploading: when its link stops working.
string | null
required
The user who uploaded it. A file uploaded with an API key names the workspace’s owner.
string
required
ISO 8601 timestamp.
string
required
The last change.

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 answers 404 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.