Skip to main content
POST
Upload files
Uploads files to a knowledge base in one multipart/form-data request. The answer comes once they are stored; Verbeo then reads them in the background. Uploading files has the file types and how a request is checked.
  • Up to 25 files, together up to 25 MB, each under the field name files.
  • All or nothing: if any file is refused, none is kept, and the error names the file.
  • Each file is checked against your plan: its size, the files in the knowledge base, your storage and passages, and duplicates.

Path parameters

string
required
UUID of the knowledge base.

Body

file
required
A file to upload, with its name. Repeat the field for each file.

Request

Do not set Content-Type yourself: curl’s -F, FormData and requests’ files= set it with the form’s boundary.

Response

201 Created: files, a file object for each file, in the order you sent them, each processing.
Read each file with GET /knowledge-base/files/{fileId}, or the knowledge base, until it is ready.

Errors

Every refusal keeps nothing of the request: send it again once the named file is fixed or left out.