high-grass-61783
08/31/2023, 3:45 PMbumpy-addition-21507
08/31/2023, 4:08 PMhigh-grass-61783
08/31/2023, 5:14 PMbumpy-addition-21507
08/31/2023, 6:34 PMconst url = 'https://my-url/endpoint'
const headers = {
'Content-Type': 'application/json',
'Authorization': `Bearer ${env.myDB}`
}
const userId = user.userId
const payload = {
user_id: userId,
bot_message: workflow.botMessage,
user_message: workflow.userMessage
}
const response = await axios.post(url, payload, { headers })