Push services (ntfy, Pushover, Gotify)
Send AffFast messages to your phone with ntfy, Pushover or Gotify with a Shoutrrr notification channel.
These services use the type shoutrrr of the notification channels. Select the service in the form. AffFast builds the Shoutrrr URL from the fields. The channel sends plain text.
Each section has the fields, an example and the common mistakes. Read services of GET /v1/notification_channel_types for the same fields in the API.
ntfy
URL format that AffFast builds: ntfy://HOST/TOPIC
| Field | Where | Required | Meaning |
|---|---|---|---|
host | config | No | The host of the ntfy server, for example ntfy.example.com. The default is ntfy.sh. |
topic | config | Yes | The topic name. Use up to 64 letters, digits, underscores and dashes. |
token | credentials | No | An access token of ntfy. Leave it empty for a topic that needs no login. |
Set up ntfy
- Choose a topic name. Use up to 64 letters, digits, underscores and dashes. Anyone who knows the name of a topic on ntfy.sh can read it, so choose a name that others cannot guess.
- To use your own server, enter its host in the field Server. To use ntfy.sh, leave the field empty.
- Subscribe to the topic in the ntfy app. Then save the channel and use Send test.
Example
{
"type": "shoutrrr",
"label": "Phone",
"config": { "service": "ntfy", "topic": "affiliate-sales-7f3a9c" },
"credentials": {}
}Common mistakes in ntfy
- The topic has a space or a dot. Use only letters, digits, underscores and dashes.
- The server needs a login. Make an access token in ntfy and enter it in the field Access token.
- You entered https:// in the field Server. Enter only the host, for example ntfy.example.com.
Pushover
URL format that AffFast builds: pushover://shoutrrr:API_TOKEN@USER_KEY/
| Field | Where | Required | Meaning |
|---|---|---|---|
devices | config | No | A list of device names. Leave it empty to send to all devices. |
user_key | credentials | Yes | Your user key. It is at the top right of the Pushover dashboard. |
token | credentials | Yes | The API token of your Pushover application. |
Set up Pushover
- Log in at pushover.net. Copy your user key from the top right of the page.
- Make an application. Copy its API token.
- Enter the user key and the API token in the fields. To send to some devices only, enter their names.
Example
{
"type": "shoutrrr",
"label": "Pushover",
"config": { "service": "pushover", "devices": ["phone"] },
"credentials": { "user_key": "u...", "token": "a..." }
}Common mistakes in Pushover
- You swapped the user key and the API token. The user key is the one on the dashboard.
- A device name is wrong. Use the name from the list of devices in Pushover.
Gotify
URL format that AffFast builds: gotify://HOST/TOKEN
| Field | Where | Required | Meaning |
|---|---|---|---|
host | config | Yes | The host of the Gotify server, for example gotify.example.com. Add a port or a path if the server needs one. |
token | credentials | Yes | The token of a Gotify application. A client token does not work. |
Set up Gotify
- In Gotify, open Apps and make a new application.
- Copy the token of the application into the field Application token.
- Enter the host of your Gotify server in the field Server. Add the port or the path if your server needs them.
Example
{
"type": "shoutrrr",
"label": "Gotify",
"config": { "service": "gotify", "host": "gotify.example.com" },
"credentials": { "token": "A..." }
}Common mistakes in Gotify
- You used a client token. Gotify accepts only the token of an application.
- The server is in a private network. AffFast cannot reach it. Use a public address with TLS.