Add Knowledge Base Sources
Add sources to a knowledge base
Authorizations
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Path Parameters
The knowledge base id to delete source from.
"kb_1234567890"
Body
Texts to add to the knowledge base.
Files to add to the knowledge base. Limit to 25 files, where each file is limited to 50MB.
URLs to be scraped and added to the knowledge base. Must be valid urls.
[
"https://www.example.com",
"https://www.retellai.com"
]
Response
Unique id of the knowledge base.
"knowledge_base_a456426614174000"
Name of the knowledge base. Must be less than 40 characters.
"Sample KB"
Status of the knowledge base. When it's created and being processed, it's "in_progress". When the processing is done, it's "complete". When there's an error in processing, it's "error".
in_progress
, complete
, error
"in_progress"
Sources of the knowledge base. Will be populated after the processing is done (when status is "complete").
Whether to enable auto refresh for the knowledge base urls. If set to true, will retrieve the data from the specified url every 12 hours.
true
Last refreshed timestamp (milliseconds since epoch). Only applicable when enable_auto_refresh is true.
1703413636133
Was this page helpful?