Debian Codegraph @

README.md

raw symbols SCIP
1 ![Apprise Logo](https://raw.githubusercontent.com/caronc/apprise/master/apprise/assets/themes/default/apprise-logo.png)
2
3 <hr/>
4
5 **ap·prise** / *verb*<br/>
6 To inform or tell (someone). To make one aware of something.
7 <hr/>
8
9 *Apprise* allows you to send a notification to *almost* all of the most popular *notification* services available to us today such as: Telegram, Discord, Slack, Amazon SNS, Gotify, etc.
10
11 * One notification library to rule them all.
12 * A common and intuitive notification syntax.
13 * Supports the handling of images and attachments (_to the notification services that will accept them_).
14 * It's incredibly lightweight.
15 * Amazing response times because all messages sent asynchronously.
16
17 Developers who wish to provide a notification service no longer need to research each and every one out there. They no longer need to try to adapt to the new ones that comeout thereafter. They just need to include this one library and then they can immediately gain access to almost all of the notifications services available to us today.
18
19 System Administrators and DevOps who wish to send a notification now no longer need to find the right tool for the job. Everything is already wrapped and supported within the `apprise` command line tool (CLI) that ships with this product.
20
21 [![Paypal](https://img.shields.io/badge/paypal-donate-green.svg)](https://www.paypal.com/donate/?hosted_button_id=CR6YF7KLQWQ5E)
22 [![Follow](https://img.shields.io/twitter/follow/l2gnux)](https://twitter.com/l2gnux/)<br/>
23 [![Discord](https://img.shields.io/discord/558793703356104724.svg?colorB=7289DA&label=Discord&logo=Discord&logoColor=7289DA&style=flat-square)](https://discord.gg/EGg4rhmpC2)
24 [![Python](https://img.shields.io/pypi/pyversions/apprise.svg?style=flat-square)](https://pypi.org/project/apprise/)
25 [![Build Status](https://github.com/caronc/apprise/actions/workflows/tests.yml/badge.svg)](https://github.com/caronc/apprise/actions/workflows/tests.yml)
26 [![Lines of Code](https://raw.githubusercontent.com/caronc/apprise/master/.github/badges/loc.svg)](https://github.com/caronc/apprise/actions/workflows/loc-badge.yml)
27 [![CodeCov Status](https://codecov.io/github/caronc/apprise/branch/master/graph/badge.svg)](https://codecov.io/github/caronc/apprise)
28 [![PyPi Downloads](https://img.shields.io/pepy/dt/apprise.svg?style=flat-square)](https://pypi.org/project/apprise/)
29
30 Visit the [Official Documentation](https://appriseit.com/getting-started/) site for more information on Apprise.
31
32 # Table of Contents
33 <!--ts-->
34 * [Supported Notifications](#supported-notifications)
35 * [Productivity Based Notifications](#productivity-based-notifications)
36 * [SMS Notifications](#sms-notifications)
37 * [Desktop Notifications](#desktop-notifications)
38 * [Email Notifications](#email-notifications)
39 * [Custom Notifications](#custom-notifications)
40 * [Installation](#installation)
41 * [Command Line Usage](#command-line-usage)
42 * [Configuration Files](#cli-configuration-files)
43 * [File Attachments](#cli-file-attachments)
44 * [Loading Custom Notifications/Hooks](#cli-loading-custom-notificationshooks)
45 * [Environment Variables](#cli-environment-variables)
46 * [Developer API Usage](#developer-api-usage)
47 * [Configuration Files](#api-configuration-files)
48 * [File Attachments](#api-file-attachments)
49 * [Loading Custom Notifications/Hooks](#api-loading-custom-notificationshooks)
50 * [Persistent Storage](#persistent-storage)
51 * [More Supported Links and Documentation](#want-to-learn-more)
52 <!--te-->
53
54 # Supported Notifications
55
56 The section identifies all of the services supported by this library. [Check out the wiki for more information on the supported modules here](https://appriseit.com/).
57
58 ## Productivity Based Notifications
59
60 The table below identifies the services this tool supports and some example service URLs you need to use in order to take advantage of it. Click on any of the services listed below to get more details on how you can configure Apprise to access them. If you're having trouble constructing your own URL; try our [Apprise URL Builder](https://appriseit.com/tools/url-builder/) out.
61
62 | Notification Service | Service ID | Default Port | Example Syntax |
63 | -------------------- | ---------- | ------------ | -------------- |
64 | [Apprise API](https://appriseit.com/services/apprise_api/) | apprise:// or apprises:// | (TCP) 80 or 443 | apprise://hostname/Token
65 | [AWS SES](https://appriseit.com/services/ses/) | ses:// | (TCP) 443 | ses://user@domain/AccessKeyID/AccessSecretKey/RegionName<br/>ses://user@domain/AccessKeyID/AccessSecretKey/RegionName/email1/email2/emailN
66 | [Bark](https://appriseit.com/services/bark/) | bark:// | (TCP) 80 or 443 | bark://hostname<br />bark://hostname/device_key<br />bark://hostname/device_key1/device_key2/device_keyN<br/>barks://hostname<br />barks://hostname/device_key<br />barks://hostname/device_key1/device_key2/device_keyN
67 | [Blink(1)](https://appriseit.com/services/blink1/) | blink1:// | USB | blink1://<br />blink1://serial/
68 | [BlueSky](https://appriseit.com/services/bluesky/) | bluesky:// | (TCP) 443 | bluesky://Handle:AppPw<br />bluesky://Handle:AppPw/TargetHandle<br />bluesky://Handle:AppPw/TargetHandle1/TargetHandle2/TargetHandleN
69 | [Brevo](https://appriseit.com/services/brevo/) | brevo:// | (TCP) 443 | brevo://APIToken:FromEmail/<br />brevo://APIToken:FromEmail/ToEmail<br />brevo://APIToken:FromEmail/ToEmail1/ToEmail2/ToEmailN/
70 | [Chanify](https://appriseit.com/services/chanify/) | chantify:// | (TCP) 443 | chantify://token
71 | [Amazon Chime](https://appriseit.com/services/chime/) | chime:// | (TCP) 443 | chime://WebhookID/Token
72 | [Discord](https://appriseit.com/services/discord/) | discord:// | (TCP) 443 | discord://webhook_id/webhook_token<br />discord://avatar@webhook_id/webhook_token
73 | [Dot.](https://appriseit.com/services/dot/) | dot:// | (TCP) 443 | dot://apikey@device_id/text/<br />dot://apikey@device_id/image/<br />**Note**: `device_id` is the Quote/0 hardware serial
74 | [Emby](https://appriseit.com/services/emby/) | emby:// or embys:// | (TCP) 8096 | emby://user@hostname/<br />emby://user:password@hostname
75 | [Enigma2](https://appriseit.com/services/enigma2/) | enigma2:// or enigma2s:// | (TCP) 80 or 443 | enigma2://hostname
76 | [Evolution API](https://appriseit.com/services/evolution/) | evolution:// or evolutions:// | (TCP) 80 or 443 | evolution://apikey@hostname/instance/ToPhoneNo<br/>evolution://apikey@hostname:port/instance/ToPhoneNo<br/>evolution://apikey@hostname/instance/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
77 | [FCM](https://appriseit.com/services/fcm/) | fcm:// | (TCP) 443 | fcm://project@apikey/DEVICE_ID<br />fcm://project@apikey/#TOPIC<br/>fcm://project@apikey/DEVICE_ID1/#topic1/#topic2/DEVICE_ID2/
78 | [Feishu](https://appriseit.com/services/feishu/) | feishu:// | (TCP) 443 | feishu://token
79 | [Flock](https://appriseit.com/services/flock/) | flock:// | (TCP) 443 | flock://token<br/>flock://botname@token<br/>flock://app_token/u:userid<br/>flock://app_token/g:channel_id<br/>flock://app_token/u:userid/g:channel_id
80 | [Flowtriq](https://appriseit.com/services/flowtriq/) | flowtriq:// or flowtriqs:// | (TCP) 80 or 443 | flowtriq://apikey@hostname/webhook/path<br />flowtriqs://apikey@hostname/webhook/path
81 | [Google Chat](https://appriseit.com/services/googlechat/) | gchat:// | (TCP) 443 | gchat://workspace/key/token
82 | [Gotify](https://appriseit.com/services/gotify/) | gotify:// or gotifys:// | (TCP) 80 or 443 | gotify://hostname/token<br />gotifys://hostname/token?priority=high
83 | [GroupMe](https://appriseit.com/services/groupme/) | groupme:// | (TCP) 443 | groupme://bot_id<br />groupme://bot_id/access_token
84 | [Growl](https://appriseit.com/services/growl/) | growl:// | (UDP) 23053 | growl://hostname<br />growl://hostname:portno<br />growl://password@hostname<br />growl://password@hostname:port</br>**Note**: you can also use the get parameter _version_ which can allow the growl request to behave using the older v1.x protocol. An example would look like: growl://hostname?version=1
85 | [Guilded](https://appriseit.com/services/guilded/) | guilded:// | (TCP) 443 | guilded://webhook_id/webhook_token<br />guilded://avatar@webhook_id/webhook_token
86 | [Home Assistant](https://appriseit.com/services/homeassistant/) | hassio:// or hassios:// | (TCP) 8123 or 443 | hassio://hostname/accesstoken<br />hassio://user@hostname/accesstoken<br />hassio://user:password@hostname:port/accesstoken<br />hassio://hostname/optional/path/accesstoken
87 | [HumHub](https://appriseit.com/services/humhub/) | humhub:// or humhubs:// | (TCP) 80 or 443 | humhubs://token@hostname/container_id<br />humhubs://user:password@hostname/container_id<br />humhubs://token@hostname/id1/id2/id3
88 | [IFTTT](https://appriseit.com/services/ifttt/) | ifttt:// | (TCP) 443 | ifttt://webhooksID/Event<br />ifttt://webhooksID/Event1/Event2/EventN<br/>ifttt://webhooksID/Event1/?+Key=Value<br/>ifttt://webhooksID/Event1/?-Key=value1
89 | [IRC](https://appriseit.com/services/irc/) | irc:// or ircs:// | (TCP) 6667 or 6697 | ircs://user:[email protected]/@user<br /> ircs://user:[email protected]/#channel?join=true&mode=nickserv<br/>ircs://user:[email protected]/@user1/@user2/@user3/#channel1
90 | [Jellyfin](https://appriseit.com/services/jellyfin/) | jellyfin:// or jellyfins:// | (TCP) 8096 | jellyfin://user@hostname/<br />jellyfins://user:password@hostname
91 | [Jira](https://appriseit.com/services/jira/) | jira:// | (TCP) 443 | jira://APIKey<br/>jira://APIKey/@UserID<br/>jira://APIKey/#Team<br/>jira://APIKey/\*Schedule<br/>jira://APIKey/^Escalation
92 | [Join](https://appriseit.com/services/join/) | join:// | (TCP) 443 | join://apikey/device<br />join://apikey/device1/device2/deviceN/<br />join://apikey/group<br />join://apikey/groupA/groupB/groupN<br />join://apikey/DeviceA/groupA/groupN/DeviceN/
93 | [KODI](https://appriseit.com/services/kodi/) | kodi:// or kodis:// | (TCP) 8080 or 443 | kodi://hostname<br />kodi://user@hostname<br />kodi://user:password@hostname:port
94 | [Kook](https://appriseit.com/services/kook/) | kook:// | (TCP) 443 | kook://token/channel_id<br/>kook://token/channel1/channel2<br/>kook://token/@user_id<br/>kook://webhook_key?mode=webhook
95 | [Kumulos](https://appriseit.com/services/kumulos/) | kumulos:// | (TCP) 443 | kumulos://apikey/serverkey
96 | [LaMetric Time](https://appriseit.com/services/lametric/) | lametric:// | (TCP) 443 | lametric://apikey@device_ipaddr<br/>lametric://apikey@hostname:port<br/>lametric://client_id@client_secret
97 | [Lark](https://appriseit.com/services/lark/) | lark:// | (TCP) 443 | lark://BotToken
98 | [Line](https://appriseit.com/services/line/) | line:// | (TCP) 443 | line://Token@User<br/>line://Token/User1/User2/UserN
99 | [Mailgun](https://appriseit.com/services/mailgun/) | mailgun:// | (TCP) 443 | mailgun://user@hostname/apikey<br />mailgun://user@hostname/apikey/email<br />mailgun://user@hostname/apikey/email1/email2/emailN<br />mailgun://user@hostname/apikey/?name="From%20User"
100 | [MailerSend](https://appriseit.com/services/mailersend/) | mailersend:// | (TCP) 443 | mailersend://APIToken:FromEmail/<br />mailersend://APIToken:FromEmail/ToEmail<br />mailersend://APIToken:FromEmail/ToEmail1/ToEmail2/ToEmailN/
101 | [Mastodon](https://appriseit.com/services/mastodon/) | mastodon:// or mastodons://| (TCP) 80 or 443 | mastodon://access_key@hostname<br />mastodon://access_key@hostname/@user<br />mastodon://access_key@hostname/@user1/@user2/@userN
102 | [Matrix](https://appriseit.com/services/matrix/) | matrix:// or matrixs:// | (TCP) 80 or 443 | matrix://hostname<br />matrix://user@hostname<br />matrixs://user:pass@hostname:port/#room_alias<br />matrixs://user:pass@hostname:port/!room_id<br />matrixs://user:pass@hostname:port/#room_alias/!room_id/#room2<br />matrixs://token@hostname:port/?webhook=matrix<br />matrix://user:token@hostname/?webhook=slack&format=markdown
103 | [Mattermost](https://appriseit.com/services/mattermost/) | mmost:// or mmosts:// | (TCP) 8065 | mmost://hostname/authkey<br />mmost://hostname:80/authkey<br />mmost://user@hostname:80/authkey<br />mmost://hostname/authkey?channel=channel<br />mmosts://hostname/authkey<br />mmosts://user@hostname/authkey<br />
104 | [Microsoft Power Automate / Workflows (MSTeams)](https://appriseit.com/services/workflows/) | workflows:// | (TCP) 443 | workflows://WorkflowID/Signature/
105 | [Misskey](https://appriseit.com/services/misskey/) | misskey:// or misskeys://| (TCP) 80 or 443 | misskey://access_token@hostname
106 | [MQTT](https://appriseit.com/services/mqtt/) | mqtt:// or mqtts:// | (TCP) 1883 or 8883 | mqtt://hostname/topic<br />mqtt://user@hostname/topic<br />mqtts://user:pass@hostname:9883/topic
107 | [Nextcloud](https://appriseit.com/services/nextcloud/) | ncloud:// or nclouds:// | (TCP) 80 or 443 | ncloud://adminuser:pass@host/User<br/>nclouds://adminuser:pass@host/User1/User2/UserN
108 | [NextcloudTalk](https://appriseit.com/services/nextcloudtalk/) | nctalk:// or nctalks:// | (TCP) 80 or 443 | nctalk://user:pass@host/RoomId<br/>nctalks://user:pass@host/RoomId1/RoomId2/RoomIdN
109 | [Notica](https://appriseit.com/services/notica/) | notica:// | (TCP) 443 | notica://Token/
110 | [Notifiarr](https://appriseit.com/services/notifiarr/) | notifiarr:// | (TCP) 443 | notifiarr://apikey/#channel<br />notifiarr://apikey/#channel1/#channel2/#channeln
111 | [Notifico](https://appriseit.com/services/notifico/) | notifico:// or notificos:// | (TCP) 80 or 443 | notifico://ProjectID/MessageHook/<br />notifico://host/ProjectID/MessageHook/<br />notificos://host/ProjectID/MessageHook/
112 | [ntfy](https://appriseit.com/services/ntfy/) | ntfy:// | (TCP) 80 or 443 | ntfy://topic/<br/>ntfys://topic/
113 | [Octopush](https://appriseit.com/services/octopush/) | octopush:// | (TCP) 443 | octopush://APILogin/APIKey/TargetPhoneNo<br />octopush://Sender:APILogin/APIKey/TargetPhoneNo<br />octopush://Sender:APILogin/APIKey/TargetPhoneNo1/TargetPhoneNo2/TargetPhoneNoN
114 | [Office 365](https://appriseit.com/services/office365/) | o365:// | (TCP) 443 | o365://TenantID:AccountEmail/ClientID/ClientSecret<br />o365://TenantID:AccountEmail/ClientID/ClientSecret/TargetEmail<br />o365://TenantID:AccountEmail/ClientID/ClientSecret/TargetEmail1/TargetEmail2/TargetEmailN
115 | [OneSignal](https://appriseit.com/services/onesignal/) | onesignal:// | (TCP) 443 | onesignal://AppID@APIKey/PlayerID<br/>onesignal://TemplateID:AppID@APIKey/UserID<br/>onesignal://AppID@APIKey/#IncludeSegment<br/>onesignal://AppID@APIKey/Email
116 | [Opsgenie](https://appriseit.com/services/opsgenie/) | opsgenie:// | (TCP) 443 | opsgenie://APIKey<br/>opsgenie://APIKey/UserID<br/>opsgenie://APIKey/#Team<br/>opsgenie://APIKey/\*Schedule<br/>opsgenie://APIKey/^Escalation
117 | [PagerDuty](https://appriseit.com/services/pagerduty/) | pagerduty:// | (TCP) 443 | pagerduty://IntegrationKey@ApiKey<br/>pagerduty://IntegrationKey@ApiKey/Source/Component
118 | [PagerTree](https://appriseit.com/services/pagertree/) | pagertree:// | (TCP) 443 | pagertree://integration_id
119 | [ParsePlatform](https://appriseit.com/services/parseplatform/) | parsep:// or parseps:// | (TCP) 80 or 443 | parsep://AppID:MasterKey@Hostname<br/>parseps://AppID:MasterKey@Hostname
120 | [Pingram](https://appriseit.com/services/pingram/) | pingram:// | (TCP) 443 | pingram://ApiKey/Target<br />pingram://ApiKey/Target1/Target2/TargetN<br />pingram://MessageType@ApiKey/Target
121 | [Pinglet](https://appriseit.com/services/pinglet/) | pinglet:// or pinglets:// | (TCP) 80 or 443 | pinglets://apikey@hostname/namespace/topic<br/>pinglets://apikey@hostname:port/namespace/topic
122 | [Postmark](https://appriseit.com/services/postmark/) | postmark:// | (TCP) 443 | postmark://APIToken:FromEmail/<br />postmark://APIToken:FromEmail/ToEmail<br />postmark://APIToken:FromEmail/ToEmail1/ToEmail2/ToEmailN/
123 | [Prowl](https://appriseit.com/services/prowl/) | prowl:// | (TCP) 443 | prowl://apikey<br />prowl://apikey/providerkey
124 | [PushBullet](https://appriseit.com/services/pushbullet/) | pbul:// | (TCP) 443 | pbul://accesstoken<br />pbul://accesstoken/#channel<br/>pbul://accesstoken/A_DEVICE_ID<br />pbul://accesstoken/[email protected]<br />pbul://accesstoken/#channel/#channel2/[email protected]/DEVICE
125 | [Pushjet](https://appriseit.com/services/pushjet/) | pjet:// or pjets:// | (TCP) 80 or 443 | pjet://hostname/secret<br />pjet://hostname:port/secret<br />pjets://secret@hostname/secret<br />pjets://hostname:port/secret
126 | [Push (Techulus)](https://appriseit.com/services/techulus/) | push:// | (TCP) 443 | push://apikey/
127 | [Pushed](https://appriseit.com/services/pushed/) | pushed:// | (TCP) 443 | pushed://appkey/appsecret/<br/>pushed://appkey/appsecret/#ChannelAlias<br/>pushed://appkey/appsecret/#ChannelAlias1/#ChannelAlias2/#ChannelAliasN<br/>pushed://appkey/appsecret/@UserPushedID<br/>pushed://appkey/appsecret/@UserPushedID1/@UserPushedID2/@UserPushedIDN
128 | [PushMe](https://appriseit.com/services/pushme/) | pushme:// | (TCP) 443 | pushme://Token/
129 | [Pushover](https://appriseit.com/services/pushover/) | pover:// | (TCP) 443 | pover://user@token<br />pover://user@token/DEVICE<br />pover://user@token/DEVICE1/DEVICE2/DEVICEN<br />**Note**: you must specify both your user_id and token
130 | [Pushplus](https://appriseit.com/services/pushplus/) | pushplus:// | (TCP) 443 | pushplus://Token
131 | [PushSafer](https://appriseit.com/services/pushsafer/) | psafer:// or psafers:// | (TCP) 80 or 443 | psafer://privatekey<br />psafers://privatekey/DEVICE<br />psafer://privatekey/DEVICE1/DEVICE2/DEVICEN
132 | [PushWard](https://appriseit.com/services/pushward/) | pushward:// | (TCP) 443 | pushward://hlk_apikey<br />pushward://hlk_apikey?level=critical&volume=0.8
133 | [Pushy](https://appriseit.com/services/pushy/) | pushy:// | (TCP) 443 | pushy://apikey/DEVICE<br />pushy://apikey/DEVICE1/DEVICE2/DEVICEN<br />pushy://apikey/TOPIC<br />pushy://apikey/TOPIC1/TOPIC2/TOPICN
134 | [PushDeer](https://appriseit.com/services/pushdeer/) | pushdeer:// or pushdeers:// | (TCP) 80 or 443 | pushdeer://pushKey<br />pushdeer://hostname/pushKey<br />pushdeer://hostname:port/pushKey
135 | [QQ Push](https://appriseit.com/services/qq/) | qq:// | (TCP) 443 | qq://Token
136 | [Reddit](https://appriseit.com/services/reddit/) | reddit:// | (TCP) 443 | reddit://user:password@app_id/app_secret/subreddit<br />reddit://user:password@app_id/app_secret/sub1/sub2/subN
137 | [Resend](https://appriseit.com/services/resend/) | resend:// | (TCP) 443 | resend://APIToken:FromEmail/<br />resend://APIToken:FromEmail/ToEmail<br />resend://APIToken:FromEmail/ToEmail1/ToEmail2/ToEmailN/
138 | [Revolt](https://appriseit.com/services/revolt/) | revolt:// | (TCP) 443 | revolt://bottoken/ChannelID<br />revolt://bottoken/ChannelID1/ChannelID2/ChannelIDN |
139 | [Rocket.Chat](https://appriseit.com/services/rocketchat/) | rocket:// or rockets:// | (TCP) 80 or 443 | rocket://user:password@hostname/RoomID/Channel<br />rockets://user:password@hostname:443/#Channel1/#Channel1/RoomID<br />rocket://user:password@hostname/#Channel<br />rocket://webhook@hostname<br />rockets://webhook@hostname/@User/#Channel
140 | [RSyslog](https://appriseit.com/services/rsyslog/) | rsyslog:// | (UDP) 514 | rsyslog://hostname<br />rsyslog://hostname/Facility
141 | [Ryver](https://appriseit.com/services/ryver/) | ryver:// | (TCP) 443 | ryver://Organization/Token<br />ryver://botname@Organization/Token
142 | [SendGrid](https://appriseit.com/services/sendgrid/) | sendgrid:// | (TCP) 443 | sendgrid://APIToken:FromEmail/<br />sendgrid://APIToken:FromEmail/ToEmail<br />sendgrid://APIToken:FromEmail/ToEmail1/ToEmail2/ToEmailN/
143 | [SendPulse](https://appriseit.com/services/sendpulse/) | sendpulse:// | (TCP) 443 | sendpulse://user@host/ClientId/ClientSecret<br />sendpulse://user@host/ClientId/clientSecret/ToEmail<br />sendpulse://user@host/ClientId/ClientSecret/ToEmail1/ToEmail2/ToEmailN/
144 | [ServerChan](https://appriseit.com/services/serverchan/) | schan:// | (TCP) 443 | schan://sendkey/
145 | [Session Open Group Server](https://appriseit.com/services/sogs/) | session:// or sessions:// | (TCP) 80 or 443 | sessions://public_key:seed@hostname/room<br />sessions://public_key:seed@hostname/room1/room2<br />sessions://public_key:seed@hostname:port/room<br />session://public_key:seed@hostname/room
146 | [Signal API](https://appriseit.com/services/signal/) | signal:// or signals:// | (TCP) 80 or 443 | signal://hostname:port/FromPhoneNo<br/>signal://hostname:port/FromPhoneNo/ToPhoneNo<br/>signal://hostname:port/FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
147 | [SIGNL4](https://appriseit.com/services/signl4/) | signl4:// | (TCP) 80 or 443 | signl4://hostname
148 | [SimplePush](https://appriseit.com/services/simplepush/) | spush:// | (TCP) 443 | spush://apikey<br />spush://salt:password@apikey<br />spush://apikey?event=Apprise
149 | [Slack](https://appriseit.com/services/slack/) | slack:// | (TCP) 443 | slack://TokenA/TokenB/TokenC/<br />slack://TokenA/TokenB/TokenC/Channel<br />slack://botname@TokenA/TokenB/TokenC/Channel<br />slack://user@TokenA/TokenB/TokenC/Channel1/Channel2/ChannelN
150 | [SMTP2Go](https://appriseit.com/services/smtp2go/) | smtp2go:// | (TCP) 443 | smtp2go://user@hostname/apikey<br />smtp2go://user@hostname/apikey/email<br />smtp2go://user@hostname/apikey/email1/email2/emailN<br />smtp2go://user@hostname/apikey/?name="From%20User"
151 | [SparkPost](https://appriseit.com/services/sparkpost/) | sparkpost:// | (TCP) 443 | sparkpost://user@hostname/apikey<br />sparkpost://user@hostname/apikey/email<br />sparkpost://user@hostname/apikey/email1/email2/emailN<br />sparkpost://user@hostname/apikey/?name="From%20User"
152 | [Spike.sh](https://appriseit.com/services/spike/) | spike:// | (TCP) 443 | spike://Token
153 | [Splunk](https://appriseit.com/services/splunk/) | splunk:// or victorops:/ | (TCP) 443 | splunk://route_key@apikey<br />splunk://route_key@apikey/entity_id
154 | [Spug Push](https://appriseit.com/services/spugpush/) | spugpush:// | (TCP) 443 | spugpush://Token
155 | [Stackfield](https://appriseit.com/services/stackfield/) | stackfield:// | (TCP) 443 | stackfield://WebhookToken
156 | [Streamlabs](https://appriseit.com/services/streamlabs/) | strmlabs:// | (TCP) 443 | strmlabs://AccessToken/<br/>strmlabs://AccessToken/?name=name&identifier=identifier&amount=0&currency=USD
157 | [Synology Chat](https://appriseit.com/services/synology_chat/) | synology:// or synologys:// | (TCP) 80 or 443 | synology://hostname/token<br />synology://hostname:port/token
158 | [Syslog](https://appriseit.com/services/syslog/) | syslog:// | n/a | syslog://<br />syslog://Facility
159 | [Telegram](https://appriseit.com/services/telegram/) | tgram:// | (TCP) 443 | tgram://bottoken/ChatID<br />tgram://bottoken/ChatID1/ChatID2/ChatIDN
160 | [Twitter](https://appriseit.com/services/twitter/) | twitter:// | (TCP) 443 | twitter://CKey/CSecret/AKey/ASecret<br/>twitter://user@CKey/CSecret/AKey/ASecret<br/>twitter://CKey/CSecret/AKey/ASecret/User1/User2/User2<br/>twitter://CKey/CSecret/AKey/ASecret?mode=tweet
161 | [Twist](https://appriseit.com/services/twist/) | twist:// | (TCP) 443 | twist://pasword:login<br/>twist://password:login/#channel<br/>twist://password:login/#team:channel<br/>twist://password:login/#team:channel1/channel2/#team3:channel
162 | [Vapid (WebPush)](https://appriseit.com/services/vapid/) | vapid:// | (TCP) 443 | vapid://subscriber/target<br/>vapid://subscriber/target?subfile=path&keyfile=path
163 | [Viber](https://appriseit.com/services/viber/) | viber:// | (TCP) 443 | viber://token/target
164 | [Webex Teams (Cisco)](https://appriseit.com/services/wxteams/) | wxteams:// | (TCP) 443 | wxteams://Token
165 | [WeChat (WeCom)](https://appriseit.com/services/wechat/) | wechat:// | (TCP) 443 | wechat://CorpID:AppSecret@AgentID/@all<br/>wechat://CorpID:AppSecret@AgentID/UserID
166 | [WeCom Bot](https://appriseit.com/services/wecombot/) | wecombot:// | (TCP) 443 | wecombot://BotKey
167 | [WhatsApp](https://appriseit.com/services/whatsapp/) | whatsapp:// | (TCP) 443 | whatsapp://AccessToken@FromPhoneID/ToPhoneNo<br/>whatsapp://Template:AccessToken@FromPhoneID/ToPhoneNo
168 | [WxPusher](https://appriseit.com/services/wxpusher/) | wxpusher:// | (TCP) 443 | wxpusher://AppToken@UserID1/UserID2/UserIDN<br/>wxpusher://AppToken@Topic1/Topic2/Topic3<br/>wxpusher://AppToken@UserID1/Topic1/
169 | [XBMC](https://appriseit.com/services/xbmc/) | xbmc:// or xbmcs:// | (TCP) 8080 or 443 | xbmc://hostname<br />xbmc://user@hostname<br />xbmc://user:password@hostname:port
170 | [XMPP](https://appriseit.com/services/xmpp/) | xmpp:// or xmpps:// | (TCP) 5222 or 5223 | xmpp://user:pass@hostname<br />xmpps://user:pass@hostname/jid<br />xmpps://user:pass@hostname/jid1/[email protected]
171 | [Zoom](https://appriseit.com/services/zoom/) | zoom:// | (TCP) 443 | zoom://WebhookID/Token
172 | [Zulip Chat](https://appriseit.com/services/zulip/) | zulip:// | (TCP) 443 | zulip://botname@Organization/Token<br />zulip://botname@Organization/Token/Stream<br />zulip://botname@Organization/Token/Email
173
174 ## SMS Notifications
175
176 SMS Notifications for the most part do not have a both a `title` and `body`. They consist of a single `body` which is usually no more then 160 characters in length. When using Apprise, the `title` and `body` are therefore combined into a single message prior to their transmission.
177
178 | Notification Service | Service ID | Default Port | Example Syntax |
179 | -------------------- | ---------- | ------------ | -------------- |
180 | [46elks](https://appriseit.com/services/46elks/) | 46elks:// | (TCP) 443 | 46elks://user:password@FromPhoneNo<br/>46elks://user:password@FromPhoneNo/ToPhoneNo<br/>46elks://user:password@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
181 | [800.com](https://appriseit.com/services/eight00com/) | eight00com:// | (TCP) 443 | eight00com://Token@FromPhoneNo<br/>eight00com://Token@FromPhoneNo/ToPhoneNo<br/>eight00com://Token@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
182 | [Africas Talking](https://appriseit.com/services/africas_talking/) | atalk:// | (TCP) 443 | atalk://AppUser@ApiKey/ToPhoneNo<br/>atalk://AppUser@ApiKey/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
183 | [Automated Packet Reporting System (APRS)](https://appriseit.com/services/aprs/) | aprs:// | (TCP) 10152 | aprs://user:pass@callsign<br/>aprs://user:pass@callsign1/callsign2/callsignN
184 | [AWS SNS](https://appriseit.com/services/sns/) | sns:// | (TCP) 443 | sns://AccessKeyID/AccessSecretKey/RegionName/+PhoneNo<br/>sns://AccessKeyID/AccessSecretKey/RegionName/+PhoneNo1/+PhoneNo2/+PhoneNoN<br/>sns://AccessKeyID/AccessSecretKey/RegionName/Topic<br/>sns://AccessKeyID/AccessSecretKey/RegionName/Topic1/Topic2/TopicN
185 | [BulkSMS](https://appriseit.com/services/bulksms/) | bulksms:// | (TCP) 443 | bulksms://user:password@ToPhoneNo<br/>bulksms://User:Password@ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
186 | [BulkVS](https://appriseit.com/services/bulkvs/) | bulkvs:// | (TCP) 443 | bulkvs://user:password@FromPhoneNo<br/>bulkvs://user:password@FromPhoneNo/ToPhoneNo<br/>bulkvs://user:password@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
187 | [Burst SMS](https://appriseit.com/services/burstsms/) | burstsms:// | (TCP) 443 | burstsms://ApiKey:ApiSecret@FromPhoneNo/ToPhoneNo<br/>burstsms://ApiKey:ApiSecret@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
188 | [Clickatell](https://appriseit.com/services/clickatell/) | clickatell:// | (TCP) 443 | clickatell://ApiKey/ToPhoneNo<br/>clickatell://FromPhoneNo@ApiKey/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN
189 | [ClickSend](https://appriseit.com/services/clicksend/) | clicksend:// | (TCP) 443 | clicksend://user:pass@PhoneNo<br/>clicksend://user:pass@ToPhoneNo1/ToPhoneNo2/ToPhoneNoN
190 | [DAPNET](https://appriseit.com/services/dapnet/) | dapnet:// | (TCP) 80 | dapnet://user:pass@callsign<br/>dapnet://user:pass@callsign1/callsign2/callsignN
191 | [D7 Networks](https://appriseit.com/services/d7networks/) | d7sms:// | (TCP) 443 | d7sms://token@PhoneNo<br/>d7sms://token@ToPhoneNo1/ToPhoneNo2/ToPhoneNoN
192 | [DingTalk](https://appriseit.com/services/dingtalk/) | dingtalk:// | (TCP) 443 | dingtalk://token/<br />dingtalk://token/ToPhoneNo<br />dingtalk://token/ToPhoneNo1/ToPhoneNo2/ToPhoneNo1/
193 | [Exotel](https://appriseit.com/services/exotel/) | exotel:// | (TCP) 443 | exotel://sid:token@FromPhoneNo<br/>exotel://sid:token@FromPhoneNo/ToPhoneNo<br/>exotel://sid:token@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN
194 | [Free-Mobile](https://appriseit.com/services/freemobile/) | freemobile:// | (TCP) 443 | freemobile://user@password/
195 | [httpSMS](https://appriseit.com/services/httpsms/) | httpsms:// | (TCP) 443 | httpsms://ApiKey@FromPhoneNo<br/>httpsms://ApiKey@FromPhoneNo/ToPhoneNo<br/>httpsms://ApiKey@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
196 | [Kavenegar](https://appriseit.com/services/kavenegar/) | kavenegar:// | (TCP) 443 | kavenegar://ApiKey/ToPhoneNo<br/>kavenegar://FromPhoneNo@ApiKey/ToPhoneNo<br/>kavenegar://ApiKey/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN
197 | [MessageBird](https://appriseit.com/services/messagebird/) | msgbird:// | (TCP) 443 | msgbird://ApiKey/FromPhoneNo<br/>msgbird://ApiKey/FromPhoneNo/ToPhoneNo<br/>msgbird://ApiKey/FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
198 | [MSG91](https://appriseit.com/services/msg91/) | msg91:// | (TCP) 443 | msg91://TemplateID@AuthKey/ToPhoneNo<br/>msg91://TemplateID@AuthKey/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
199 | [Plivo](https://appriseit.com/services/plivo/) | plivo:// | (TCP) 443 | plivo://AuthID@Token@FromPhoneNo<br/>plivo://AuthID@Token/FromPhoneNo/ToPhoneNo<br/>plivo://AuthID@Token/FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
200 | [RingCentral](https://appriseit.com/services/ringcentral/) | ringc:// | (TCP) 443 | ringc://SourcePhoneNo:Password@ClientID/ClientSecret<br/>ringc://SourcePhoneNo:JWTToken@ClientID/ClientSecret/ToPhoneNo<br/>ringc://SourcePhoneNo:JWTToken@ClientID/ClientSecret/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
201 | [SerwerSMS](https://appriseit.com/services/serwersms/) | serwersms:// | (TCP) 443 | serwersms://user:password@SenderName/+ToPhoneNo<br/>serwersms://user:password@SenderName/+ToPhoneNo1/+ToPhoneNo2<br/>serwersms://user:password@SenderName/%23GroupID
202 | [Seven](https://appriseit.com/services/seven/) | seven:// | (TCP) 443 | seven://ApiKey/FromPhoneNo<br/>seven://ApiKey/FromPhoneNo/ToPhoneNo<br/>seven://ApiKey/FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
203 | [Société Française du Radiotéléphone (SFR)](https://appriseit.com/services/sfr/) | sfr:// | (TCP) 443 | sfr://user:password>@spaceId/ToPhoneNo<br/>sfr://user:password>@spaceId/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
204 | [Signal API](https://appriseit.com/services/signal/) | signal:// or signals:// | (TCP) 80 or 443 | signal://hostname:port/FromPhoneNo<br/>signal://hostname:port/FromPhoneNo/ToPhoneNo<br/>signal://hostname:port/FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
205 | [Sinch](https://appriseit.com/services/sinch/) | sinch:// | (TCP) 443 | sinch://ServicePlanId:ApiToken@FromPhoneNo<br/>sinch://ServicePlanId:ApiToken@FromPhoneNo/ToPhoneNo<br/>sinch://ServicePlanId:ApiToken@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/<br/>sinch://ServicePlanId:ApiToken@ShortCode/ToPhoneNo<br/>sinch://ServicePlanId:ApiToken@ShortCode/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
206 | [SMPP](https://appriseit.com/services/smpp/) | smpp:// or smpps:// | (TCP) 443 | smpp://user:password@hostname:port/FromPhoneNo/ToPhoneNo<br/>smpps://user:password@hostname:port/FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN
207 | [SMSEagle](https://appriseit.com/services/smseagle/) | smseagle:// or smseagles:// | (TCP) 80 or 443 | smseagles://hostname:port/ToPhoneNo<br/>smseagles://hostname:port/@ToContact<br/>smseagles://hostname:port/#ToGroup<br/>smseagles://hostname:port/ToPhoneNo1/#ToGroup/@ToContact/
208 | [SMS Manager](https://appriseit.com/services/sms_manager/) | smsmgr:// | (TCP) 443 | smsmgr://ApiKey@ToPhoneNo<br/>smsmgr://ApiKey@ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
209 | [SMSC](https://appriseit.com/services/smsc/) | smsc:// | (TCP) 443 | smsc://login:password@ToPhoneNo<br/>smsc://login:password@ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
210 | [Threema Gateway](https://appriseit.com/services/threema/) | threema:// | (TCP) 443 | threema://GatewayID@secret/ToPhoneNo<br/>threema://GatewayID@secret/ToEmail<br/>threema://GatewayID@secret/ToThreemaID/<br/>threema://GatewayID@secret/ToEmail/ToThreemaID/ToPhoneNo/...
211 | [Trigv](https://trigv.com/) | trigv:// or trigvs:// | (TCP) 80 or 443 | trigvs://APIKey<br/>trigvs://APIKey/channel<br/>trigv://APIKey@hostname/channel
212 | [Notifyre](https://appriseit.com/services/notifyre/) | notifyre:// | (TCP) 443 | notifyre://ApiKey/ToPhoneNo<br/>notifyre://ApiKey/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN<br/>notifyre://ApiKey/ToFaxNo?mode=fax<br/>notifyre://ApiKey/ToFaxNo?mode=fax&from=+FromNo
213 | [Twilio](https://appriseit.com/services/twilio/) | twilio:// | (TCP) 443 | twilio://AccountSid:AuthToken@FromPhoneNo<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo?apikey=Key<br/>twilio://AccountSid:AuthToken@ShortCode/ToPhoneNo<br/>twilio://AccountSid:AuthToken@ShortCode/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo?method=call<br/>twilio://AccountSid:AuthToken@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN?method=call
214 | [Voipms](https://appriseit.com/services/voipms/) | voipms:// | (TCP) 443 | voipms://password:email/FromPhoneNo<br/>voipms://password:email/FromPhoneNo/ToPhoneNo<br/>voipms://password:email/FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
215 | [Vonage](https://appriseit.com/services/vonage/) (formerly Nexmo) | vonage:// | (TCP) 443 | vonage://ApiKey:ApiSecret@FromPhoneNo<br/>vonage://ApiKey:ApiSecret@FromPhoneNo/ToPhoneNo<br/>vonage://ApiKey:ApiSecret@FromPhoneNo/ToPhoneNo1/ToPhoneNo2/ToPhoneNoN/
216
217 ## Desktop Notifications
218
219 | Notification Service | Service ID | Default Port | Example Syntax |
220 | -------------------- | ---------- | ------------ | -------------- |
221 | [Linux DBus Notifications](https://appriseit.com/services/dbus/) | dbus://<br />qt://<br />glib://<br />kde:// | n/a | dbus://<br />qt://<br />glib://<br />kde://
222 | [Linux Gnome Notifications](https://appriseit.com/services/gnome/) | gnome:// | n/a | gnome://
223 | [MacOS X Notifications](https://appriseit.com/services/macosx/) | macosx:// | n/a | macosx://
224 | [Windows Notifications](https://appriseit.com/services/windows/) | windows:// | n/a | windows://
225
226 ## Email Notifications
227
228 | Service ID | Default Port | Example Syntax |
229 | ---------- | ------------ | -------------- |
230 | [mailto://](https://appriseit.com/services/email/) | (TCP) 25 | mailto://userid:[email protected]<br />mailto://domain.com?user=userid&pass=password<br/>mailto://domain.com:2525?user=userid&pass=password<br />mailto://[email protected]&pass=password<br />mailto://mySendingUsername:[email protected][email protected]<br />mailto://userid:[email protected]?smtp=mail.example.com&[email protected]&name=no%20reply
231 | [mailtos://](https://appriseit.com/services/email/) | (TCP) 587 | mailtos://userid:[email protected]<br />mailtos://domain.com?user=userid&pass=password<br/>mailtos://domain.com:465?user=userid&pass=password<br />mailtos://[email protected]&pass=password<br />mailtos://mySendingUsername:[email protected][email protected]<br />mailtos://userid:[email protected]?smtp=mail.example.com&[email protected]&name=no%20reply
232
233 Apprise has some email services built right into it (such as yahoo, fastmail, hotmail, gmail, etc) that greatly simplify the mailto:// service. See more details [here](https://appriseit.com/services/email/).
234
235 ## Custom Notifications
236
237 | Post Method | Service ID | Default Port | Example Syntax |
238 | -------------------- | ---------- | ------------ | -------------- |
239 | [Form](https://appriseit.com/services/form/) | form:// or forms:// | (TCP) 80 or 443 | form://hostname<br />form://user@hostname<br />form://user:password@hostname:port<br />form://hostname/a/path/to/post/to
240 | [JSON](https://appriseit.com/services/json/) | json:// or jsons:// | (TCP) 80 or 443 | json://hostname<br />json://user@hostname<br />json://user:password@hostname:port<br />json://hostname/a/path/to/post/to
241 | [XML](https://appriseit.com/services/xml/) | xml:// or xmls:// | (TCP) 80 or 443 | xml://hostname<br />xml://user@hostname<br />xml://user:password@hostname:port<br />xml://hostname/a/path/to/post/to
242
243 # Installation
244
245 The easiest way is to install Apprise from PyPI:
246 ```bash
247 pip install apprise
248 ```
249
250 Apprise is also packaged as an RPM and available through [EPEL](https://docs.fedoraproject.org/en-US/epel/) supporting CentOS, Redhat, Rocky, Oracle Linux, etc.
251 ```bash
252 # Follow instructions on https://docs.fedoraproject.org/en-US/epel
253 # to get your system connected up to EPEL and then:
254 # Redhat/CentOS 7.x users
255 yum install apprise
256
257 # Redhat/Rocky Linux 8.x+ and/or Fedora Users
258 dnf install apprise
259 ```
260
261 You can also check out the [Graphical version of Apprise](https://github.com/caronc/apprise-api) to centralize your configuration and notifications through a manageable webpage.
262
263 # Command Line Usage
264
265 A small command line interface (CLI) tool is also provided with this package called *apprise*. If you know the server urls you wish to notify, you can simply provide them all on the command line and send your notifications that way:
266 ```bash
267 # Send a notification to as many servers as you want
268 # as you can easily chain one after another (the -vv provides some
269 # additional verbosity to help let you know what is going on):
270 apprise -vv -t 'my title' -b 'my notification body' \
271 'mailto://myemail:[email protected]' \
272 'pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b'
273
274 # If you don't specify a --body (-b) then stdin is used allowing
275 # you to use the tool as part of your every day administration:
276 cat /proc/cpuinfo | apprise -vv -t 'cpu info' \
277 'mailto://myemail:[email protected]'
278
279 # The title field is totally optional
280 uptime | apprise -vv \
281 'discord:///4174216298/JHMHI8qBe7bk2ZwO5U711o3dV_js'
282 ```
283
284 ## CLI Configuration Files
285
286 No one wants to put their credentials out for everyone to see on the command line. No problem, *apprise* also supports configuration files. It can handle both a specific YAML format or a very simple TEXT format. You can also pull these configuration files via an HTTP query too! Read more about the expected structure of the configuration files [here](https://appriseit.com/config/).
287
288 ```bash
289 # By default if no url or configuration is specified apprise will attempt to load
290 # configuration files (if present) from:
291 # ~/.apprise
292 # ~/.apprise.yaml
293 # ~/.config/apprise.conf
294 # ~/.config/apprise.yaml
295 # /etc/apprise.conf
296 # /etc/apprise.yaml
297
298 # Also subdirectory handling allows you to leverage plugins
299 # ~/.apprise/apprise
300 # ~/.apprise/apprise.yaml
301 # ~/.config/apprise/apprise.conf
302 # ~/.config/apprise/apprise.yaml
303 # /etc/apprise/apprise.yaml
304 # /etc/apprise/apprise.conf
305
306 # Windows users can store their default configuration files here:
307 # %APPDATA%/Apprise/apprise.conf
308 # %APPDATA%/Apprise/apprise.yaml
309 # %LOCALAPPDATA%/Apprise/apprise.conf
310 # %LOCALAPPDATA%/Apprise/apprise.yaml
311 # %ALLUSERSPROFILE%\Apprise\apprise.conf
312 # %ALLUSERSPROFILE%\Apprise\apprise.yaml
313 # %PROGRAMFILES%\Apprise\apprise.conf
314 # %PROGRAMFILES%\Apprise\apprise.yaml
315 # %COMMONPROGRAMFILES%\Apprise\apprise.conf
316 # %COMMONPROGRAMFILES%\Apprise\apprise.yaml
317
318 # The configuration files specified above can also be identified with a `.yml`
319 # extension or even just entirely removing the `.conf` extension altogether.
320
321 # If you loaded one of those files, your command line gets really easy:
322 apprise -vv -t 'my title' -b 'my notification body'
323
324 # If you want to deviate from the default paths or specify more than one,
325 # just specify them using the --config switch:
326 apprise -vv -t 'my title' -b 'my notification body' \
327 --config=/path/to/my/config.yml
328
329 # Got lots of configuration locations? No problem, you can specify them all:
330 # Apprise can even fetch the configuration from over a network!
331 apprise -vv -t 'my title' -b 'my notification body' \
332 --config=/path/to/my/config.yml \
333 --config=https://localhost/my/apprise/config
334 ```
335
336 ## CLI Tagging Support
337
338 Apprise allows you to tag your services in your configuration to organize them (e.g., `family`, `devops`, `critical`). You can then filter which services to notify using the `--tag` (`-g`) switch.
339
340 It is important to understand how Apprise handles multiple tags:
341
342 * **OR Logic (Union)**: To notify services that have *either* Tag A **OR** Tag B, specify the `-g` switch multiple times.
343 * **AND Logic (Intersection)**: To notify services that have *both* Tag A **AND** Tag B, separate the tags with a comma.
344
345 ```bash
346 # OR Logic: Notify any service tagged 'devops' OR 'admin'
347 apprise -vv -t "Union Test" \
348 --config=~/apprise.yml \
349 -g devops -g admin
350
351 # AND Logic: Notify only services tagged with BOTH 'devops' AND 'critical'
352 apprise -vv -t "Intersection Test" \
353 --config=~/apprise.yml \
354 -g devops,critical
355 ```
356
357 Tags also support an optional **priority prefix** and **retry suffix**. In your configuration file you assign a priority to a tag like `1:alerts` or `5:alerts`. A lower number means higher urgency.
358
359 * **Escalation (no prefix)**: `-g alerts` dispatches priority-1 entries first. If they all succeed, Apprise returns early and never runs the priority-5 fallbacks. A failure in the lower-priority group triggers the next group as an escalation chain.
360 * **Exclusive (with prefix)**: `-g "2:alerts"` notifies *only* services whose `alerts` tag has priority 2. No other priority levels are triggered.
361 * **Per-call retry**: `-g "alerts:3"` retries each matched service up to 3 times on failure (overrides the service's own retry setting for this call only).
362 * **Combined**: `-g "2:alerts:3"` -- exclusive priority-2 filter with up to 3 retries.
363
364 ```bash
365 # Escalation: priority-1 first; skip priority-5 if all succeed
366 apprise -vv -t "Alert" --config=~/apprise.yml -g alerts
367
368 # Exclusive: only priority-2 alert services
369 apprise -vv -t "Alert" --config=~/apprise.yml -g "2:alerts"
370
371 # With retry override: retry each matched service up to 3 times
372 apprise -vv -t "Alert" --config=~/apprise.yml -g "alerts:3"
373 ```
374
375 ## CLI File Attachments
376
377 Apprise also supports file attachments too! Specify as many attachments to a notification as you want.
378
379 ```bash
380 # Send a funny image you found on the internet to a colleague:
381 apprise -vv --title 'Agile Joke' \
382 --body 'Did you see this one yet?' \
383 --attach https://i.redd.it/my2t4d2fx0u31.jpg \
384 'mailto://myemail:[email protected]'
385
386 # Easily send an update from a critical server to your dev team
387 apprise -vv --title 'system crash' \
388 --body 'I do not think Jim fixed the bug; see attached...' \
389 --attach /var/log/myprogram.log \
390 --attach /var/debug/core.2345 \
391 --tag devteam
392 ```
393
394 ## CLI Loading Custom Notifications/Hooks
395
396 To create your own custom `schema://` hook so that you can trigger your own custom code,
397 simply include the `@notify` decorator to wrap your function.
398 ```python
399 from apprise.decorators import notify
400 #
401 # The below assumes you want to catch foobar:// calls:
402 #
403 @notify(on="foobar", name="My Custom Foobar Plugin")
404 def my_custom_notification_wrapper(body, title, notify_type, *args, **kwargs):
405 """My custom notification function that triggers on all foobar:// calls
406 """
407 # Write all of your code here... as an example...
408 print("{}: {} - {}".format(notify_type.upper(), title, body))
409
410 # Returning True/False is a way to relay your status back to Apprise.
411 # Returning nothing (None by default) is always interpreted as a Success
412 ```
413
414 Once you've defined your custom hook, you just need to tell Apprise where it is at runtime.
415 ```bash
416 # By default if no plugin path is specified apprise will attempt to load
417 # all plugin files (if present) from the following directory paths:
418 # ~/.apprise/plugins
419 # ~/.config/apprise/plugins
420 # /var/lib/apprise/plugins
421
422 # Windows users can store their default plugin files in these directories:
423 # %APPDATA%/Apprise/plugins
424 # %LOCALAPPDATA%/Apprise/plugins
425 # %ALLUSERSPROFILE%\Apprise\plugins
426 # %PROGRAMFILES%\Apprise\plugins
427 # %COMMONPROGRAMFILES%\Apprise\plugins
428
429 # If you placed your plugin file within one of the directories already defined
430 # above, then your call simply needs to look like:
431 apprise -vv --title 'custom override' \
432 --body 'the body of my message' \
433 foobar:\\
434
435 # However you can override the path like so
436 apprise -vv --title 'custom override' \
437 --body 'the body of my message' \
438 --plugin-path /path/to/my/plugin.py \
439 foobar:\\
440 ```
441
442 You can read more about creating your own custom notifications and/or hooks [here](https://appriseit.com/library/extending/decorator/).
443
444 ## CLI Environment Variables
445
446 Those using the Command Line Interface (CLI) can also leverage environment variables to pre-set the default settings:
447
448 | Variable | Description |
449 |------------------------ | ----------------- |
450 | `APPRISE_URLS` | Specify the default URLs to notify IF none are otherwise specified on the command line explicitly. If the `--config` (`-c`) is specified, then this will overrides any reference to this variable. Use white space and/or a comma (`,`) to delimit multiple entries.
451 | `APPRISE_CONFIG_PATH` | Explicitly specify the config search path to use (overriding the default). The path(s) defined here must point to the absolute filename to open/reference. Use a semi-colon (`;`), line-feed (`\n`), and/or carriage return (`\r`) to delimit multiple entries.
452 | `APPRISE_PLUGIN_PATH` | Explicitly specify the custom plugin search path to use (overriding the default). Use a semi-colon (`;`), line-feed (`\n`), and/or carriage return (`\r`) to delimit multiple entries.
453 | `APPRISE_STORAGE_PATH` | Explicitly specify the persistent storage path to use (overriding the default).
454
455 # Developer API Usage
456
457 To send a notification from within your python application, just do the following:
458 ```python
459 import apprise
460
461 # Create an Apprise instance
462 apobj = apprise.Apprise()
463
464 # Add all of the notification services by their server url.
465 # A sample email notification:
466 apobj.add('mailto://myuserid:[email protected]')
467
468 # A sample pushbullet notification
469 apobj.add('pbul://o.gn5kj6nfhv736I7jC3cj3QLRiyhgl98b')
470
471 # Then notify these services any time you desire. The below would
472 # notify all of the services loaded into our Apprise object.
473 apobj.notify(
474 body='what a great notification service!',
475 title='my notification title',
476 )
477 ```
478
479 ## API Configuration Files
480
481 Developers need access to configuration files too. The good news is that their use just involves declaring another object (called *AppriseConfig*) that the *Apprise* object can ingest. You can also freely mix and match config and notification entries as often as you wish! You can read more about the expected structure of the configuration files [here](https://appriseit.com/getting-started/configuration/).
482 ```python
483 import apprise
484
485 # Create an Apprise instance
486 apobj = apprise.Apprise()
487
488 # Create an Config instance
489 config = apprise.AppriseConfig()
490
491 # Add a configuration source:
492 config.add('/path/to/my/config.yml')
493
494 # Add another...
495 config.add('https://myserver:8080/path/to/config')
496
497 # Make sure to add our config into our apprise object
498 apobj.add(config)
499
500 # You can mix and match; add an entry directly if you want too
501 # In this entry we associate the 'admin' tag with our notification
502 apobj.add('mailto://myuser:[email protected]', tag='admin')
503
504 # Then notify these services any time you desire. The below would
505 # notify all of the services that have not been bound to any specific
506 # tag.
507 apobj.notify(
508 body='what a great notification service!',
509 title='my notification title',
510 )
511
512 # Tagging allows you to specifically target only specific notification
513 # services you've loaded:
514 apobj.notify(
515 body='send a notification to our admin group',
516 title='Attention Admins',
517 # notify any services tagged with the 'admin' tag
518 tag='admin',
519 )
520
521 # If you want to notify absolutely everything (regardless of whether
522 # it's been tagged or not), just use the reserved tag of 'all':
523 apobj.notify(
524 body='send a notification to our admin group',
525 title='Attention Admins',
526 # notify absolutely everything loaded, regardless on whether
527 # it has a tag associated with it or not:
528 tag='all',
529 )
530 ```
531
532 ## API File Attachments
533
534 Attachments are very easy to send using the Apprise API:
535 ```python
536 import apprise
537
538 # Create an Apprise instance
539 apobj = apprise.Apprise()
540
541 # Add at least one service you want to notify
542 apobj.add('mailto://myuser:[email protected]')
543
544 # Then send your attachment.
545 apobj.notify(
546 title='A great photo of our family',
547 body='The flash caused Jane to close her eyes! hah! :)',
548 attach='/local/path/to/my/DSC_003.jpg',
549 )
550
551 # Send a web based attachment too! In the below example, we connect to a home
552 # security camera and send a live image to an email. By default remote web
553 # content is cached, but for a security camera we might want to call notify
554 # again later in our code, so we want our last image retrieved to expire(in
555 # this case after 3 seconds).
556 apobj.notify(
557 title='Latest security image',
558 attach='http://admin:password@hikvision-cam01/ISAPI/Streaming/channels/101/picture?cache=3'
559 )
560 ```
561
562 To send more than one attachment, just use a list, set, or tuple instead:
563 ```python
564 import apprise
565
566 # Create an Apprise instance
567 apobj = apprise.Apprise()
568
569 # Add at least one service you want to notify
570 apobj.add('mailto://myuser:[email protected]')
571
572 # Now add all of the entries we're interested in:
573 attach = (
574 # ?name= allows us to rename the actual jpeg as found on the site
575 # to be another name when sent to our receipient(s)
576 'https://i.redd.it/my2t4d2fx0u31.jpg?name=FlyingToMars.jpg',
577
578 # Now add another:
579 '/path/to/funny/joke.gif',
580 )
581
582 # Send your multiple attachments with a single notify call:
583 apobj.notify(
584 title='Some good jokes.',
585 body='Hey guys, check out these!',
586 attach=attach,
587 )
588 ```
589
590 ## API Loading Custom Notifications/Hooks
591
592 By default, no custom plugins are loaded at all for those building from within the Apprise API.
593 It's at the developers discretion to load custom modules. But should you choose to do so, it's as easy
594 as including the path reference in the `AppriseAsset()` object prior to the initialization of your `Apprise()`
595 instance.
596
597 For example:
598 ```python
599 from apprise import Apprise
600 from apprise import AppriseAsset
601
602 # Prepare your Asset object so that you can enable the custom plugins to
603 # be loaded for your instance of Apprise...
604 asset = AppriseAsset(plugin_paths="/path/to/scan")
605
606 # OR You can also generate scan more then one file too:
607 asset = AppriseAsset(
608 plugin_paths=[
609 # Iterate over all python libraries found in the root of the
610 # specified path. This is NOT a recursive (directory) scan; only
611 # the first level is parsed. HOWEVER, if a directory containing
612 # an __init__.py is found, it will be included in the load.
613 "/dir/containing/many/python/libraries",
614
615 # An absolute path to a plugin.py to exclusively load
616 "/path/to/plugin.py",
617
618 # if you point to a directory that has an __init__.py file found in
619 # it, then only that file is loaded (it's similar to point to a
620 # absolute .py file. Hence, there is no (level 1) scanning at all
621 # within the directory specified.
622 "/path/to/dir/library"
623 ]
624 )
625
626 # Now that we've got our asset, we just work with our Apprise object as we
627 # normally do
628 aobj = Apprise(asset=asset)
629
630 # If our new custom `foobar://` library was loaded (presuming we prepared
631 # one like in the examples above). then you would be able to safely add it
632 # into Apprise at this point
633 aobj.add('foobar://')
634
635 # Send our notification out through our foobar://
636 aobj.notify("test")
637 ```
638
639 You can read more about creating your own custom notifications and/or hooks [here](https://appriseit.com/library/extending/decorator/).
640
641 # Persistent Storage
642
643 Persistent storage allows Apprise to cache re-occurring actions optionaly to disk. This can greatly reduce the overhead used to send a notification.
644
645 There are 3 Persistent Storage operational states Apprise can operate using:
646 1. `auto`: Flush gathered cache information to the filesystem on demand. This option is incredibly light weight. This is the default behavior for all CLI usage.
647 * Developers who choose to use this operational mode can also force cached information manually if they choose.
648 * The CLI will use this operational mode by default.
649 2. `flush`: Flushes any cache information to the filesystem during every transaction.
650 3. `memory`: Effectively disable Persistent Storage. Any caching of data required by each plugin used is done in memory. Apprise effectively operates as it always did before peristent storage was available. This setting ensures no content is ever written to disk.
651 * By default this is the mode Apprise will operate under for those developing with it unless they configure it to otherwise operate as `auto` or `flush`. This is done through the `AppriseAsset()` object and is explained further on in this documentation.
652
653 ## CLI Persistent Storage Commands
654
655 You can provide the keyword `storage` on your CLI call to see the persistent storage options available to you.
656 ```bash
657 # List all of the occupied space used by Apprise's Persistent Storage:
658 apprise storage list
659
660 # list is the default option, so the following does the same thing:
661 apprise storage
662
663 # You can prune all of your storage older then 30 days
664 # and not accessed for this period like so:
665 apprise storage prune
666
667 # You can do a hard reset (and wipe all persistent storage) with:
668 apprise storage clean
669
670 ```
671
672 You can also filter your results by adding tags and/or URL Identifiers. When you get a listing (`apprise storage list`), you may see:
673 ```
674 # example output of 'apprise storage list':
675 1. f7077a65 0.00B unused
676 - matrixs://abcdef:****@synapse.example12.com/%23general?image=no&mode=off&version=3&msgtype...
677 tags: team
678
679 2. 0e873a46 81.10B active
680 - tgram://W...U//?image=False&detect=yes&silent=no&preview=no&content=before&mdv=v1&format=m...
681 tags: personal
682
683 3. abcd123 12.00B stale
684
685 ```
686 The (persistent storage) cache states are:
687 - `unused`: This plugin has not commited anything to disk for reuse/cache purposes
688 - `active`: This plugin has written content to disk. Or at the very least, it has prepared a persistent storage location it can write into.
689 - `stale`: The system detected a location where a URL may have possibly written to in the past, but there is nothing linking to it using the URLs provided. It is likely wasting space or is no longer of any use.
690
691 You can use this information to filter your results by specifying _URL ID_ (UID) values after your command. For example:
692 ```bash
693 # The below commands continue with the example already identified above
694 # the following would match abcd123 (even though just ab was provided)
695 # The output would only list the 'stale' entry above
696 apprise storage list ab
697
698 # knowing our filter is safe, we could remove it
699 # the below command would not obstruct our other to URLs and would only
700 # remove our stale one:
701 apprise storage clean ab
702
703 # Entries can be filtered by tag as well:
704 apprise storage list --tag=team
705
706 # You can match on multiple URL ID's as well:
707 # The followin would actually match the URL ID's of 1. and .2 above
708 apprise storage list f 0
709 ```
710 When using the CLI, Persistent storage is set to the operational mode of `auto` by default, you can change this by providing `--storage-mode=` (`-SM`) during your calls. If you want to ensure it's always set to a value of your choice.
711
712 For more information on persistent storage, [visit here](https://appriseit.com/cli/persistent-storage/).
713
714 ## API Persistent Storage Commands
715 For developers, persistent storage is set in the operational mode of `memory` by default.
716
717 It's at the developers discretion to enable it (by switching it to either `auto` or `flush`). Should you choose to do so: it's as easy as including the information in the `AppriseAsset()` object prior to the initialization of your `Apprise()` instance.
718
719 For example:
720 ```python
721 from apprise import Apprise
722 from apprise import AppriseAsset
723 from apprise import PersistentStoreMode
724
725 # Prepare a location the persistent storage can write it's cached content to.
726 # By setting this path, this immediately assumes you wish to operate the
727 # persistent storage in the operational 'auto' mode
728 asset = AppriseAsset(storage_path="/path/to/save/data")
729
730 # If you want to be more explicit and set more options, then you may do the
731 # following
732 asset = AppriseAsset(
733 # Set our storage path directory (minimum requirement to enable it)
734 storage_path="/path/to/save/data",
735
736 # Set the mode... the options are:
737 # 1. PersistentStoreMode.MEMORY
738 # - disable persistent storage from writing to disk
739 # 2. PersistentStoreMode.AUTO
740 # - write to disk on demand
741 # 3. PersistentStoreMode.FLUSH
742 # - write to disk always and often
743 storage_mode=PersistentStoreMode.FLUSH
744
745 # The URL IDs are by default 8 characters in length. You can increase and
746 # decrease it's value here. The value must be > 2. The default value is 8
747 # if not otherwise specified
748 storage_idlen=8,
749 )
750
751 # Now that we've got our asset, we just work with our Apprise object as we
752 # normally do
753 aobj = Apprise(asset=asset)
754 ```
755
756 For more information on persistent storage, [visit here](https://appriseit.com/library/persistent-storage/).
757
758 # Want To Learn More?
759
760 If you're interested in reading more about this and other methods on how to customize your own notifications, please check out the following links:
761 * 📣 [Using the CLI](https://appriseit.com/cli/)
762 * 🛠️ [Development API](https://appriseit.com/library/)
763 * ⚙️ [Configuration File Help](https://appriseit.com/getting-started/configuration/)
764 * ⚡ [Create Your Own Custom Notifications](https://appriseit.com/library/extending/decorator/)
765 * 🌎 [Apprise API/Web Interface](https://github.com/caronc/apprise-api/)
766 * 📖 [Apprise Documentation Source](https://github.com/caronc/apprise-docs/)
767 * 🔧 [Troubleshooting](https://appriseit.com/qa/)
768 * 🎉 [Showcase](https://appriseit.com/contributing/showcase/)
769
770 Want to help make Apprise better?
771 * 💡 [Contribute to the Apprise Code Base](https://appriseit.com/contributing/)
772 * ❤️ [Sponsorship and Donations](https://appriseit.com/contributing/sponsors/)