https://discord.gg/botpress logo
Hi Botpress community! I'm currently trying to s...
# 💻developers
b
Hi Botpress community! I'm currently trying to secure my Botpress Cloud API by setting an encryption key in the chat integration. I generated a JWT using HS256, signed with the encryption key and sent it in the x-user-key header. I'm encountering a 401 Unauthorized error when attempting to create a user via the POST https://chat.botpress.cloud/{webhookUrl}/users endpoint ( "message": "The \"createUser\" operation can only be called when using the shared encryption key.") I'm unclear what this message means: Does the endpoint stops working once the encryption key is set in the integration or is there's a specific way I should be creating users when the encryption key is used. Any help would be greatly appreciated!
3 Views