Knowledge Base
List Knowledge Bases
Call (V2)
Phone Number
Agent
Retell LLM Response Engine (for single / multi prompt agent)
Knowledge Base
Batch call
Account
Custom Telephony
Custom LLM
Knowledge Base
List Knowledge Bases
List all knowledge bases
GET
/
list-knowledge-bases
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
});
async function main() {
const knowledgeBaseResponses = await client.knowledgeBase.list();
console.log(knowledgeBaseResponses);
}
main();
[
{
"knowledge_base_id": "knowledge_base_a456426614174000",
"knowledge_base_name": "Sample KB",
"status": "in_progress",
"knowledge_base_sources": [
{
"type": "document",
"source_id": "<string>",
"filename": "<string>",
"file_url": "<string>"
}
],
"enable_auto_refresh": true,
"last_refreshed_timestamp": 1703413636133
}
]
Authorizations
Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
Response
200
application/json
Successfully retrieved all knowledge bases.
The response is of type object[]
.
Was this page helpful?
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
});
async function main() {
const knowledgeBaseResponses = await client.knowledgeBase.list();
console.log(knowledgeBaseResponses);
}
main();
[
{
"knowledge_base_id": "knowledge_base_a456426614174000",
"knowledge_base_name": "Sample KB",
"status": "in_progress",
"knowledge_base_sources": [
{
"type": "document",
"source_id": "<string>",
"filename": "<string>",
"file_url": "<string>"
}
],
"enable_auto_refresh": true,
"last_refreshed_timestamp": 1703413636133
}
]