waha icon indicating copy to clipboard operation
waha copied to clipboard

Error 401 when integrating waha api with chatwoot via apps.

Open nathanarend opened this issue 1 year ago • 5 comments

When connecting waha api in chatwoot, 401 error starts appearing in the integration contact.

Image1 Image

Image2 Image

Even though I connected to WhatsApp through the Waha dashboard, messages aren't being received or sent through Chatwoot.

I tested it via Curl and it worked perfectly; the problem seems to be solely with Chatwoot.

Has anyone been through the same thing and can help?

nathanarend avatar Aug 25 '25 00:08 nathanarend

Try following the guide and make sure you're using the right api keys/token https://waha.devlike.pro/blog/apps-chatwoot-install/

patron:PRO

devlikepro avatar Aug 26 '25 12:08 devlikepro

Even after following the installation guide, I still have problems using it.

I'm running on a VPS.

nathanarend avatar Aug 26 '25 13:08 nathanarend

I want to become a sponsor, but I would like to know if the project is for me.

nathanarend avatar Aug 26 '25 13:08 nathanarend

For users who have experienced a similar issue:

Check your docker-compose. If the sha512 key is not spelled correctly, a 401 error will appear.

The keys should be like this: WAHA_API_KEY: "sha512:cf5f150791817ac54....." WAHA_API_KEY_PLAIN: "7839279813"

sha512 key can be generated using plain key via terminal.

My problem was solved just by placing these keys correctly in the portainer stack.

patron:PLUS

nathanarend avatar Aug 28 '25 12:08 nathanarend

@nathanarend thank you for sharing your experience and the soltuion 🫶

patron:PRO

devlikepro avatar Aug 29 '25 04:08 devlikepro