Skip to Content
Xeonr Developer Docs
API SpecificationTemplates

Put kind

POST
/xeonr.notify.v1.TemplateService/PutKind

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
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

appSlug?string
Length1 <= length <= 64
kind?string
Length1 <= length <= 64
displayName?string
Lengthlength <= 191
description?string
Lengthlength <= 512
category?string
Lengthlength <= 64
defaultChannels?array<>
Itemsitems <= 8
defaultPriority?integer

1..5; 0 means the publisher decides.

Formatint32
Range0 <= value <= 5
critical?boolean

validate:skip a bool has no bounds

sensitive?boolean

See Kind.sensitive. validate:skip a bool has no bounds

[key: string]?never

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]"
}