curl -X GET https://api.bland.ai/v1/knowledge \
-H "authorization: YOUR_API_KEY"
curl -X GET "https://api.bland.ai/v1/knowledge?page=2&limit=10" \
-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
}
Knowledge Bases
List Knowledge Bases
Retrieves a paginated list of knowledge bases for the authenticated organization.
GET
/
v1
/
knowledge
curl -X GET https://api.bland.ai/v1/knowledge \
-H "authorization: YOUR_API_KEY"
curl -X GET "https://api.bland.ai/v1/knowledge?page=2&limit=10" \
-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
}
Returns all knowledge bases in your organization with pagination support. Use this endpoint to browse your available knowledge bases and their current status.
Docs for agents: llms.txt
Headers
string
required
Your API key for authentication.
Query Parameters
number
default:"1"
Page number for pagination.
number
default:"20"
Number of items per page (maximum 100).
Response
object
Paginated list of knowledge bases.
array
Array of knowledge base objects.
string
Unique identifier for the knowledge base.
string
Name of the knowledge base.
string
Description of the knowledge base (if provided).
string
Current status:
"PROCESSING", "COMPLETED", "FAILED", or "DELETED".string
Type of knowledge base:
"FILE", "WEB_SCRAPE", or "TEXT".string
Source URLs for web scrape type (comma-separated).
string
Base URL for web scrape type.
string
ISO timestamp of creation.
string
ISO timestamp of last update.
string
Error message if status is
"FAILED".number
Total number of knowledge bases in the organization.
null
Will be
null on successful request.curl -X GET https://api.bland.ai/v1/knowledge \
-H "authorization: YOUR_API_KEY"
curl -X GET "https://api.bland.ai/v1/knowledge?page=2&limit=10" \
-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
}
Docs for agents: llms.txt
Was this page helpful?