Ai Knowledge Groups
The ID of the chatbot.
The date after which to filter groups. Only groups created after this date will be fetched.
2025-09-29T07:08:00ZThe limit for how many groups should be fetched.
List of all knowledge groups.
Optional error message.
The date of the latest fetched group.
2025-09-29T07:08:00ZNot authenticated.
GET /v1/chatbots/{chatbotId}/ai/knowledge/groups HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"groups": [
{
"id": "zwMeh3bYIMZQfzOqDFiO",
"name": "General FAQs",
"created": "2025-09-29T07:08:00Z",
"systemDefault": false,
"sourceIds": [
"2BkwBSWySONimJWNwtws"
]
}
],
"error": "text",
"pageToken": "2025-09-29T07:08:00Z"
}The ID of the chatbot.
Name of the new knowledge group.
General FAQsKnowledge group created successfully.
Optional error message.
Invalid input data.
Not authenticated.
POST /v1/chatbots/{chatbotId}/ai/knowledge/groups HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 23
{
"name": "General FAQs"
}{
"group": {
"id": "zwMeh3bYIMZQfzOqDFiO",
"name": "General FAQs",
"created": "2025-09-29T07:08:00Z",
"systemDefault": false,
"sourceIds": [
"2BkwBSWySONimJWNwtws"
]
},
"error": "text"
}The ID of the chatbot.
The ID of the knowledge group to retrieve.
Knowledge group details.
Optional error message.
Not authenticated.
GET /v1/chatbots/{chatbotId}/ai/knowledge/groups/{groupId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"group": {
"id": "zwMeh3bYIMZQfzOqDFiO",
"name": "General FAQs",
"created": "2025-09-29T07:08:00Z",
"systemDefault": false,
"sourceIds": [
"2BkwBSWySONimJWNwtws"
]
},
"error": "text"
}The ID of the chatbot.
The ID of the knowledge group to delete.
Knowledge group deleted successfully.
Optional error message.
Not authenticated.
Insufficient permissions.
DELETE /v1/chatbots/{chatbotId}/ai/knowledge/groups/{groupId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Accept: */*
{
"error": "text"
}The ID of the chatbot.
The ID of the knowledge group to update.
Knowledge group updated successfully.
Optional error message.
Invalid input data.
Not authenticated.
PATCH /v1/chatbots/{chatbotId}/ai/knowledge/groups/{groupId} HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"updated": {
"name": "Product information Q4 2025",
"sourceIds": [
"hC79d9u4lUjGWUCTzhSF",
"PkF60rG0wzDg3ZhJlaXp"
]
}
}{
"group": {
"id": "zwMeh3bYIMZQfzOqDFiO",
"name": "General FAQs",
"created": "2025-09-29T07:08:00Z",
"systemDefault": false,
"sourceIds": [
"2BkwBSWySONimJWNwtws"
]
},
"error": "text"
}Last updated