Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

395 B
Raw Blame
import { z } from "zod/v4";

// There are more properties, see: https://docs.ntfy.sh/subscribe/api/#json-message-format
// Not all properties are required for this use case.
export const ntfyNotificationSchema = z.object({
  id: z.string(),
  time: z.number(),
  event: z.string(), // we only care about "message"
  topic: z.string(),
  title: z.optional(z.string()),
  message: z.string(),
});