Skip to Content
Xeonr Developer Docs
API SpecificationMessages

Get stats

POST
/xeonr.notify.v1.MessageService/GetStats

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

Authorization

BearerAuth
AuthorizationBearer <token>

An access token from Xeonr Auth, presented as Authorization: Bearer <token>. Its audience must include https://notify.xeonr.io, and it must carry the scope the method lists.

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.MessageService/GetStats" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "topics": "42",
  "subscriptions": "317",
  "devices": "96",
  "messages24h": "1284",
  "sent24h": "4710",
  "failed24h": "12",
  "pending": "5"
}

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.

List inbox POST

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