Put kind
Creates or replaces one catalogue entry, idempotent on (app, kind). The category is the coarse grouping subscribers filter on — deliberately coarse, because a settings row per event type is the named failure mode of every notification system that has one. A critical kind reaches a recipient even through an off switch, and its deliveries are marked forced so the ledger shows the override rather than hiding it. A sensitive kind's content is never readable over the API and is scrubbed from the store once delivered — for password resets and one-time codes. Needs admin of the team that owns the app, or notify:platform:admin. A product's service account may call this for its own application — the one whose slug the account's token names — so a product owns its catalogue and its credentials without a person in the loop.
Required scopes: notify:templates:edit
Authorization
BearerAuth 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
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= length <= 641 <= length <= 64length <= 191length <= 512length <= 64items <= 81..5; 0 means the publisher decides.
int320 <= value <= 5validate:skip a bool has no bounds
See Kind.sensitive. validate:skip a bool has no bounds
Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TemplateService/PutKind" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"kind": "map[appSlug:xmb category:requests createdAt:2026-09-14T08:00:00Z critical:false defaultChannels:[CHANNEL_IN_APP CHANNEL_EMAIL] defaultPriority:3 description:A media request was approved and is being fetched. displayName:Request approved hasTemplate:true kind:request.approved sensitive:false updatedAt:2026-10-22T09:30:00Z]"
}Publish template POST
Promotes the draft to live as a new immutable version. From here on, a publish naming this kind renders through it, and each message records the version it rendered so the delivery log can show what was sent even after the template moves on. Needs admin of the team that owns the app, or `notify:platform:admin`. A product's **service account** may call this for its own application, so a product ships its wording with its code and publishes it at boot, idempotently. **Required scopes:** `notify:templates:edit`
Save draft POST
Writes the draft for an (app, kind), creating the template on the first call. Refused if the template does not parse — a draft that cannot render is not worth keeping. Declaring variables is what moves a missing field from a silent empty string in somebody's inbox to an error on the publish call. Needs admin of the team that owns the app, or `notify:platform:admin`. A product's **service account** may call this for its own application, so a product ships its wording with its code and publishes it at boot, idempotently. **Required scopes:** `notify:templates:edit`