Skip to content

Notify_signal

Chris Caron edited this page Apr 18, 2022 · 4 revisions

Signal API

Account Setup

This plugin assumes you have configured yourself up with the Signal Rest API Service The {FromPhoneNo} must be the number associated with your account.

Syntax

Valid syntax is as follows:

  • signal://{user}:{password}@{hostname}/{from_phone}
  • signal://{user}:{password}@{hostname}:{port}/{from_phone}
  • signal://{user}:{password}@{hostname}/{from_phone}/{to_phone}
  • signal://{user}:{password}@{hostname}:{port}/{from_phone}/{from_phone}

You can post in multiple chats by simply chaining them at the end of the URL.

  • signal://{user}:{password}@{hostname}:{port}/{from_phone}/{to_phone1}/{to_phone2}/{to_phone3}
  • signals://{user}:{password}@{hostname}:{port}/{from_phone}/{to_phone1}/{to_phone2}/{to_phone3}

Parameter Breakdown

Variable Required Description
hostname Yes The Web Server's hostname
port No The port our Web server is listening on. By default the port is 80 for signal:// and 443 for all singals:// references.
user No If you're system is set up to use HTTP-AUTH, you can provide username for authentication to it.
password No If you're system is set up to use HTTP-AUTH, you can provide password for authentication to it.
from Yes This must be a From Phone Number you've added to the API service.
to *No A phone number you wish to send your notification to. If one isn't specified, then the from is used instead.
batch No Send multiple specified notifications in a single batch (1 upstream post to the end server). By default this is set to no.
status No Optionally include a small little ASCII string representing the notification status being sent (inline with it) by default this is set to no.

Example

Send a Signal Notification (via Signal API):

# Assuming our {Hostname} is localhost (hosting the bbernhard/signal-cli-rest-api)
# Assuming our {FromPhoneNo} is +1-900-555-9999
# Assuming our {PhoneNo} - is in the US somewhere making our country code +1
#                        - identifies as 800-555-1223
apprise -vv -t "Test Message Title" -b "Test Message Body" \
   signal://localhost/19005559999/18005551223

# the following would also have worked (spaces, brackets,
# dashes are accepted in a phone no field):
apprise -vv -t "Test Message Title" -b "Test Message Body" \
   signal://localhost/1-(900) 555-9999/1-(800) 555-1223
Clone this wiki locally