Installation settings
A Kit can declare a small settings form in its manifest. Ketvia renders it on the Kit’s admin page, validates and stores what an admin saves for each installation, and hands the resolved values to the Kit through the Web API. The Kit keeps no settings screen of its own.
Settings are configuration: a channel to post a report to, a time of day, a language, a switch. They are never secrets and never personal data. The audit log and the change event carry key names only, never values.
Declaring settings
Section titled “Declaring settings”settings is a JSON Schema object in the safe subset with Ketvia’s
x-ketvia-* annotations on each field:
"settings": { "type": "object", "x-ketvia-groups": { "report": { "en": "Daily report", "tr": "Günlük rapor" } }, "properties": { "reportChannel": { "type": "string", "format": "uuid", "maxLength": 36, "x-ketvia-widget": "channel", "x-ketvia-group": "report", "x-ketvia-order": 10, "x-ketvia-label": { "en": "Post the report to", "tr": "Raporun gönderileceği kanal" } }, "reportTime": { "type": "string", "maxLength": 5, "default": "08:30", "x-ketvia-widget": "time", "x-ketvia-group": "report", "x-ketvia-order": 20, "x-ketvia-label": { "en": "Time", "tr": "Saat" } }, "language": { "type": "string", "maxLength": 2, "enum": ["en", "tr"], "default": "en", "x-ketvia-widget": "select", "x-ketvia-order": 30, "x-ketvia-label": { "en": "Language", "tr": "Dil" }, "x-ketvia-enumLabels": { "en": { "en": "English" }, "tr": { "en": "Turkish", "tr": "Türkçe" } } }, "showNames": { "type": "boolean", "default": false, "x-ketvia-widget": "toggle", "x-ketvia-order": 40, "x-ketvia-ownerOnly": true, "x-ketvia-label": { "en": "Show names in channel messages" }, "x-ketvia-help": { "en": "Off by default. Only the workspace owner can change it." } } }, "additionalProperties": false}| Annotation | Required | Meaning |
|---|---|---|
x-ketvia-widget |
Yes | One of the widgets below. |
x-ketvia-label |
Yes | Localized label (en required, up to 80 characters). |
x-ketvia-order |
Yes | Integer 0 to 999; fields are shown in this order. |
x-ketvia-help |
No | Localized help text (up to 300 characters). |
x-ketvia-group |
No | A key of x-ketvia-groups (at most 10 groups, each with a localized title). |
x-ketvia-ownerOnly |
No | true: only the workspace owner may change this field. Admins see it, read-only. |
x-ketvia-enumLabels |
No | select only: a localized label per enum value (up to 60 characters). |
A field may carry a default that fits its widget; required lists the fields a save must always contain. At most 30
fields and 8 KB.
Widgets
Section titled “Widgets”| Widget | Type | Rule |
|---|---|---|
channel |
string |
format: "uuid" and no default. Ketvia offers channels, and a save needs the Kit bot to be in the channel (409 kit_not_in_channel otherwise). |
time |
string |
maxLength: 5, a value HH:MM (24 hours). |
weekday |
integer |
minimum: 1, maximum: 7 (1 is Monday). |
toggle |
boolean |
|
select |
string or integer |
enum with 1 to 20 values. |
Who changes settings
Section titled “Who changes settings”Admins with the kits.manage permission open the Kit’s settings page and save. Fields marked x-ketvia-ownerOnly
need the owner permission (kits.settings_owner); a save that changes one without it is refused. Every save replaces
all values at once and becomes a new version; the form sends the version it started from, and a save over a newer
version answers 409 version_conflict.
Reading the values
Section titled “Reading the values”GET /installation/settings (bot tokens, no scope) returns the current values with defaults applied:
{ "settings": { "version": 3, "values": { "reportChannel": "0b6f8c1e-…", "reportTime": "08:30", "language": "tr", "showNames": false }, "updatedAt": "2026-10-07T09:12:00.000Z" }}version is 0 and updatedAt is null until the first save. A field nobody set, or a stored value that no longer
fits the installed manifest version, reads as its default (or null). A Kit without a settings section gets
404.
With the SDK:
const { settings } = await client.installation.settings();Reacting to changes
Section titled “Reacting to changes”Each save that changes something sends the kit.settings_changed event (no scope needed,
subscribe to it in events.subscribe): { version, changedKeys }. It names the keys, never the values: read them
again with GET /installation/settings.