curl -X GET "https://your-domain.com/api/v1/knowledge/?page=1" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "kb_123abc",
"name": "Product Documentation",
"description": "Knowledge base for product documentation and guides",
"user_id": "user_456def",
"data": {},
"write_access": true,
"created_at": 1678901234,
"updated_at": 1678901234
},
{
"id": "kb_789xyz",
"name": "Technical Support",
"description": "Support articles and troubleshooting guides",
"user_id": "user_456def",
"data": {},
"write_access": false,
"created_at": 1678905678,
"updated_at": 1678905678
}
],
"total": 2
}
Knowledge
List Knowledge Bases
Retrieve paginated list of knowledge bases with access control
GET
/
api
/
v1
/
knowledge
curl -X GET "https://your-domain.com/api/v1/knowledge/?page=1" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "kb_123abc",
"name": "Product Documentation",
"description": "Knowledge base for product documentation and guides",
"user_id": "user_456def",
"data": {},
"write_access": true,
"created_at": 1678901234,
"updated_at": 1678901234
},
{
"id": "kb_789xyz",
"name": "Technical Support",
"description": "Support articles and troubleshooting guides",
"user_id": "user_456def",
"data": {},
"write_access": false,
"created_at": 1678905678,
"updated_at": 1678905678
}
],
"total": 2
}
Retrieve a paginated list of knowledge bases accessible to the authenticated user. Results include metadata about each knowledge base and the user’s write access permissions.
Request
Query Parameters
Page number for pagination (minimum: 1)
Headers
Bearer token for authentication
Response
Array of knowledge base objects with access information
Unique identifier for the knowledge base
Display name of the knowledge base
Description of the knowledge base content
ID of the user who created the knowledge base
Additional metadata about the knowledge base
Whether the current user has write permissions
Unix timestamp when the knowledge base was created
Unix timestamp when the knowledge base was last updated
Total number of knowledge bases accessible to the user
curl -X GET "https://your-domain.com/api/v1/knowledge/?page=1" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"items": [
{
"id": "kb_123abc",
"name": "Product Documentation",
"description": "Knowledge base for product documentation and guides",
"user_id": "user_456def",
"data": {},
"write_access": true,
"created_at": 1678901234,
"updated_at": 1678901234
},
{
"id": "kb_789xyz",
"name": "Technical Support",
"description": "Support articles and troubleshooting guides",
"user_id": "user_456def",
"data": {},
"write_access": false,
"created_at": 1678905678,
"updated_at": 1678905678
}
],
"total": 2
}
Search Knowledge Bases
You can also search knowledge bases using the search endpoint:GET /api/v1/knowledge/search?query=<search_term>&page=1
Search Query Parameters
Search term to filter knowledge bases
Filter by view option (e.g., “shared”, “owned”)
Page number for pagination
Notes
- Results are paginated with 30 items per page (PAGE_ITEM_COUNT)
- Only knowledge bases accessible to the user are returned (based on permissions and group membership)
- Admin users with BYPASS_ADMIN_ACCESS_CONTROL can see all knowledge bases
- The
write_accessfield indicates whether the user can modify the knowledge base
⌘I