Skip to main content
This guide gives an assistant a knowledge base entirely through the API: one call to create it with its files, a loop that waits until Verbeo has read them, and one call to attach it. It then shows how to keep it current. Every call takes your private API key as a Bearer token (Authentication).

1. Create the knowledge base with its files

Send its name and its files as a multipart form, each file under the field name files. One request takes up to 25 files, together up to 25 MB.
The answer comes once the files are stored: kb.files lists them, each processing. If one is refused — a duplicate, a file over your plan’s size — nothing is created, and error.message starts with that file’s name (errors).

2. Wait until it is ready

Verbeo reads each file in the background. Read the knowledge base until processing_count is 0; then ready_count files are searchable and error_count failed.
A failed file says why in its error_code and error_message: list the files to see them.

3. Check what a caller’s question finds

Before a real call, test a search with a question your callers ask:
A passage with "verdict": "sent" is what the assistant would get.

4. Attach it to an assistant

Add the knowledge base’s id to the assistant’s kbStoreIds. A PATCH replaces the list, so send every knowledge base the assistant should search:
From its next call, the assistant searches it whenever a caller asks something your files may answer.

Keep it up to date

Name your files for what they hold (prices-2027.pdf, not doc1.pdf): each passage starts with its file’s name, which helps a search find it. Write a knowledge base that answers well has more.