Skip to content

Signal-CLI-REST-API

  • Signal app
  • Dockge
  • Proxmox
  1. Open the Signal CLI REST API repository and copy its docker-compose.yml into a new Dockge stack. Alternatively, use this compose configuration:

    services:
    signal-api:
    image: bbernhard/signal-cli-rest-api:rootless-latest
    container_name: signal-cli-rest-api
    restart: unless-stopped
    user: "1000:1000"
    ports:
    - "8080:8080"
    environment:
    - MODE=
    volumes:
    - ./signal-cli-config:/home/.local/share/signal-cli
    security_opt:
    - no-new-privileges:true
    tmpfs:
    - /run:exec,size=64m,uid=1000,gid=1000,mode=0755

    Click Save, but do not deploy the stack yet.

  2. 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-config
    chmod -R 755 signal-cli-config

    Now deploy the stack in Dockge.

  3. In a browser, open http://<IP_ADDRESS>:8080/v1/qrcodelink?device_name=<DEVICE_NAME>. A QR code should appear.

  4. Scan the QR code with the Signal app to link your phone.

  5. 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"]}'