logo
Body Params
NameTypeRequiredDescriptionDefault
answer_idstringOptional

ID của câu trả lời

-
bot_idstringRequired

ID của chatbot

-
conversation_idstringRequired

ID cuộc hội thoại

-
messagestringRequired

Nội dung tin nhắn gửi lên

-

Path Params

NameTypeRequiredDescriptionDefault

Query Params

NameTypeRequiredDescriptionDefault

Headers

HeaderRequiredDescriptionExample
AuthorizationRequired

Bearer token xác thực

Bearer <token>

Response

example.title:
{}

API Request

POSThttps://troly.mobifone.vn/api/v1/am/qa/chat

Try It Out

Test Endpoint

No query parameters
No path parameters
Body Params
Headers
const axios = require('axios');
let data = JSON.stringify({
  "answer_id": "",
  "bot_id": "",
  "conversation_id": "",
  "message": ""
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://troly.mobifone.vn/api/v1/am/qa/chat',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': '<YOUR_ACCESS_TOKEN_BEARER>, 
    },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});