Messages
Publish a message, read a topic's messages and their deliveries, stream them live, and the caller's own in-app inbox.
postGet message
One message with its delivery ledger: every person it reached, over which channel, and what happened. For a message that rendered through a template, `renders` is what each channel actually received, and `payload` is the data it rendered from — returned only to a caller who may manage the topic. The ledger is filtered to the caller's own rows unless they can manage the topic, so an anonymous caller on a public topic sees the message and none of its deliveries. **Unauthenticated callers are allowed** for a topic with `public_subscribe` set.
postGet stats
Headline numbers over the topics the caller can see, for the overview: how many topics, subscriptions and devices they have, and the last 24 hours of messages, sends, failures and pending deliveries. **Required scopes:** `notify:messages:read`
postList inbox
The caller's own in-app deliveries, newest first, each with its message and topic. The in-app row always exists for a matched subscriber, so this names every message that reached them even when nothing was pushed. With `unread_only`, just the ones not yet marked read. Cursor-paginated: newest first, over an opaque cursor over the **delivery** row's `(created_at, id)` — the inbox is a list of deliveries, and a delivery is created at fan-out rather than at publish, so a scheduled or coalesced message does not sort where its `created_at` would put it. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page. `before` is the hand-rolled cursor this RPC shipped with and is **deprecated and no longer read**: it compared against the message's time while this is a list of deliveries, so anything retried or scheduled could be skipped. Use `cursor`. **Required scopes:** `notify:messages:read` — or `notify:inbox:read` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice
postList messages
A topic's messages newest first, with their delivery counts. Needs any capability on the topic. **Unauthenticated callers are allowed** for a topic with `public_subscribe` set. Cursor-paginated: newest first, over an opaque cursor over `(created_at, id)`. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page, and an empty `next_cursor` means there is no further page. `before` is the hand-rolled cursor this RPC shipped with. It is **deprecated and no longer read**: it could not page past a tie, because two messages published in the same millisecond made it either skip a row or repeat one. Use `cursor`.
postList recent
The newest messages across every topic the caller can see, newest first — the overview's feed. Optionally restricted to one publishing app. Cursor-paginated: newest first, over an opaque cursor over `(created_at, id)`. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page. **Required scopes:** `notify:messages:read`
postMark read
Marks the caller's own in-app deliveries read: the ones named in `delivery_ids`, or everything currently unread when the list is empty. Only the caller's own rows are touched. **Required scopes:** `notify:messages:edit` — or `notify:inbox:edit` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice
postPublish
Publishes one event to a topic. Needs publish on the topic. An `idempotency_key` seen before on the same topic returns the earlier message with `created=false`, so a retry is safe. With no `recipients` the message reaches whoever subscribed. With `recipients` it is **directed**: those people, and the members of any team named (optionally narrowed by role), receive it whether or not they subscribed — the "your request was approved" case. A subscription, where one exists, still governs *how* it reaches them, so somebody who muted the topic still hears nothing. When the (app, kind) has a published template, `payload` is rendered through it and a missing required variable fails here rather than rendering an empty string into somebody's inbox an hour later. With no template, `title` and `body` are used verbatim — the ntfy path, which works with no catalogue at all. **Required scopes:** `notify:messages:edit`
postUnread count
How many of the caller's in-app deliveries are unread — the badge on the bell. **Required scopes:** `notify:messages:read` — or `notify:inbox:read` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice
Unregister device POST
Revokes one of the caller's own push endpoints by install id. Pushes to it stop; registering the same install id again brings it back. **Required scopes:** `notify:devices:edit` — or `notify:endpoints:edit` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice
Get message POST
One message with its delivery ledger: every person it reached, over which channel, and what happened. For a message that rendered through a template, `renders` is what each channel actually received, and `payload` is the data it rendered from — returned only to a caller who may manage the topic. The ledger is filtered to the caller's own rows unless they can manage the topic, so an anonymous caller on a public topic sees the message and none of its deliveries. **Unauthenticated callers are allowed** for a topic with `public_subscribe` set.