> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keephq.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Ntfy.sh

> Ntfy.sh allows you to send notifications to your devices

## Authentication

This provider requires authentication.

* **access\_token**: Ntfy Access Token (required: False, sensitive: True)
* **host**: Ntfy Host URL (For self-hosted Ntfy only) (required: False, sensitive: False)
* **username**: Ntfy Username (For self-hosted Ntfy only) (required: False, sensitive: False)
* **password**: Ntfy Password (For self-hosted Ntfy only) (required: False, sensitive: True)

Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases:

* **send\_alert**:  (mandatory)

## In workflows

This provider can be used in workflows.

As "action" to make changes or update data, example:

```yaml theme={null}
actions:
    - name: Query ntfy
      provider: ntfy
      config: "{{ provider.my_provider_name }}"
      with:
        message: {value}  
        topic: {value}  
```

Check the following workflow examples:

* [ntfy\_basic.yml](https://github.com/keephq/keep/blob/main/examples/workflows/ntfy_basic.yml)
* [query\_clickhouse.yml](https://github.com/keephq/keep/blob/main/examples/workflows/query_clickhouse.yml)
* [query\_victoriametrics.yml](https://github.com/keephq/keep/blob/main/examples/workflows/query_victoriametrics.yml)
* [simple\_http\_request\_ntfy.yml](https://github.com/keephq/keep/blob/main/examples/workflows/simple_http_request_ntfy.yml)

## Connecting with the Provider

Obtain Ntfy Access Token (For Ntfy.sh only)

1. Create an account on [Ntfy.sh](https://ntfy.sh/).
2. After logging in, go to the [Access token](https://ntfy.sh/account) page.
3. Click on the `CREATE ACCESS TOKEN`. Give it a label and select token expiration time and click on the `CREATE TOKEN` button.
4. Copy the generated token. This will be used as the `Ntfy Access Token` in the provider settings.

Self-Hosted Ntfy

1. To self-host Ntfy, you can follow the instructions [here](https://docs.ntfy.sh/install/).
2. For self-hosted Ntfy, you will need to provide the `Ntfy Host URL`, `Ntfy Username`, and `Ntfy Password` in the provider settings instead of the `Ntfy Access Token`.
3. Create a new user for the self-hosted Ntfy instance and use the generated username and password in the provider settings.

Subscribing to a Topic (For Ntfy.sh and self-hosted Ntfy)

1. Login to your Ntfy.sh account.
2. Click on `Subscribe to a topic` button and generate name for the topic and subscribe to it.
3. Copy the generated topic name. This will be used as the `Ntfy Subcription Topic` in the provider settings.
4. Reserve the topic and confiure access (Requires ntfy Pro)

## Usefull Links

* [Ntfy.sh](https://ntfy.sh/)
* [To self-host Ntfy](https://docs.ntfy.sh/install/)
