Something went wrong. Try again.
A drop-in, single-binary reimplementation of the caronc/apprise-api HTTP API in Go.
Something went wrong. Try again.
Files
- Go 100%
- Makefile <1%
README.md
Apprize #
Apprize is a Go reimplementation of the caronc/apprise-api HTTP API, shipped as a single binary. It serves the same stateless routes and response shapes as Apprise API swagger.yaml v2.0.2 and sends notifications through unraid/apprise-go. It is pure Go, with no cgo and no Python runtime.
Quick start #
Start the server:
docker run --rm -p 8000:8000 fogtype/apprize
Send a notification:
# ntfy, view the message at https://ntfy.sh/apprize-demo
curl localhost:8000/notify \
-d 'urls=ntfys://apprize-demo' \
-d body=hello
# email, needs real SMTP credentials
curl localhost:8000/notify \
-d 'urls=mailtos://user:pass@gmail.com' \
-d body=hello
URL formats for other services are listed at appriseit.com/services.
Install #
# Docker
docker run --rm -p 8000:8000 fogtype/apprize
# Podman
podman run --rm -p 8000:8000 fogtype/apprize
# Go
go install git.fogtype.com/nebel/apprize@latest
apprize --bind :8000
# Build from source
git clone https://git.fogtype.com/nebel/apprize
cd apprize
go build
./apprize --bind :8000
Docker Compose #
# compose.yml
services:
apprize:
image: fogtype/apprize
restart: unless-stopped
ports:
- "8000:8000"
docker compose up -d
Configuration #
Flags override environment variables. Names use the APPRIZE_ prefix; the
upstream HTTP_PORT is also honoured for the listen port.
| Env | Flag | Default | Purpose |
|---|---|---|---|
APPRIZE_BIND (or HTTP_PORT) |
--bind |
:8000 |
Listen address |
APPRIZE_API_KEY |
--api-key |
- | Enables simple auth when set |
APPRIZE_STATELESS_URLS |
- | - | Default URLs for POST /notify |
APPRIZE_RECURSION_MAX |
- | 1 |
Inbound recursion limit |
APPRIZE_DENY_SERVICES |
- | - | Schemas to reject (comma/space separated) |
APPRIZE_ALLOW_SERVICES |
- | - | Accept only these schemas when set |
APPRIZE_DEFAULT_FORMAT |
- | - | format used when a request omits it |
API #
| Method & path | Purpose |
|---|---|
GET /status |
Server status |
GET /details |
Version and supported schemas |
POST /notify |
Stateless notification |
Limitations #
apprize differs from upstream where apprise-go can't match it, and it leaves out the persistent-configuration, account, and metrics endpoints.
/add,/del,/get,/cfg,/move,/qr,POST /notify/{key},GET /status/{key}, andGET /json/urlsare not implemented. The server stores nothing./auth,/login,/logout, and/metricsare not implemented. Upstream Basic Auth (APPRISE_AUTH_REQUIRED) is not supported; useAPPRIZE_API_KEYinstead.X-Apprise-Config-IDis ignored.POST /notifydoes not stream progress:?stream=andAccept: text/event-streamare ignored, because apprise-go reports results only after every target has finished.tagandtemplatevalues are accepted and validated but have no effect, since explicit URLs carry no tags or${NAME}markers.- The server accepts attachments but does not deliver them. It logs them as
unsupported, and
/statusreportsattach_lock=true. - The server enforces inbound
X-Apprise-Recursion-Countbut does not add the header to outbound requests. /detailsreturns the version and supported schemas, without per-service templates.- There is no web UI.
License #
Acknowledgements #
- caronc/apprise-api for the original API design and specification.
- unraid/apprise-go for the Go notification library.