Publish a notification
publish_messageSend notifications to one or more ntfy topics with per-topic success reports, so a rejected topic doesn't discard successful ones. Returns a sequence ID to update the same notification in place.
Instructions
Sends a notification to one or more topics.
ntfy has no multi-topic publish, so this sends one request per topic and reports each outcome separately — a rejection on one topic does not discard the ones that succeeded. Check the "ok" field per entry rather than assuming the whole call worked.
The returned id is also the notification's sequence id: pass it to update_message to revise this notification in place, which is how a progress report stays one notification instead of five.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | URL of a JPEG or PNG icon. | |
| tags | No | Tags as separate entries. Names that match an emoji short code (for example "warning", "rocket") are rendered as that emoji. | |
| cache | No | Set false to keep the message out of the server cache. It then reaches only clients connected at that moment, and cannot be updated or deleted afterwards. | |
| click | No | URL opened when the notification itself is tapped. | |
| delay | No | Deliver later: a duration such as "30m", a Unix timestamp, or natural language like "tomorrow, 10am". Between 10 seconds and 3 days. | |
| title | No | The notification title. | |
| attach | No | URL of a file to attach by reference. | |
| topics | No | Topics to publish to. Defaults to the first NTFY_TOPICS entry. | |
| actions | No | Up to 3 action buttons. An "http" action fires from the recipient's device, not from the server, and defaults to POST. | |
| message | No | The notification body. | |
| filename | No | Download name for the attachment. | |
| firebase | No | Set false to skip forwarding via Firebase. | |
| markdown | No | Render the message as Markdown in clients that support it. | |
| priority | No | 1 (min) to 5 (max), or "min"/"low"/"default"/"high"/"max". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | Yes | Topics that refused it. | |
| results | Yes | ||
| published | Yes | Topics that accepted it. |