ap·prise / verb To inform or tell (someone). To make one aware of something. Take advantage of Apprise through your network with a user-friendly API. Send notifications to more than 180+ services. An incredibly lightweight gateway to Apprise. A production-ready micro-service at your disposal. A Simple Website to verify and test your configuration with. Group your services with tags, then notify only the ones that…
Apprise provides one consistent notification interface for your apps, automation, and infrastructure. Generate an Apprise URL, send it through the API or core library, and deliver notifications to a large number of supported services.
Screenshots
There is a small built-in Configuration Manager that can be optionally accessed through your web browser allowing you to create and save as many configurations as you’d like. Each configuration is differentiated by a unique Configuration ID that you decide on:
Below is a screenshot of the review tab where you can preview what Apprise URL(s) got loaded from your defined configuration. It also allows you to view the tags associated with them (if any). Should you chose to send a test notification via this API, you can select the tags in advance you wish to target from here.
With configuration in place, you’ll be able to use the Notification tab to send a test message to one or more of the services you defined in your configuration. You can also select from the tags (if any) you pre-assigned to your URLs defined. If you did not define any tags with you configured URLs, then you do not need to identify any here. You can use the tag all to notify all of your services regardless of what tag had otherwise been assigned to them (if any at all).
At the end of the day, the GUI just simply offers a user friendly interface to the same API developers can directly interface with if they wish to.
Apprise Mobile
Apprise Mobile is the Android and iOS companion app for Apprise API. Send a message, photo, or file to one destination, a group, or every destination you have configured. The app requires access to your running Apprise API server; it is not a standalone notification service.
Android requires Android 8.0 or later. iPhone and iPad require iOS 17.2 or later. See the setup guide to connect your server.
Dashboard
Reminders
URL Builder
Delivery Report
Connecting to Your Server
Once the app is installed, open the Configuration Manager in your browser and reveal the Apprise Mobile Quick Setup QR code on any configuration you’ve saved. Scanning it from the app adds your server and loads that configuration in one step, without typing URLs on a phone keyboard.
Visit the Apprise Mobile page for more details, screenshots, and the app’s privacy policy and terms.
Installation
The following options should allow you to access the API at: http://localhost:8000/ from your browser.
# Retrieve container
docker pull caronc/apprise:latest
# Start it up:
# /config is used for a spot to write all of the configuration files
# generated through the API. The internal persistent store lives
# under /config/store so a single /config volume is sufficient.
# /plugin is used for a location you can add your own custom apprise plugins.
# You do not have to mount this if you don't intend to use it.
# /attach is used for file attachments
# /tmp Temporary files, suitable for `tmpfs` in hardened deployments.
#
# The below example sets a the APPRISE_WORKER_COUNT to a small value (overriding
# a full production environment setting). This may be all that is needed for
# a light-weight self hosted solution.
#
# setting APPRISE_STATEFUL_MODE to simple allows you to map your defined {key}
# straight to a file found in the `/config` path. In simple home configurations
# this is sometimes the ideal expectation.
#
# Set your User ID or Group ID if you wish to override the default of 1000
# in the below example, we make sure it runs as the user we created the container as
docker run --name apprise \
-p 8000:8000 \
--user "$(id -u):$(id -g)" \
-v /path/to/local/config:/config \
-v /path/to/local/plugin:/plugin \
-v /path/to/local/attach:/attach \
-e APPRISE_STATEFUL_MODE=simple \
-e APPRISE_WORKER_COUNT=1 \
-e APPRISE_DEFAULT_FORMAT=text \
-e TZ=America/Toronto \
-d caronc/apprise:latest
You can also choose to build yourself a custom version after checking out the source code. This is sometimes useful when you want to make a change to the source code and try it out.
A common change one might make is to update the Dockerfile to point to the master branch of Apprise instead of using the stable version.
The image build compiles the Apprise translations for you, so this works even when Apprise comes straight from git.
# Setup your environment the way you like
docker build -t apprise/local:latest -f Dockerfile .
# Set up a directory you wish to store your configuration in:
mkdir -p /etc/apprise
# Launch your instance
docker run --name apprise \
-p 8000:8000 \
--user "$(id -u):$(id -g)" \
-e APPRISE_STATEFUL_MODE=simple \
-e APPRISE_WORKER_COUNT=1 \
-e APPRISE_DEFAULT_FORMAT=text \
-e TZ=America/Toronto \
-v /etc/apprise:/config \
-d apprise/local:latest
# Change your paths to what you want them to be, you may also wish to
# just do the following:
mkdir -p config
docker run --name apprise \
-p 8000:8000 \
--user "$(id -u):$(id -g)" \
-e APPRISE_STATEFUL_MODE=simple \
-e APPRISE_WORKER_COUNT=1 \
-e APPRISE_DEFAULT_FORMAT=text \
-e TZ=America/Toronto \
-v ./config:/config \
-d apprise/local:latest
Docker Compose Examples
A minimal docker-compose.yml might look like this:
For production deployments, do not use docker-compose.override.yml.
Deploy using only docker-compose.yml, so the container uses the immutable image and its bundled static assets.
# Pre-create the paths you will mount to
mkdir -p attach config plugin
# Ensure you've got the latest image:
docker pull caronc/apprise:latest
# Ignore override, use only the base file
PUID=$(id -u) PGID=$(id -g) \
docker compose -f docker-compose.yml up -d
The following architectures are supported: amd64, arm/v7, and arm64. The following tags can be used:
latest: Points to the latest stable build.
edge: Points to the last push to the master branch.
Container Runtime Model and Filesystem Layout
The Apprise API container is designed to be “container native”:
All logs (nginx, gunicorn, supervisord) are written to stdout and stderr.
No files are written under /var/log. You should use docker logs,
kubectl logs, or your orchestrator’s log collection instead.
Nginx and the application use /tmp for all temporary files
(request bodies, proxy buffers, etc.).
Runtime state such as pid and socket information is written under /tmp/apprise.
Persistent or writable locations are:
/config – configuration created and managed through the API or UI.
The internal persistent store lives under /config/store.
/attach – uploaded attachments.
/plugin – custom Apprise plugins.
/tmp – temporary files, suitable for tmpfs in hardened deployments.
For simple deployments you only need to mount persistent storage for /config, /attach, if you want that data to survive container restarts. You only require /plugin if you intend to add some custom plugins into your Apprise instance for others to use.
Stateless /notify usage can still use /attach for file uploads and optionally /plugin for custom plugins. In those cases you can back them with either persistent volumes or ephemeral storage, depending on your needs.
Apprise URLs
📣 In order to trigger a notification, you first need to define one or more Apprise URLs to support the services you wish to leverage. Visit https://appriseit.com/services/ to see the ever-growing list of the services supported today.
API Details
Health Checks
You can perform status or health checks on your server configuration by accessing /status.
Path
Method
Description
/status
GET
Simply returns a server status. The server http response code is a 200 if the server is working correctly and a 417 if there was an unexpected issue. You can set the Accept header to application/json or text/plain for different response outputs.
Below is a sample of just a simple text response:
# Request a general text response
# Output will read `OK` if everything is fine, otherwise it will return
# one or more of the following separated by a comma:
# - ATTACH_PERMISSION_ISSUE: Can not write attachments (likely a permission issue)
# - CONFIG_PERMISSION_ISSUE: Can not write configuration (likely a permission issue)
# - STORE_PERMISSION_ISSUE: Can not write to persistent storage (likely a permission issue)
curl -X GET http://localhost:8000/status
Below is a sample of a JSON response:
curl -X GET -H "Accept: application/json" http://localhost:8000/status
The attach_lock always cross references if the APPRISE_ATTACH_SIZE on whether or not it is 0 (zero) or less.
config_lock reports whether this caller may view configuration content. It
is false for an administrator who can bypass the lock.
stateful_enabled and stateless_enabled report the server-wide mode
switches. They do not grant the current caller permission to use each mode.
degraded is true when both notification modes are disabled.
max_attachments is the active APPRISE_MAX_ATTACHMENTS value.
attach_size is the active APPRISE_ATTACH_SIZE value.
The status.persistent_storage defines if the persistent storage is enabled or not. If the environment variable APPRISE_STORAGE_PATH is empty, this value will always read false and it will not impact the status.details
The status.can_write_config defines if the configuration directory is writable or not. If the environment variable APPRISE_STATEFUL_MODE is set to disabled, this value will always read false and it will not impact the status.details
The status.can_write_attach defines if the attachment directory is writable or not. If the environment variable APPRISE_ATTACH_SIZE. This value will always read false and it will not impact the status.details.
The status.details identifies the overall status. If there is more then 1 issue to report here, they will all show in this list. In a working orderly environment, this will always be set to OK and the http response type will be 200.
Stateless Solution
Some people may wish to only have a sidecar solution that does require use of any persistent storage. The following API endpoint can be used to directly send a notification of your choice to any of the supported services by Apprise without any storage based requirements:
Path
Method
Description
/notify/
POST
Sends one or more notifications to the URLs identified as part of the payload, or those identified in the environment variable APPRISE_STATELESS_URLS. Payload Parameters 📌 urls: One or more URLs identifying where the notification should be sent to. If this field isn’t specified, a request with an X-Apprise-Config-ID header sends through that saved configuration instead; otherwise the APPRISE_STATELESS_URLS environment variable is used. 📌 body: Your message body. This is a required field. 📌 title: Optionally define a title to go along with the body. 📌 type: Defines the message type you want to send as. The valid options are info, success, warning, and failure. If no type is specified then info is the default value used. 📌 format: Optionally identify the text format of the data you’re feeding Apprise. The valid options are text, markdown, html. If nothing is specified, no format is applied and the content is passed through untouched. 📌 Add ?stream=yes (or Accept: text/event-stream) for progress while notification work is still running — see Live Progress Streaming below. This path does not work if APPRISE_STATELESS_MODE is set to disabled.
Stateless /notify calls do not require /config, but they do leverage /attach for file uploads (assuming APPRISE_ATTACH_SIZE is not set to 0 (zero). You can optionally use /plugin if you have custom Apprise plugins you wish to use.
When authentication is enabled, an administrator may call /notify directly. A configuration user must send explicit urls, their matching X-Apprise-Config-ID header, and credentials for a configuration with user access. The header authorizes the caller but does not replace those URLs. The locked, public, and disabled access modes cannot send stateless notifications. For compatibility with Apprise API v2 clients, a header-bearing /notify request without urls remains a stateful send through the saved configuration.
Here is a stateless example of how one might send a notification (using /notify/):
# Send your notifications directly
curl -X POST -d 'urls=mailto://user:[email protected]&body=test message' \
http://localhost:8000/notify
# Send a notification with an attachment:
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F 'body=test message' \
-F [email protected] \
http://localhost:8000/notify
# Send multiple attachments; just make sure the attach keyword is unique:
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F 'body=test message' \
-F [email protected] \
-F attach2=@/my/path/to/Apprise.doc \
http://localhost:8000/notify
# This example shows how you can place the body among other parameters
# in the GET parameter and not the payload as another option.
curl -X POST -d 'urls=mailto://user:[email protected]&body=test message' \
-F @/path/to/your/attachment \
http://localhost:8000/notify
# The body is not required if an attachment is provided:
curl -X POST -d 'urls=mailto://user:[email protected]' \
-F @/path/to/your/attachment \
http://localhost:8000/notify
# Send your notifications directly using JSON
curl -X POST -d '{"urls": "mailto://user:[email protected]", "body":"test message"}' \
-H "Content-Type: application/json" \
http://localhost:8000/notify
# attach= is an alias of attachment=
# Send a notification with a URL based attachment
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png \
http://localhost:8000/notify
You can also send notifications that are URLs. Apprise will download the item so that it can send it along to all end points that should be notified about it.
# Use the 'attachment' parameter and send along a web request
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F attachment=https://i.redd.it/my2t4d2fx0u31.jpg \
http://localhost:8000/notify
# To send more then one URL, the following would work:
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F attachment=https://i.redd.it/my2t4d2fx0u31.jpg \
-F attachment=https://path/to/another/remote/file.pdf \
http://localhost:8000/notify
# Finally feel free to mix and match local files with external ones:
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F attachment=https://i.redd.it/my2t4d2fx0u31.jpg \
-F attachment=https://path/to/another/remote/file.pdf \
-F @/path/to/your/local/file/attachment \
http://localhost:8000/notify
Persistent (Stateful) Storage Solution
You can pre-save all of your Apprise configuration and/or set of Apprise URLs and associate them with a {KEY} of your choosing. Once set, the configuration persists for retrieval by the appriseCLI tool or any other custom integration you’ve set up. The built in website with comes with a user interface that you can use to leverage these API calls as well. Those who wish to build their own application around this can use the following API end points:
Stateful endpoints also accept X-Apprise-Config-ID. This keeps the Config ID out of the URL. On /status it selects that ID’s login. On /notify, a request without urls selects the saved configuration; explicit urls make it stateless and use the ID only for authentication. The /cfg listing does not accept it.
If both the URL and header contain a key, the header wins. Invalid headers return 400. Existing URL-based requests remain supported.
The /cfg list requires APPRISE_STATEFUL_MODE=simple and is available by default; set APPRISE_ADMIN=no to turn it off. When APPRISE_CONFIG_LOCK is enabled, the list also requires an authenticated administrator.
Path
Method
Description
/add/{KEY}
POST
Saves Apprise Configuration (or set of URLs) to the persistent store. Payload Parameters 📌 urls: Define one or more Apprise URL(s) here. Use a comma and/or space to separate one URL from the next. 📌 config: Provide the contents of either a YAML or TEXT based Apprise configuration. 📌 format: This field is only required if you’ve specified the config parameter. Used to tell the server which of the supported (Apprise) configuration types you are passing. Valid options are text and yaml. Under APPRISE_CONFIG_LOCK, this requires an authenticated administrator.
/del/{KEY}
POST
Removes Apprise Configuration from the persistent store. Under APPRISE_CONFIG_LOCK, this requires an authenticated administrator.
/move/{KEY}
POST
Moves the configuration stored at {KEY} to a new Config ID. Payload Parameters 📌 to: The destination Config ID. It must not already have a configuration. Under APPRISE_CONFIG_LOCK, this requires an authenticated administrator.
/cfg/{KEY}
POST
Returns the Apprise Configuration from the persistent store. This can be directly used with the Apprise CLI and/or the AppriseConfig() object (see here for details). Under APPRISE_CONFIG_LOCK, this requires an authenticated administrator. This is an alias of /get/{KEY} (identified next).
/get/{KEY}
POST
Returns the Apprise Configuration from the persistent store. This can be directly used with the Apprise CLI and/or the AppriseConfig() object (see here for details). Under APPRISE_CONFIG_LOCK, this requires an authenticated administrator. This is also provided via /cfg/{KEY} as an alias.
/notify/{KEY}
POST
Sends notification(s) through a saved configuration. disabled configurations are available only to the administrator. Payload Parameters 📌 body: Your message body. 📌 title: An optional title. 📌 type: info, success, warning, or failure; defaults to info. 📌 tag: Optionally select destinations by tag. It is required for locked and public access, where all is rejected. 📌 format: Optionally use text, markdown, or html. 📌 Add ?stream=yes (or Accept: text/event-stream) for live progress — see Live Progress Streaming. 📌 template: Values for a configuration written with ${NAME} markers. Send a JSON object ("template": {"api_key": "..."}) or one form field per name (template[api_key]=...).
/resolve/{KEY}
POST
Checks Apprise URLs ({"urls": ...}) without contacting them. Returns each URL in full, with its secrets hidden, and split into the fields /details lists, along with any required field still missing. Send fields in place of a URL to put it back together.
/attach/{KEY}
POST
Downloads an attachment web address ({"url": ...}) the way a send would and returns the file, or a 424 with logs saying why it failed. The same attachment rules as /notify apply, and local network addresses are refused unless APPRISE_ATTACH_PREVIEW_INTERNAL is set. A refused address also returns reason, the setting to change and a help link.
/json/urls/{KEY}
GET
Returns the URLs and tags associated with the key. Each URL lists its template names. With privacy=0, each name carries its configuration default (or null). With privacy=1, URL secrets are hidden and every name is null. Under APPRISE_CONFIG_LOCK, an authenticated administrator is required and every name is null.
/status/{KEY}
GET
Returns /status, protected by the key’s credentials. Its config_lock value includes the key’s access mode and is relative to the authenticated caller (false for a global administrator that can bypass the lock).
/auth/{KEY}
GET
Opens the access editor, or returns the mode, access, and username as JSON. Passwords are never returned.
/auth/{KEY}
POST
Sets credentials and access. Administrators may change access; configuration users may change their password.
/auth/{KEY}
DELETE
Removes the key’s Basic Auth without removing its configuration. Global administrator credentials are required. /del/{KEY} removes both.
/reminder/{KEY}
GET, POST
Lists or adds reminders. See Reminders for every reminder route and its payload.
/details
GET
Opens a page that builds Apprise URLs for the services on this server. Set the Accept Header to application/json and retrieve a JSON response object that contains all of the supported Apprise URLs. See here for more details
/metrics
GET
Prometheus endpoint for basic Metrics Collection & Analysis and/or Observability.
As an example, the /json/urls/{KEY} response might return something like this:
You can pass privacy=1 to /json/urls/{KEY} to hide passwords and secret
tokens. The template section of each URL still lists every name it uses, but
each is null. With privacy=0, each name maps to its configuration default,
or null when none was declared. Server environment values, and whether they
exist, are never returned. Use tag= to filter results with a comma-separated
set of tags; if omitted, tag=all is used.
When APPRISE_CONFIG_LOCK is set, only an authenticated administrator may use /json/urls/{KEY}, and every template name is null. Other callers receive 403 without revealing saved URLs or tags. Non-admin notification callers must provide a specific tag; all is rejected.
Here is an example using curl as to how someone might send a notification to everyone associated with the tag abc123 (using /notify/{key}):
# Send notification(s) to a {key} defined as 'abc123'
curl -X POST -d "body=test message" \
http://localhost:8000/notify/abc123
# Here is the same request but using JSON instead:
curl -X POST -d '{"body":"test message"}' \
-H "Content-Type: application/json" \
http://localhost:8000/notify/abc123
# Send attachments:
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F 'body=test message' \
-F [email protected] \
-F attach2=@/my/path/to/Apprise.doc \
http://localhost:8000/notify/abc123
# attach= is an alias of attachment=
# Send a notification with a URL based attachment
curl -X POST \
-F 'urls=mailto://user:[email protected]' \
-F attach=https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png \
http://localhost:8000/notify/abc123
🏷️ Leveraging tagging allows you to associate one or more tags (or categories) with your Apprise URLs. By doing this, notifications only need to be referred to by their easy to remember notify tag name such as devops, admin, family, etc. You can very easily group more than one notification service under the same tag allowing you to notify a group of services at once. This is accomplished through configuration files (documented here) that can be saved to the persistent storage previously associated with a {KEY}.
# Send notification(s) to a {KEY} defined as 'abc123'
# but only notify the URLs associated with the 'devops' tag
curl -X POST -d 'tag=devops&body=test message' \
http://localhost:8000/notify/abc123
# Here is the same request but using JSON instead:
curl -X POST -d '{"tag":"devops", "body":"test message"}' \
-H "Content-Type: application/json" \
http://localhost:8000/notify/abc123
Reminders
Save a notification now and let the server send it later. A reminder can go out once, repeat on a schedule (every weekday at 9:00, every second Tuesday, the first of each month), or arrive on a public holiday every year. Create, pause and test them from the Reminders tab, or through the API:
# Every weekday at 9:00 Toronto time, sent to the 'devops' tag of 'abc123'
curl -X POST -H "Content-Type: application/json" \
-d '{"body": "Stand-up in 5 minutes", "tag": "devops",
"when": {"tz": "America/Toronto", "cron": "0 0 9 * * Mon-Fri"}}' \
http://localhost:8000/reminder/abc123
After a minute with no reminder waiting to be sent, the scheduler that sends them waits in a small process until reminders change. See Resource Usage for the memory it uses.
Plain Text Messages and Headers
/notify and /notify/{KEY} also accept the message as the whole request body. The Content-Type sets its format:
Content-Type
The body is sent as
text/plain
Text
text/html
HTML
text/markdown
Markdown
Add ?format= to use a different format. Requests with any other Content-Type, or none at all, work as before.
# Notify the untagged URLs saved under 'abc123'
curl -X POST -H "Content-Type: text/plain" \
--data-raw 'Deployment completed' \
http://localhost:8000/notify/abc123
# Stateless: sends to APPRISE_STATELESS_URLS
curl -X POST -H "Content-Type: text/plain" \
--data-raw 'Deployment completed' \
http://localhost:8000/notify
These headers work with every supported request format, including JSON and forms:
Header
Sets
X-Apprise-Title
The title
X-Apprise-Type
The type: info, success, warning or failure
X-Apprise-Tag
The tag expression
X-Apprise-Template
Template values as URL-encoded pairs, e.g. api_key=abc&room=ops
When the same field is sent more than once, the first one found is used:
The JSON or form payload.
The X-Apprise-* header.
The query string (?title=, ?type=, ?tag=).
Without a tag, a stateful request notifies only the URLs that have no tag, just like the Apprise CLI. The tag rules for locked and public configurations apply wherever the tag comes from.
Template Values
A saved YAML configuration can leave a value out of a URL and have it filled in
when the notification is sent. This lets you store the configuration without
the secrets in it, or let the caller fill in a value chosen by the author.
Write ${NAME} where the value belongs and declare every name in a template:
section:
template:
# A default is used unless the notification supplies a value
smtp_host: smtp.example.com
# No default: the notification or server environment must fill this name
api_key:
urls:
- sendgrid://${API_KEY}:[email protected]/[email protected]:
- tag: alerts
Send the values along with the notification, as a JSON object:
Apprise uses the first value it finds: the one sent with the notification, then
the default in the template: section, then APPRISE_TEMPLATE_<NAME> from the
server’s own environment. Environment values are never shown to a caller. A URL
still missing a value is skipped and the response reports 424 without saying
which name it was. The Notifications and Review tabs prompt for the
names a configuration needs, and /json/urls/{KEY} reports them to other
clients.
:warning: A variable placed in a URL can change any part of it, including its
host. A named YAML setting is safer when a less-trusted caller should control
only one option, which matters most for public and locked configurations.
Set APPRISE_ALLOW_TEMPLATES=no to switch the feature off; ${NAME} is then
ordinary text.
For the full details – where each value may be placed, what the API returns,
and how to fill in markers from your own client – see
appriseit.com.
Tagging
Tagging is one of the things that makes Apprise super handy and easy to use. Not only can you group one or more notifications together (all sharing the same tag), but you can assign multiple tags to the same URL and trigger it through crafted and selected tag expressions.
Example
Effect
TagA
TagA
TagA, TagB
TagA OR TagB
TagA TagC, TagB
(TagA AND TagC) OR TagB
TagB TagC
TagB AND TagC
# 'AND' Example
# Send notification(s) to a {KEY} defined as 'abc123'
# Notify the URLs associated with the 'devops' and 'after-hours' tag
# The 'space' acts as an 'AND' You can also use '+' character (in spot of the
# space to achieve the same results)
curl -X POST -d '{"tag":"devops after-hours", "body":"repo outage"}' \
-H "Content-Type: application/json" \
http://localhost:8000/notify/abc123
# 'OR' Example
# Send notification(s) to a {KEY} defined as 'def456'
# Notify the URLs associated with the 'dev' OR 'qa' tag
# The 'comma' acts as an 'OR'. The whitespace around the comma is ignored (if
# defined) You can also use '+' character (in spot of the space to achieve the
# same results)
curl -X POST -d '{"tag":"dev, qa", "body":"bug #000123 is back :("}' \
-H "Content-Type: application/json" \
http://localhost:8000/notify/def456
# 'AND' and 'OR' Example
# Send notification(s) to a {KEY} defined as 'projectX'
# Notify the URLs associated with the 'leaders AND teamA' AND additionally
# the 'leaders AND teamB'.
curl -X POST -d '{"tag":"leaders teamA, leaders teamB", "body":"meeting now"}' \
-H "Content-Type: application/json" \
http://localhost:8000/notify/projectX
Live Progress Streaming
Both notification endpoints can stream progress as each service is notified. Use ?stream=yes or send Accept: text/event-stream.
Normal responses still wait for notification work to finish, but send retained
logs one entry at a time. This avoids rebuilding a large result in memory. Live
progress streaming sends logs while notification work is still running.
The response contains log events followed by one result event. An unexpected processing failure produces an error event instead. See the StreamEvent schema in swagger.yaml for the event fields.
Log Detail
Send X-Apprise-Log-Level to choose how much detail comes back (trace,
debug, info, warning, error, or critical). For saved configurations,
debug and trace require administrator privileges or user access. Calls
using locked, public, or disabled access are limited to info. Stateless
calls allow every level because the caller provides their own URLs.
Slow clients keep up to 2 MB in memory before using automatically cleaned temporary storage, which holds up to 256 MB by default. During normal operation, events remain ordered and are not omitted while the client stays connected.
If the storage limit is reached or temporary storage fails, notification delivery continues and the stream reports an ERROR log asking the caller to contact the server administrator. Later logs continue whenever space becomes available.
event: log
data: {"level": "INFO", "asctime": "2025-01-01 12:00:00,000", "message": "Sent to Telegram", "service": "Telegram"}
event: result
data: {"status": "SUCCESS"}
API Response Codes
HTTP Code
Name
Effect
200
OK
The request succeeded.
204
No Content
A removal succeeded (/del, or DELETE on a reminder), or nothing was found to retrieve or remove (/get, /cfg, /json/urls or /del). The response has no body.
302
Found
The Web interface redirected the browser after a login, logout, or configuration selection.
400
Bad Request
The request contained an invalid key, payload, field, format, tag, or recursion header, or a stateless /notify had no valid URLs to send to.
401
Unauthorized
Required Basic Auth credentials were missing or invalid.
403
Forbidden
The server mode or caller’s access level denied the operation.
404
Not Found
The route, requested configuration, or reminder does not exist, including a /notify/{KEY} with no saved configuration. Every /reminder route returns this when reminders are turned off. Strict mode returns this for unknown routes.
405
Method Not Allowed
The route does not support the request method. See the response’s Allow header.
406
Not Acceptable
A recursion limit or another server rule rejected the operation.
409
Conflict
A configuration move targeted an existing Config ID, or a configuration already has the most reminders allowed.
413
Content Too Large
Nginx rejected a body larger than the route or server upload limit, or a reminder’s attachments do not fit its configuration’s quota or the server’s attachment space.
414
URI Too Long
Nginx rejected a request target that was too long.
417
Expectation Failed
The health check found a blocking configuration or permission problem.
421
Misdirected Request
A Web interface page was requested while APPRISE_API_ONLY=yes.
424
Failed Dependency
At least one notification failed, no requested tag matched, the configuration store could not complete a dependent operation, or an attachment preview (/attach) could not download the file.
429
Too Many Requests
Nginx temporarily rate-limited the request. Packaged deployments return Retry-After: 60.
431
Request Header Fields Too Large
Django rejected a JSON payload or plain text message body above APPRISE_UPLOAD_MAX_MEMORY_SIZE.
500
Internal Server Error
The server could not save or load data, or encountered an unexpected I/O error.
502
Bad Gateway
Nginx could not obtain a valid response from the application worker.
503
Service Unavailable
The application worker is temporarily unavailable.
504
Gateway Timeout
The application worker did not respond before the proxy timeout.
API Notes
{KEY} must be 1-128 alphanumeric characters in length. In addition to this, the underscore (_) and dash (-) are also accepted.
Consider using keys like sha1, sha512, uuid, etc to secure shared namespaces if you wish to open your platform to others. Or keep it simple in a controlled environment and just use the default string apprise as your key (and as illustrated in the examples above). You can override this default value by setting the APPRISE_DEFAULT_CONFIG_ID(see below).
Specify the Content-Type of application/json to use the JSON support otherwise the default expected format is application/x-www-form-urlencoded (whether it is specified or not).
Authentication is disabled by default. Set APPRISE_AUTH_REQUIRED=yes to enable it; see Authentication.
There are no additional dependencies (such as database requirements, etc) should you choose to use the optional persistent store (mounted as /config).
Environment Variables
The use of environment variables allow you to provide overrides to default settings.
Variable
Description
PUID
The User ID you wish the Apprise services under the hood to run as when the container starts as root and no explicit --user / user: has been set. The default is 1000 if not otherwise specified.
PGID
The Group ID used in the same scenario as PUID. If the container is started with an explicit --user or user:, that value takes precedence and PUID / PGID are not consulted for process privileges.
IPV4_ONLY
Force an all IPv4 only environment (default supports both IPV4 and IPv6). If IPV6_ONLY is also set, this is treated as an invalid, ambiguous configuration and the startup script will exit with an error.
IPV6_ONLY
Force an all IPv6 only environment (default supports both IPv4 and IPv6). If IPV4_ONLY is also set, this is treated as an invalid, ambiguous configuration and the startup script will exit with an error.
HTTP_PORT
Force the default listening port to be something other than 8000 within the Docker container.
APPRISE_ALLOW_TEMPLATES
Pass template support directly to Apprise. Defaults to yes, matching the CLI. Set it to no to ignore template: sections and APPRISE_TEMPLATE_<NAME>, leave ${NAME} as ordinary text, and skip template-specific checks. Only the server operator controls this setting.
APPRISE_TEMPLATE_<NAME>
Fills a ${NAME} in saved YAML only when the notification supplies no value and the configuration has no default. Blank values are ignored.
STRICT_MODE
Applicable only to container deployments. Set this to yes to allow only known Apprise routes and add tighter authentication rate limits. Unknown routes return 404, unsupported methods return 405, and rate-limited requests return 429, allowing reverse proxies and other security tooling to handle them reliably. The default is no.
APPRISE_CONNECTION_TIMEOUT
How long the container waits for activity from a live notification stream, in seconds. Accepts 30 to 3600 and defaults to 600 (10 minutes). This does not limit the total notification time.
APPRISE_DEFAULT_THEME
Can be set to light, dark or auto; it defaults to auto if not otherwise provided. auto follows the light or dark setting of the visitor’s system. The values are case-insensitive, and l, d or a may be used as shorthand. The theme can be toggled from within the website as well.
APPRISE_DEFAULT_CONFIG_ID
Defaults to apprise. This is the presumed configuration ID you always default to when accessing the configuration manager via the website.
APPRISE_CONFIG_DIR
Defines an (optional) persistent store location of all configuration files saved. By default: - Configuration is written to the apprise_api/var/config directory when just using the Djangomanage runserver script. However for the path for the container is /config.
APPRISE_STORAGE_DIR
Defines an (optional) persistent store location of all cache files saved. By default persistent storage is written into the <APPRISE_CONFIG_DIR>/store.
APPRISE_STORAGE_MODE
Defines the storage mode to use. If no APPRISE_STORAGE_DIR is identified, then this is set to memory in all circumtances regardless what it might otherwise be set to. The possible options are: 📌 auto: This is also the default. Writes cache files on demand only. 📌 memory: Persistent storage is disabled; local memory is used for simple internal references. This is effectively the behavior of Apprise of versions 1.8.1 and earlier. 📌 flush: A bit more i/o intensive then auto. Content is written to disk constantly if changed in anyway. This mode is still experimental. Values are case-insensitive; a, m, and f may be used as shorthand.
APPRISE_STORAGE_UID_LENGTH
Defines the unique key lengths used to identify an Apprise URL. By default this is set to 8. Value can not be set to a smaller value then 2 or larger then 64.
APPRISE_STATELESS_STORAGE
Allow stateless URLs (in addition to stateful) to also leverage persistent storage. This defaults to no and can however be set to yes by simply defining the global variable as such.
APPRISE_STORAGE_PRUNE_DAYS
Age in days before storeprune removes persistent notification state. Defaults to 30.
APPRISE_AUTH_PRUNE_SECONDS
Age in seconds before authprune removes a lock that has no configuration. Defaults to 2592000 (30 days). Locks with configuration are retained.
APPRISE_PRUNE_INTERVAL_SECONDS
How often the container prunes persistent state and unused authentication locks. Defaults to 86400 (daily).
APPRISE_PRUNE_TIMEOUT_SECONDS
Maximum time allowed for each automatic prune run. Defaults to 28800 (8 hours) and is shortened automatically when it is not below the prune interval.
APPRISE_PRUNE_ENABLED
Set to no to stop automatic pruning. Manual commands remain available. Defaults to yes.
APPRISE_REMINDER_ENABLED
Set to no to turn off reminders (notifications saved now and sent later). Defaults to yes.
APPRISE_REMINDER_WORKERS
The number of reminders that can be sent at the same time. Defaults to 4.
APPRISE_REMINDER_GRACE
How many seconds late a reminder may still be sent, for example after a restart. Older ones are skipped. Defaults to 3600 (1 hour).
APPRISE_REMINDER_URLS_MAX
The most Apprise URLs one reminder can hold. 0 turns them off. Defaults to 100.
APPRISE_REMINDER_MAX
The most reminders a Config ID can have, for everyone but the administrator. Defaults to 100.
APPRISE_REMINDER_USER_MIN_INTERVAL
The fewest seconds apart anyone but the administrator may set a reminder to repeat. 0 or 1 sets no limit. Defaults to 60.
APPRISE_REMINDER_ATTACH_QUOTA
The most space, in MB, the attachments stored with a Config ID’s reminders may take, for everyone but the administrator. 0 turns attachments off for reminders, web addresses included. Defaults to 50.
APPRISE_REMINDER_STORE_MAX
The most space, in MB, all stored reminder attachments on the server may take together, for everyone but the administrator. 0 sets no limit. Defaults to 1024.
APPRISE_REMINDER_IDLE_DAYS
Pause a Config ID’s reminders after this many days without use. Defaults to 0 (never pause).
APPRISE_REMINDER_PRUNE_DAYS
Days a finished reminder (nothing left to send) is kept before prune removes it. Defaults to 7.
APPRISE_ATTACH_DIR
The directory the uploaded attachments are placed in. By default: - Attachments are written to the apprise_api/var/attach directory when just using the Djangomanage runserver script. However for the path for the container is /attach.
APPRISE_ATTACH_SIZE
Over-ride the attachment size (defined in MB). By default it is set to 200 (Megabytes). You can set this up to a maximum value of 500 which is the restriction in place for NginX (internal hosting ervice) at this time. If you set this to zero (0) then attachments will not be passed along even if provided.
APPRISE_UPLOAD_MAX_MEMORY_SIZE
Over-ride the in-memory accepted payload size (defined in MB). By default it is set to 3 (Megabytes). There is no reason the HTTP payload (excluding attachments) should exceed this limit. This value is only configurable for those who have edge cases where there are exceptions to this rule.
APPRISE_CONFIG_MAX_LENGTH
Over-ride the maximum accepted configuration payload length (defined in KB). The value provided (in KB) is internally converted to bytes and can never exceed APPRISE_UPLOAD_MAX_MEMORY_SIZE (defined in MB). The default is 512 (KB).
APPRISE_STREAM_MEMORY_SIZE
Memory used by each live stream before waiting logs move to disk, in MB. The same value limits memory used by completed result logs. The default is 2. Set it to 0 to use disk immediately when disk storage is enabled.
APPRISE_STREAM_DISK_SIZE
Temporary disk allowance for each live stream and, separately, each completed result, in MB. The default is 256. Set it to 0 to disable temporary disk storage and keep result logs in memory. Live streams also remain in memory when the memory size is greater than 0; when both sizes are 0, live-stream backlog retention is disabled.
APPRISE_STREAM_WORKER_COUNT
Maximum streamed notifications that can actively send at the same time. Additional streams wait according to APPRISE_STREAM_QUEUE_SIZE, then receive 503 when that queue is full. The default is 4 per application process and should suit most installations.
APPRISE_STREAM_QUEUE_SIZE
Additional live streams that may remain connected while waiting or finishing their responses. Further streams receive 503 with a Retry-After header. The default is 8 per application process.
APPRISE_STATELESS_URLS
For a non-persistent solution, you can take advantage of this global variable. Use this to define a default set of Apprise URLs to notify when using API calls to /notify. If no {KEY} is defined when calling /notify then the URLs defined here are used instead. By default, nothing is defined for this variable.
APPRISE_STATEFUL_MODE
This can be set to the following possible modes: 📌 hash: This is also the default. It stores the server configuration in a hash formatted that can be easily indexed and compressed. 📌 simple: Configuration is written straight to disk using the {KEY}.cfg (if TEXT based) and {KEY}.yml (if YAML based). 📌 disabled: Straight up deny any read/write queries to the servers stateful store. Effectively turn off the Apprise Stateful feature completely. Values are case-insensitive.
APPRISE_STATELESS_MODE
Controls stateless /notify calls: 📌 enabled: Accept stateless notifications. This is the default. 📌 disabled: Reject stateless notifications. If stateful mode is also disabled, /status reports degraded.
APPRISE_CONFIG_LOCK
Hides configuration content and management from regular users. An authenticated administrator retains full access. Without authentication, management operations are denied. Stateful and stateless notifications continue to work normally, including optional stateful tag selection. Defaults to no.
APPRISE_AUTH_REQUIRED
Enables built-in authentication when set to yes. Defaults to no. When disabled, APPRISE_USER, APPRISE_PASSWORD, and saved configuration logins are ignored. See Authentication.
APPRISE_USER
Optional administrator username used only when APPRISE_AUTH_REQUIRED=yes. It requires APPRISE_PASSWORD; colons are not allowed.
APPRISE_PASSWORD
Optional administrator password used only when APPRISE_AUTH_REQUIRED=yes. It may be used without a username. Leave it unset to run authentication without an administrator account.
APPRISE_BASIC_AUTH_REALM
Label shown in Basic Auth prompts. Defaults to Apprise API; use a different label for each instance sharing a host.
APPRISE_WEB_AUTH_SECRET
Optional key used to sign browser logins and the Review page’s test sends. When unset, a random key is created once and saved as .web_auth_secret in APPRISE_CONFIG_DIR while logins are required, or made at each start otherwise. Servers that share one APPRISE_CONFIG_DIR need the same value. Changing it signs users out without moving hash-mode configurations.
APPRISE_TRUSTED_ORIGINS
Origins allowed to make browser writes, separated by commas. Use scheme://host[:port], such as https://apprise.example.com. HTTPS deployments should set this because bundled nginx does not forward the original scheme (issue #275).
APPRISE_ADMIN
Shows the configuration list when APPRISE_STATEFUL_MODE=simple. Authentication permissions still decide who may use it. Defaults to yes; set it to no to hide the list.
APPRISE_INTERPRET_EMOJIS
Override the Apprise interpret-emojis setting. This defaults to none (not set), but can be enforced to no or yes.
APPRISE_HTTP_REDIRECTS
By default, Apprise follows HTTP 3xx redirects, matching the behaviour of the underlying requests library. Set to no to disable redirect following globally across all plugins without having to add redirect=no to every individual URL. Individual URLs can always override this with ?redirect=yes or ?redirect=no regardless of this setting. This defaults to yes.
APPRISE_DEFAULT_FORMAT
Optional text, html, or markdown default for API requests that omit format. Blank, null, and explicit request values take priority. The Web UI starts with TEXT selected and always submits a choice, so this setting applies only to direct API calls.
APPRISE_ASSET_<NAME>
Sets the Apprise asset option named by <NAME> in lower case, such as APPRISE_ASSET_APP_ID=Operations for app_id. It wins over any other variable that sets the same option. An unknown option, or a value Apprise refuses, stops the server from starting.
APPRISE_DENY_SERVICES
A comma separated set of entries identifying what plugins to deny access to. You only need to identify one schema entry associated with a plugin to in turn disable all of it. Hence, if you wanted to disable the glib plugin, you do not need to additionally include qt as well since it’s included as part of the (dbus) package; consequently specifying qt would in turn disable the glib module as well (another way to accomplish the same task). To exclude/disable more the one upstream service, simply specify additional entries separated by a , (comma) or (space). The APPRISE_DENY_SERVICES entries are ignored if the APPRISE_ALLOW_SERVICES is identified. By default, this is initialized to windows, dbus, gnome, macosx, syslog, cups, ipp (blocking local actions from being issued inside of the docker container, and stopping callers from printing to printers on your network) An entry that is not a known schema (such as a typo) is ignored; a warning is logged once and the server keeps running.
APPRISE_ALLOW_SERVICES
A comma separated set of entries identifying what plugins to allow access to. You may only use alpha-numeric characters as is the restriction of Apprise Schemas (schema://) anyway. To exclusively include more the one upstream service, simply specify additional entries separated by a , (comma) or (space). The APPRISE_DENY_SERVICES entries are ignored if the APPRISE_ALLOW_SERVICES is identified. An entry that is not a known schema (such as a typo) is ignored; a warning is logged once and the server keeps running.
APPRISE_API_ONLY
This option will disable the entire access to web administration interface and only the API will be available for use. By default, this option will be set to no, or you can omit this variable if you wish.
APPRISE_ATTACH_ALLOW_URL
A comma separated set of entries identifying the HTTP Attach URLs the Apprise API shall always accept. Use wildcards such as * and ? to help construct the URL/Hosts you identify. Use a space and/or a comma to identify more then one entry. By default this is set to * (Accept all provided URLs).
APPRISE_ATTACH_REJECT_URL
A comma separated set of entries identifying the HTTP Attach URLs the Apprise API shall always reject. Use wildcards such as * and ? to help construct the URL/Hosts you identify. APPRISE_ATTACH_REJECT_URL is always processed before APPRISE_ATTACH_ALLOW_URL. Use a space and/or a comma to identify more then one entry. By default this is set to 127.0.* localhost*. You can also add the special keyword internal, which blocks any destination that resolves to a loopback, private, link-local, or otherwise non-public address – including LAN devices, so it’s off by default.
APPRISE_ATTACH_PREVIEW_INTERNAL
Set to yes to let the attachment preview (/attach) download from local network addresses, such as a camera on your LAN. By default this is set to no.
SECRET_KEY
A Django variable acting as a salt for most things that require security. This API uses it for the hash sequences when writing the configuration files to disk (hash mode only).
ALLOWED_HOSTS
A list of strings representing the host/domain names that this API can serve. This is a security measure to prevent HTTP Host header attacks, which are possible even under many seemingly-safe web server configurations. By default this is set to * allowing any host. Use space to delimit more than one host.
APPRISE_PLUGIN_PATHS
Apprise supports the ability to define your own schema:// definitions and load them. To read more about how you can create your own customizations, check out this link here. You may define one or more paths (separated by comma ,) here. By default the apprise_api/var/plugin directory is scanned (which does not include anything). Feel free to set this to an empty string to disable any custom plugin loading.
APPRISE_RECURSION_MAX
This defines the number of times one Apprise API Server can (recursively) call another. This is to both support and mitigate abuse through the apprise:// schema for those who choose to use it. When leveraged properly, you can increase this (recursion max) value and successfully load balance the handling of many notification requests through many additional API Servers. By default this value is set to 1 (one).
APPRISE_WEBHOOK_URL
Define a Webhook that Apprise should POST results to upon each notification call made. This must be in the format of an http:// or https:// URI. By default no URL is specified and no webhook is actioned.
APPRISE_WORKER_COUNT
Over-ride the number of workers to run. by default this is calculated (2 * CPUS_DETECTED) + 1as advised by Gunicorn’s website. Hobby enthusiasts and/or users who are simply setting up Apprise to support their home (light-weight usage) may wish to set this value to 1 to limit the resources the Apprise server prepares for itself.
APPRISE_WORKER_TIMEOUT
Over-ride the worker timeout value (in seconds); by default this is 300 (5 min) which should be more than enough time to send all pending notifications.
APPRISE_BASE_URL
Those who are hosting the API behind a proxy that requires a subpath to gain access to this API should specify this path here as well. By default this is not set at all.
LOG_LEVEL
Adjust the log level to the console. Possible values are CRITICAL, ERROR, WARNING, INFO, and DEBUG.
DEBUG
This defaults to no and can however be set to yes by simply defining the global variable as such.
TZ
Sets the timezone for all log timestamps produced by both Nginx and the application. Both services run inside the same container and share this setting. Defaults to Etc/UTC if not specified. Any IANA timezone name is accepted (e.g. America/New_York, Europe/London) as tzdata is included in the container image. See the list of tz database time zones for valid values.
Nginx Overrides
The 2 files you can override are:
/etc/nginx/location-override.conf which is included within all of the Apprise API NginX location references.
/etc/nginx/server-override.conf which is included within Apprise API server reference.
Authentication
Built-in Basic Auth
Apprise API can protect its endpoints with HTTP Basic Auth. Enable it with APPRISE_AUTH_REQUIRED=yes. Unauthenticated requests receive 401 unless an administrator explicitly marks a Config ID as public for tagged notifications:
Requests remain open. Administrator settings and saved configuration logins are ignored.
Administrator enabled
APPRISE_AUTH_REQUIRED=yes with APPRISE_PASSWORD
The administrator can access every key and manage configuration logins. APPRISE_USER is optional.
Administrator disabled
APPRISE_AUTH_REQUIRED=yes without APPRISE_PASSWORD
Only existing configuration logins can access their own keys. New logins cannot be created until an administrator password is configured.
Global mode switches always win: no caller, including the administrator, can use stateful or stateless notifications when that mode is disabled. Administrator credentials bypass per-configuration access and APPRISE_CONFIG_LOCK, but never a disabled global mode.
APPRISE_USER without APPRISE_PASSWORD produces a warning and leaves the administrator account disabled. This is useful when each person should use only their assigned Config ID.
Set APPRISE_BASIC_AUTH_REALM to give each instance a recognizable label in login prompts. It defaults to Apprise API.
Basic Auth does not encrypt credentials. Use HTTPS whenever the server is reachable outside a trusted network.
API clients send Basic Auth with every request. Recent successful per-configuration checks use a bounded five-minute m</apprise_config_dir>
评论