Returns all knowledge bases in your organization with pagination support. Use this endpoint to browse your available knowledge bases and their current status.
Your API key for authentication.
Query Parameters
Page number for pagination.
Number of items per page (maximum 100).
Response
Paginated list of knowledge bases. Array of knowledge base objects. Unique identifier for the knowledge base.
Name of the knowledge base.
Description of the knowledge base (if provided).
Current status: "PROCESSING"
, "COMPLETED"
, "FAILED"
, or "DELETED"
.
Type of knowledge base: "FILE"
, "WEB_SCRAPE"
, or "TEXT"
.
Source URLs for web scrape type (comma-separated).
Base URL for web scrape type.
ISO timestamp of creation.
ISO timestamp of last update.
Error message if status is "FAILED"
.
File information for file-type knowledge bases. data.kbs[].file.file_name
Original filename.
data.kbs[].file.file_size
File size in bytes.
data.kbs[].file.file_type
MIME type of the file.
Total number of knowledge bases in the organization.
Will be null
on successful request.
Basic Request
With Pagination
curl -X GET https://api.bland.ai/v1/knowledge \
-H "authorization: YOUR_API_KEY"
{
"data" : {
"kbs" : [
{
"id" : "kb_01H8X9QK5R2N7P3M6Z8W4Y1V5T" ,
"name" : "Company FAQs" ,
"description" : "Frequently asked questions and policies" ,
"status" : "COMPLETED" ,
"type" : "FILE" ,
"created_at" : "2025-01-15T10:30:00Z" ,
"updated_at" : "2025-01-15T10:32:00Z" ,
"file" : {
"file_name" : "company_faqs.pdf" ,
"file_size" : 2048576 ,
"file_type" : "application/pdf"
}
},
{
"id" : "kb_01H8X9QK5R2N7P3M6Z8W4Y1V6U" ,
"name" : "Product Documentation" ,
"description" : "Complete product documentation from website" ,
"status" : "PROCESSING" ,
"type" : "WEB_SCRAPE" ,
"source_urls" : "https://example.com/docs/overview,https://example.com/docs/api" ,
"base_url" : "https://example.com" ,
"created_at" : "2025-01-15T11:00:00Z" ,
"updated_at" : "2025-01-15T11:00:00Z"
}
],
"total" : 15
},
"errors" : null
}