Path Params
| Name | Type | Required | Description | Default |
|---|
Query Params
| Name | Type | Required | Description | Default |
|---|---|---|---|---|
botId | string | Required | ID của chatbot | - |
Headers
| Header | Required | Description | Example |
|---|---|---|---|
Authorization | Required | Bearer token xác thực | Bearer <token> |
Response
200Thành công
| Trường | Kiểu | Mô tả |
|---|---|---|
| resultCode | string | Mã kết quả |
| resultMsg | string | Thông báo kết quả |
| data | object | Đối tượng chứa dữ liệu trả về |
| data.bot | object | Thông tin chi tiết của chatbot |
| data.bot.createdAt | string | Ngày tạo chatbot |
| data.bot.updatedAt | string | Ngày cập nhật chatbot lần cuối |
| data.bot.createdBy | string | Người tạo chatbot |
| data.bot.updatedBy | string | Người cập nhật chatbot lần cuối |
| data.bot.botId | string | ID của chatbot |
| data.bot.botName | string | Tên của chatbot |
| data.bot.botDescription | string | Mô tả về chatbot |
| data.bot.isPublic | boolean | Trạng thái công khai của chatbot |
| data.bot.status | number | Trạng thái của chatbot |
| data.bot.coreBotId | string | ID của core bot |
| data.bot.modelCode | string | Mã model sử dụng |
| data.bot.creativityLevel | number | Mức độ sáng tạo |
| data.bot.writeStyleCode | string | Mã phong cách viết |
| data.bot.responseFormatCode | string | Mã định dạng phản hồi |
| data.bot.answerStyleCode | string | Mã phong cách trả lời |
| data.bot.enableResponseOutDataTrain | boolean | Cho phép phản hồi ngoài dữ liệu train |
| data.bot.outputLanguage | string | Ngôn ngữ đầu ra |
| data.bot.quoteDocument | boolean | Trích dẫn tài liệu |
| data.bot.suggestNextQuestion | boolean | Gợi ý câu hỏi tiếp theo |
| data.files | array | Danh sách các file đã tải lên |
| data.files[].createdAt | string | Ngày tạo file |
| data.files[].updatedAt | string | Ngày cập nhật file |
| data.files[].createdBy | string | Người tạo file |
| data.files[].updatedBy | string | Người cập nhật file |
| data.files[].fileId | string | ID của file |
| data.files[].storagePathId | number | ID đường dẫn lưu trữ |
| data.files[].fileName | string | Tên file |
| data.files[].filePath | string | Đường dẫn file |
| data.files[].fileTmpPath | string | Đường dẫn file tạm |
| data.files[].fileSize | number | Kích thước file |
| data.files[].fileExtension | string | Đuôi file mở rộng |
| data.files[].status | number | Trạng thái file |
| data.files[].fileOldUrl | string | URL cũ của file |
| data.files[].eventId | string | ID sự kiện |
| data.files[].tableName | string | Tên bảng |
| data.files[].fileIndexStatus | string | Trạng thái index của file |
| data.botCreater | boolean | Cho biết người dùng có phải là người tạo bot không |
404Không tìm thấy chatbot
| Trường | Kiểu | Mô tả |
|---|---|---|
| error | string | Thông báo lỗi không tìm thấy |
example.title:
{
"200": {
"data": {
"bot": {
"createdAt": "2025-06-18T10:28:51.784+00:00",
"updatedAt": "2025-06-20T02:39:12.195+00:00",
"createdBy": "SAMPLE_USER",
"updatedBy": "SAMPLE_USER",
"botId": "76626115-948a-4b5c-a56e-7ad64873f57e",
"botName": "Bot để xóa 3 $%%^ ?",
"botDescription": "y",
"isPublic": null,
"status": 1,
"coreBotId": null,
"modelCode": "gpt-4o",
"creativityLevel": 1,
"writeStyleCode": "phê bình",
"responseFormatCode": "thơ",
"answerStyleCode": "mỉa mai",
"enableResponseOutDataTrain": true,
"outputLanguage": "tiếng việt",
"quoteDocument": false,
"suggestNextQuestion": false
},
"files": [
{
"createdAt": "2025-06-19T06:15:05.094+00:00",
"updatedAt": "2025-06-19T06:15:29.950+00:00",
"createdBy": "SAMPLE_USER",
"updatedBy": "SAMPLE_USER",
"fileId": "4067157c-a803-40b6-aee7-63deccf09c04",
"storagePathId": 2,
"fileName": "HarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdf.docx",
"filePath": "76626115-948a-4b5c-a56e-7ad64873f57e/HarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdfHarryPottersdf.docx",
"fileTmpPath": null,
"fileSize": 18057,
"fileExtension": "docx",
"status": 1,
"fileOldUrl": null,
"eventId": null,
"tableName": null,
"fileIndexStatus": "SUCCESS"
}
],
"botCreater": true
},
"resultCode": "0",
"resultMsg": "Success"
}
}API Request
GET
https://troly.mobifone.vn/api/v1/am/bot/getBotInfo?botId=:botIdTry It Out
Test Endpoint
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://troly.mobifone.vn/api/v1/am/bot/getBotInfo?botId={{botId}}',
headers: {
'Authorization': '<YOUR_ACCESS_TOKEN_BEARER>
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});