Knowledge Base (Old)
Get All Text Nodes of an AI Assistant's Files
GET /api/chatbot-text-nodes/
Parameters
chatbotFile
✅
string
Chatbot File ID
cursor
❌
string
The pagination cursor value.
pageSize
❌
integer
Number of results to return per page.
Code Examples
# Call API Example (Shell)
curl -X GET "https://api.maiagent.ai/api/chatbot-text-nodes/?chatbotFile=example&cursor=example&pageSize=1" \
-H "Authorization: Api-Key YOUR_API_KEY"
# Please replace YOUR_API_KEY and verify the request data before execution.const axios = require('axios');
// Set request headers
const config = {
headers: {
'Authorization': 'Api-Key YOUR_API_KEY'
}
};
axios.get("https://api.maiagent.ai/api/chatbot-text-nodes/?chatbotFile=example&cursor=example&pageSize=1", config)
.then(response => {
console.log('Successfully retrieved response:');
console.log(response.data);
})
.catch(error => {
console.error('An error occurred with the request:');
console.error(error.response?.data || error.message);
});Response Body
Status Code: 200
Response Schema Example
{
"next"?: string (uri) // Optional
"previous"?: string (uri) // Optional
"results": [
{
"id": string (uuid)
"charactersCount": integer
"hitsCount": integer
"text": string
"updatedAt": string (timestamp)
"filename": string
"chatbotFile": string (uuid)
"pageNumber": integer
}
]
}Example Response Value
Retrieve a specific text node of an AI assistant's file
GET /api/chatbot-text-nodes/{id}/
Parameters
id
✅
string
A UUID string identifying this ChatbotTextNode.
Code Examples
Response Body
Status Code: 200
Response Schema Example
Response Example Value
Search Test
POST /api/chatbots/{id}/search/
Parameters
id
✅
string
A UUID string identifying this Chatbot.
largeLanguageModel
❌
string
page
❌
integer
A page number within the paginated result set.
pageSize
❌
integer
Number of results to return per page.
query
❌
string
replyMode
❌
string
Code Examples
Response Body
Status Code: 200
Response Schema Example
Response Example Value
List Parsers Supported by File Type
GET /api/parsers/supported-file-types/
Code Example
Response Body
Status Code: 200
Response Schema Example
Response Example Value
Last updated
Was this helpful?
