Skip to Content
Xeonr Developer Docs

Publishing

The one-request edge, its headers, and the structured call products use.

The edge

Two URLs, same behaviour. The difference is only how you are identified.

# A publish key. No token, no handshake — the key IS the credential.
curl -d "deploy finished" https://notify.xeonr.io/p/xk_your_key

# A bearer token, for a caller that already has one.
curl -d "deploy finished" -H "Authorization: Bearer $TOKEN" \
  https://notify.xeonr.io/t/tp_8a9278d2334745b5

The body is the message. Everything else is a header.

HeaderAliasesMeaning
TitleX-Title, TThe headline. Without one, the body is the headline.
PriorityX-Priority, Prio, P1–5, or min/low/default/high/max. 5 gets the phone's time-sensitive treatment; ≤ 2 arrives silently.
TagsX-Tags, Tag, TaComma-separated. Subscribers can filter on them.
ClickX-ClickWhere a tap goes. Defaults to the message's own page.
ActionsX-ActionsButtons — see below.
MarkdownX-Markdown, mdyes/true/1. Or send Content-Type: text/markdown.
DelayX-Delay, At, InHold it until later — see below.
Idempotency-KeyX-Idempotency-KeyPublishing the same key twice on one topic is one message.
Coalesce-KeyX-Coalesce-KeyCollapse — see below.
AppX-AppThe publishing product's slug.
KindX-KindThe event kind, which selects a template.

Or send the same fields as JSON:

curl -H 'Content-Type: application/json' https://notify.xeonr.io/p/xk_your_key \
  -d '{"title":"CI","message":"the build fell over","priority":"high",
       "tags":["ci","fail"],"coalesce_key":"build-7",
       "actions":[{"label":"Logs","url":"https://ci.example/1/log"}]}'

The edge is send-only, and deliberately cannot do everything the API can: no naming a person, no template variables. Anything that needs structure belongs on the API rather than in a second half-schema made of headers.

Scheduling

Delay takes a duration from now, a unix timestamp, or an RFC 3339 instant:

curl -d "stand-up" -H "Delay: 30m"                    …   # in half an hour
curl -d "stand-up" -H "Delay: 2 days"                 …
curl -d "stand-up" -H "Delay: 2026-12-25T09:00:00Z"   …

At most 30 days out; further is refused, because a schedule that far is almost always a units mistake and a message surfacing next year is worse than a rejected request. Natural-language forms (tomorrow, 10am) are not accepted: they need a timezone you did not send, so the answer would not be the one you predicted.

A scheduled message exists in the topic from the moment you publish it — you can see it queued — but nothing is delivered and no stream carries it until it is due.

Collapsing

Coalesce-Key is for reporting the same thing repeatedly. A publish carrying one supersedes any earlier message on the same topic with the same key whose delivery has not gone out yet:

for step in 1 2 3 4; do
  curl -d "step $step of 4" -H "Coalesce-Key: build-7" https://notify.xeonr.io/p/xk_…
done

If the phone was asleep for all four, it buzzes once, with step 4.

You compute the key, because only you know what counts as near-identical — "this build", not "this event". It is not Idempotency-Key: that stops the same publish happening twice and makes a retry safe. A coalesce key is for genuinely different publishes about one thing, where only the latest is worth an interruption.

Already-sent deliveries are not recalled, and in-app rows are kept: the inbox is a record of what was published, and rewriting history somebody may be reading is not a favour.

Actions

Buttons, at most three:

curl -d "the build fell over" \
  -H "Actions: view, Open the build, https://ci.example/1; Logs, https://ci.example/1/log" \
  https://notify.xeonr.io/p/xk_…

The leading view, is optional. URLs must be http(s). To open the Notify app rather than a browser, link to a path the app claims — https://notify.xeonr.io/messages/<id>, /topics/<id>, /inbox — which opens the app on a phone and still works in an email, in Discord and in a browser. A custom scheme:// URL is refused, because it would be a dead link in three channels out of four.

ntfy's http action — where the device fires a request at a URL you choose — is refused rather than ignored. You can already make that request yourself, from a machine you control and with an audit trail.

Where the buttons appear depends on the channel: web push shows two with your labels, email renders them as links, Discord as a markdown line, and the phone app shows them when the notification is opened. See push payloads.

Rate limits

60 requests a minute sustained, bursts of 30, per key or per identity. Enough for any script, and low enough that a leaked key cannot flood somebody's phone. A client that keeps presenting keys that do not exist is held back with a 429 the same way.

A /p/ request answers 503 with Retry-After in the rare case the key cannot be checked right now (Xeonr Auth unreachable and the key not seen recently). Retry it: the key is not dead.

ntfy compatibility

The header set is ntfy's on purpose, so existing scripts, Alertmanager receivers and phone shortcuts work unchanged. What notify does differently, and why:

  • topics are pre-registered — a typo is a 404, not a new topic;
  • publishing is never anonymous — the topic name is not a credential, a key or a token is;
  • iOS push goes direct, with no relay through a third party.

On this page