Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Signal API

Schemessignal://, signals://
Cargo featureservice-signalapi
Servicehttps://bbernhard.github.io/signal-cli-rest-api/
Body formatstext (first is the default)
Attachmentsyes
Title lengthno title (merged into the body)
Body length32,768 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{host}/{from_phone}
{schema}://{host}:{port}/{from_phone}
{schema}://{user}@{host}/{from_phone}
{schema}://{user}@{host}:{port}/{from_phone}
{schema}://{user}:{password}@{host}/{from_phone}
{schema}://{user}:{password}@{host}:{port}/{from_phone}
{schema}://{host}/{from_phone}/{targets}
{schema}://{host}:{port}/{from_phone}/{targets}
{schema}://{user}@{host}/{from_phone}/{targets}
{schema}://{user}@{host}:{port}/{from_phone}/{targets}
{schema}://{user}:{password}@{host}/{from_phone}/{targets}
{schema}://{user}:{password}@{host}:{port}/{from_phone}/{targets}

{schema} is one of signal://, signals://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{from_phone}From Phone Nostringyesmust match ^\+?[0-9\s)(+-]+$
{host}Hostnamestringyes
{password}Passwordstringnosecret
{port}Portint, 1 to 65535no
{target_channel}Target Group IDstringnoprefix @; must match ^[a-z0-9_=-]+$
{target_phone}Target Phone Nostringnoprefix +; must match ^[0-9\s)(+-]+$
{targets}Targetslistnoany of target_channel, target_phone; separated by /
{user}Usernamestringno

Query parameters

ParameterMeaningTypeDefaultNotes
batchBatch Modeboolno
fromFrom Phone Nostringsets {from_phone}
statusShow Statusboolno
toTargetslistsets {targets}

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

signal://localhost/15551234567
signal://localhost/15551234567/123/15559876543
signal://user@localhost/15551234567/15559876543
signal://localhost:8080/+1 555 123 4567/15559876543
signals://user:pass@localhost/15551234567/15559876543
signal://localhost/15551234567/@abcd=/group.efgh/%40ijkl/15559876543
signal://localhost/15551234567/15559876543/15550001111/@grp?batch=yes
signal://localhost/15551234567?status=yes

Rejected URLs:

signal://
signal://localhost
signal://localhost/123

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'signal://localhost/15551234567'

Notes

Signal API (signal://, signals://): Signal messages through a signal-cli REST API server (bbernhard/signal-cli-rest-api).