https://discord.gg/botpress logo
I'd really appreciate if you can help again. I'm w...
# 💻developers
e
I'd really appreciate if you can help again. I'm writing a test code to create a user:
Copy code
const res = await axios.post(
    'https://api.botpress.cloud/v1/chat/users',
    {
        name: 'TED',
        tags: {
            test: 'true',
        },
    },
    {
        headers: {
            Accept: 'application/json',
            'Content-Type': 'application/json',
            Authorization: `Bearer ${BOTPRESS_API_KEY}`,
            'x-bot-id': BOTPRESS_BOT_ID,
        }
    }
)

return console.log(res);
I get this error:
Copy code
{
      id: 'err_20250317124215xF0AFC65E',
      code: 400,
      type: 'InvalidPayload',
      message: 'Must specify integrationName or integrationId'
}