---
title: Deploy ntfy with AI on Blossom
url: "/deploy/ntfy/"
canonical_url: https://blossom88.com/deploy/ntfy/
markdown_url: https://blossom88.com/deploy/ntfy.md
summary: Deploy ntfy with AI on Blossom. Publish job alerts over HTTPS and replay
  notifications from a private topic.
categories:
- deployment
- monitoring
stack:
- Go
- React
- PostgreSQL
---

# Deploy ntfy with AI on Blossom

[ntfy](https://ntfy.sh/) delivers notifications from scripts and apps.
A job can send a message with a simple HTTP request, and a subscriber
can receive it on the same topic.

![Two sample notifications returned by ntfy's API after Container replacement.](/deploy/assets/images/ntfy/topic.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy ntfy on Blossom and help me send a notification to a private topic.
>
> Follow this guide: https://blossom88.com/deploy/ntfy/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Send an Alert

Create a private topic and give the job permission to publish. Give the
subscriber read access to the same topic. Send a sample alert, then poll
the topic to replay it from the cache.

<details class="optional-reading" markdown="1">
<summary>Deployment setup and commands</summary>

Run the [official ntfy image](https://docs.ntfy.sh/install/#docker) on
regular App Capacity. Use a current release with PostgreSQL support
and connect managed PostgreSQL as `NTFY_DATABASE_URL`. PostgreSQL stores
the message cache, users and topic permissions. Set the public HTTPS
base URL, set the default topic permission to `deny-all`, and grant the
sender and reader access to the test topic.

Keep the Environment behind Blossom Account access when clients can
send an Environment Access Token in the `X-Blossom-Access` header.

    blossom profile:show
    blossom app:create --data app.yml
    blossom environment:create --data environment.yml
    blossom database_instance:create --data postgres.yml
    blossom environment_link:create --data postgres-link.yml
    blossom service:create --data service.yml
    blossom env_var:push --environment environment-100 --file .env.production
    blossom environment:deploy --id environment-100 --follow

</details>

## What You Get

- An HTTPS endpoint for job alerts
- Separate permissions to send and read notifications
- Message history in managed PostgreSQL
