Get template
One template for an (app, kind) with its published and draft versions in full: the default body, the per-channel overrides and the declared variables. Either may be absent — nothing published yet, or no unpublished draft. 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:read
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 <= 64Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TemplateService/GetTemplate" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"template": "map[appSlug:xmb createdAt:2026-09-14T08:00:00Z draftVersion:3 id:tm_9e1d4b7a2c6f3e8a0b5d1c43 kind:request.approved publishedVersion:2 updatedAt:2026-10-22T09:30:00Z]",
"published": "map[channelBodies:[map[body:{{.approver}} approved your request for {{.request_title}}. channel:CHANNEL_EMAIL html:<p>{{.approver}} approved your request for <b>{{.request_title}}</b>.</p> subject:[XMB] {{.request_title}} was approved title:{{.request_title}} was approved]] createdAt:2026-09-14T08:00:00Z createdBy:urn:xeonr:auth:uid:user:3 defaultBody:map[body:{{.approver}} approved your request for {{.request_title}}. title:{{.request_title}} was approved] id:tv_3a7f2e9c1b8d4a6e0f5c2b97 published:true publishedAt:2026-09-14T08:00:00Z templateId:tm_9e1d4b7a2c6f3e8a0b5d1c43 variables:[map[example:Dune: Part Two name:request_title required:true] map[example:Luke name:approver required:true]] version:2]",
"draft": "map[channelBodies:[map[body:{{.approver}} approved your request for {{.request_title}}. channel:CHANNEL_EMAIL html:<p>{{.approver}} approved your request for <b>{{.request_title}}</b>.</p> subject:[XMB] {{.request_title}} was approved title:{{.request_title}} was approved]] createdAt:2026-10-22T09:30:00Z createdBy:urn:xeonr:auth:uid:user:3 defaultBody:map[body:{{.approver}} approved your request for {{.request_title}}. title:{{.request_title}} was approved] id:tv_6b2d8f4a1e9c3b7d0a5e2f16 published:false templateId:tm_9e1d4b7a2c6f3e8a0b5d1c43 variables:[map[example:Dune: Part Two name:request_title required:true] map[example:Luke name:approver required:true]] version:3]"
}Delete template POST
Removes the template and every version of it. Messages that rendered through it keep the text they were sent with — the render is stored on the message, not looked up. Needs admin of the team that owns the app, or `notify:platform:admin`. **Required scopes:** `notify:templates:edit`
List kinds POST
An app's event catalogue: the dotted event names it publishes, each with its category, default channels and priority, whether it is critical, whether it is sensitive, and whether a template has been published for it. Open to any signed-in caller — a subscriber needs the category list to filter on, and those are not secrets. Cursor-paginated: newest first, over an opaque cursor over `(created_at, kind)` — a catalogue entry has no id of its own on the wire, and `kind` is unique within the app, so it is what makes the keyset total. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page. **Required scopes:** `notify:templates:read`