Add Knowledge Base File
Adds one file to the knowledge base of the Pearl, next to the files it already has. Send it as multipart/form-data, in a field named file. Accepted formats: .pdf, .docx and .txt.
The knowledge base of a Pearl holds up to 50 files and 25 MB in total, and up to 1,000,000 characters of text for a voice Pearl or 2,000,000 for a text Pearl. The Pearl must have a published version: the file is added to it.
The file is indexed in the background. It appears in knowledgeBaseFiles of Get Pearl Settings once the Pearl can use it, usually within a minute.
The file is added to the published version only. If a new version of the Pearl was already being edited on the platform before this call, that version still has the old file list, and publishing it replaces the published list: the file disappears. To avoid this, add files before you start editing the Pearl on the platform, or add them again once the new version is published.
Authorizations
Specify the authorization token.
For more information, check out the Authorization Guide.
Body
The file to add. Required.
Constraints:
- Format: .pdf, .docx or .txt, with text that can be read (a scanned PDF without text is refused).
- File name: up to 200 characters. It is kept and shown in
knowledgeBaseFilesof Get Pearl Settings. - The knowledge base of the Pearl holds up to 50 files and 25 MB in total, and up to 1,000,000 characters of text for a voice Pearl or 2,000,000 for a text Pearl.
Response
The file was received and is being indexed. Its id is the one to use to download or delete it.
A file of the knowledge base of a Pearl.

