Signal-CLI-REST-API
Prerequisites
Section titled “Prerequisites”- Signal app
- Dockge
- Proxmox
-
Open the Signal CLI REST API repository and copy its
docker-compose.ymlinto a new Dockge stack. Alternatively, use this compose configuration:services:signal-api:image: bbernhard/signal-cli-rest-api:rootless-latestcontainer_name: signal-cli-rest-apirestart: unless-stoppeduser: "1000:1000"ports:- "8080:8080"environment:- MODE=volumes:- ./signal-cli-config:/home/.local/share/signal-clisecurity_opt:- no-new-privileges:truetmpfs:- /run:exec,size=64m,uid=1000,gid=1000,mode=0755Click Save, but do not deploy the stack yet.
-
Open a shell in the LXC hosting Dockge and run:
Terminal window cd /opt/stacks/signal# Create the configuration directory if it does not exist.mkdir -p signal-cli-config# Check the directory.ls -la signal-cli-config# Set ownership and permissions.chown -R 1000:1000 signal-cli-configchmod -R 755 signal-cli-configNow deploy the stack in Dockge.
-
In a browser, open
http://<IP_ADDRESS>:8080/v1/qrcodelink?device_name=<DEVICE_NAME>. A QR code should appear. -
Scan the QR code with the Signal app to link your phone.
-
Test the REST API with a request like this:
Terminal window curl -X POST \-H "Content-Type: application/json" \'http://<IP_ADDRESS>:8080/v2/send' \-d '{"message":"Test via Signal API!","number":"+4412345","recipients":["+44987654"]}'