Cannot set up Signal to work with Home Assistant

I am trying to set up Home Assistant to work with Signal messenger. I am following the directions from signal-cli-rest-api/doc/HOMEASSISTANT.md at cdf710544e436adbe1ed5c8114656c278444fd18 · bbernhard/signal-cli-rest-api · GitHub. I was able to do the add-on and start the listener process. When I try to register my phone number using curl -X POST -H “Content-Type: application/json” --data ‘{“use_voice”: false}’ ‘http://:/v1/register/’
It tells me I a captcha is required.

I then follow the steps to get a captcha link. I put the captcha into the following curl statement:

curl -X POST -H “Content-Type: application/json” -d ‘{“captcha”:“signalcaptcha://signal-hcaptcha-short.5fad97ac-7d06-4e44-b18b-c556b20148ff.registration.4o_23jhtgjr30QnHSqCd2atQ”, “use_voice”: false}’ ‘http://55.55.55.55:8080/v1/register/+13335557777

When I do this I get the following error:

{“error”:“Failed to register: [403] Authorization failed! (AuthorizationFailedException)”}#

The REST API appears to be working:

➜ ~ curl http://127.0.0.1:8080/v1/about
{“versions”:[“v1”,“v2”],“build”:2,“mode”:“json-rpc”,“version”:“0.93”,“capabilities”:{“v2/send”:[“quotes”,“mentions”]}}#

I have no idea what to try next to get a valid registration.

Any help is greatly appreciated.

I also had the AuthorizationFailedException - simply re-did the captcha thing and sent the curl command with the updated captcha code.

My impression was the captcha might have been expired - I needed quite some time to paste the command line together.

Worked like a charm on the 2nd try.

I too just tried today and received the same captcha requirement. the “signalcaptcha://" is NOT included in the curl request as part of the captcha, so you were really close to getting it to work. everything _after_the double-slash (//) is what it is looking for.

Also, there is a timeout on a captcha, so be ready to grab the copy and then paste into your curl command line. good luck.