const res = await axios.post(
'https://api.botpress.cloud/v1/chat/users',
{
name: 'TED',
integrationId: 'YOUR_INTEGRATION_ID', // Add this line
tags: {
test: 'true',
},
},
{
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
Authorization:
Bearer ${BOTPRESS_API_KEY}
,
'x-bot-id': BOTPRESS_BOT_ID,
}
}
);
console.log(res.data);