Notification API for Matrix Synapse Element implemented through a matrix bot. Supports text and media messages.
API commands:
- Send a text message to a specific recipient:
curl -k -X POST -H "Content-Type: text/plain" -H 'Send-To: @recipient:example.com' -H "Api-Key-Here: Supersecretkey123" --data "Test message" https://127.0.0.1
- Send a file to a specific recipient:
curl -k -X POST -H "Content-Type: image/png" -H 'Send-To: @recipient:example.com' "Api-Key-Here: Supersecretkey123" -H "File-Name: yourFile.png" --data-binary @./yourFile.png https://127.0.0.1
- Send a message to the management channel - omit the
Send-To
header.
See SETUP.md for how to setup and run the project.
Apache2