Schemas — K8 HQ Setup API
Data schemas for K8 HQ Setup API.
Version 1OpenAPI description (JSON)
Schemas
AgentBoardResult
| Field | Type | Description |
boardId required | string | Pattern: ^brd_. |
AgentBookResult
| Field | Type | Description |
bookId required | string | Pattern: ^book_. |
AgentBudgetCap
| Field | Type | Description |
explicit required | boolean | |
version required | integer | |
amountUSD | string | Pattern: ^[0-9]+(\.[0-9]{1,9})?$. |
AgentInboxResult
| Field | Type | Description |
inboxId required | string | Pattern: ^ibx_. |
AgentOK
| Field | Type | Description |
ok required | true | |
AgentOrganizationDeletionResult
| Field | Type | Description |
deleteAt required | string | |
status required | string | |
AgentOwnCapResult
| Field | Type | Description |
amountUSD required | string | Exact unsigned decimal USD string, at most nine fractional digits and int64 nanodollar bounds; no sign, exponent, floating point, rounding or absent-means-unlimited. Zero allows no positive new charge. Pattern: ^[0-9]+(\.[0-9]{1,9})?$. |
explicit required | true | |
AgentPermissionGrowthSettings
Owner setting for whether apps may add access automatically. Off by default. It overrides personal opt-ins.
| Field | Type | Description |
enabled required | boolean | |
revision required | integer | Advances with each change. Queued additions must check this revision and that the setting is on in their commit transaction. |
AgentProblem
| Field | Type | Description |
code required | invalid | unauthenticated | read_only | forbidden | approval_required | not_found | conflict | version_mismatch | rejected | unavailable | address_reserved | address_taken | domain_unverified | mail_off | no_credit | service_disabled | org_closed | Stable code for clients; detail is for people and may change. |
status required | integer | |
title required | string | |
type required | string | |
detail | string | |
AgentRemovalReceipt
| Field | Type | Description |
action required | string | |
id required | string | Pattern: ^aop_. |
resources required | object | |
state required | "committed" | |
AgentRuleAction
One thing a rule does. String fields may name a parameter as $name. notifyMembers sends each current inbox member who can open the triggering message a notice, unless the message is spam. Subjects are quoted and shortened, and left out for zero-access inboxes. Copies follow each member's notification routes and leave out the subject; outside copies use the subject New mail in K8 HQ. At most 100 members; above that, no notices are sent and rule.action.failed records member_limit. If a member no longer meets the notice conditions at delivery, their notice is skipped and rule.action.failed records member_condition once per member and triggering event. If the sponsoring app loses authority, the rule pauses with reason authority. Each stored notice counts as one rules.actions unit and against the rule daily limit.
| Field | Type | Description |
kind required | label | move | flag | emit | notify | notifyMembers | See GET /rule-actions. parse_dmarc_report is K8 HQ's own: only its starter template may use it. |
add | AgentWebFlag[] | flag: flags to set. |
body | string | reply: the reply's plain text, or a string parameter ("$name"). |
data | object | emit: the type's fields, each a CEL expression. |
inbox | string | notify: the inbox (or inbox parameter) a notice is delivered to (up to 100 a day per rule). |
label | string | label, move: a label ID, a role (inbox, archive, spam, trash, sent, drafts) or a label parameter. Move takes the message out of the label the trigger put it in. |
remove | AgentWebFlag[] | flag: flags to clear. |
subject | string | notify, K8 HQ's starter templates only: a CEL expression for the notice's subject. Other rules' notices are "Rule: <name>". |
text | string | notify: a CEL expression for the notice's text. |
type | string | emit: a registered ext.* type (up to 1000 a day per rule). |
when | string | A CEL filter set only by K8 HQ's unchanged starter templates. Other customer rules cannot set it. Empty runs the action for every matched event. |
AgentRuleResult
| Field | Type | Description |
ruleId required | string | Pattern: ^rul_. |
AgentServiceView
| Field | Type | Description |
catalog required | object[] | |
services required | object | |
AgentTemplate
A rule template. App rules may only use actions that stay inside K8 HQ; reply and parse_dmarc_report are refused. Current access to every referenced inbox and event type is checked.
| Field | Type | Description |
actions required | AgentRuleAction[] | |
name required | string | |
templateVersion required | 1 | |
triggers required | object[] | |
description | string | |
filter | string | A CEL expression that must be true for the rule to act, over event (type, subject, container, time, actor, data), message for message.* triggers (channel, direction, subject, participants, from, labels, flags, size, endpoints, spam, spamScore) and params. Checked when saved: every field it names must exist. Empty matches every triggering event. |
parameters | object[] | |
AgentWebFlag
The flags the API can change. Values: seen, flagged, answered.
AppObservation
Private current-owner sampled mail-app activity. No labels, networks, syncing claims or manufactured daily history. The fourteen slots are the only personal history. observedAt is absent until a daily check completes.
| Field | Type | Description |
createdAt required | string | |
daysUsed required | integer[] | |
reason required | learning | periodic | fresh | grace | quiet | retired | |
tokenId required | string | |
lastUsedAt | string | |
observedAt | string | |
Attribution
What authorized a change (change attribution): the person, their token, an agent (an app, K8 or a rule) or K8 HQ. IDs and a token label snapshot only; names are looked up when shown. Board items, history rows, comments and connection records infer missing attribution on read, marked inferred; inference is never stored. Item creation uses createdBy and its creation source; item updates use only updatedBy, with token kind only when the updater identifies a token write. With hideTokenLabels enabled, other ordinary members receive attribution without tokenLabel; tokenId remains visible. The token's person and organization owners and admins retain the label.
| Field | Type | Description |
kind required | string | person, token, agent or system. |
agent | string | For kind agent: app (an external app), k8 (the K8 assistant) or rule (a rule's agent). |
agentId | string | The rule's agent (agt_). |
appId | string | The external app's registration (app_). |
appVersionId | string | The app's configuration version (acv_). |
connectionId | string | The personal app connection (cnx_); absent for an organization's service identity. |
credentialId | string | The app credential used (tok_). |
inferred | boolean | True when inferred from a legacy record on read. Never stored or resolved from current token records. |
memberId | string | The accountable member (mem_): the person, the person whose token was used, or for whom K8 or an app acted. |
onBehalfOf | object | Whose standing authorization a system job or rule ran under. |
ruleId | string | The rule (rul_). |
system | string | For kind system: the K8 HQ actor (sys_…). |
tokenId | string | The token used (tok_). |
tokenLabel | string | The token's label when it acted (a snapshot, cleaned, at most 100 bytes). |
userId | string | The accountable user (usr_), only in a person's own scope. |
BounceObservation
Seven UTC dates of recipient delivery-event counts, distinct from the complete tenant list count of newly BOUNCE-suppressed unique addresses. Counts only; no addresses.
| Field | Type | Description |
complaints required | integer | |
hardBounces required | integer | |
newSuppressions required | integer | |
paused required | boolean | |
sent required | integer | |
warned required | boolean | |
bounceRate | number | Fraction of sent recipients; omitted when sent is zero or unknown. |
complaintRate | number | Fraction of sent recipients; omitted when sent is zero or unknown. |
CreditObservation
BillingView only. Last known exact server observation; unavailable refresh retains its original observedAt.
| Field | Type | Description |
availableNano required | string | Exact available credit in nano-dollars, including promo and minus pending. Pattern: ^-?(0|[1-9][0-9]*)$. |
baselineDays required | integer | |
comped required | boolean | |
funded required | boolean | |
low required | boolean | |
observedAt required | string | |
reason required | comped | top_up | never_funded | out | low | no_history | short_baseline | zero_median | short | runway | |
topUp required | boolean | |
days | string | Whole forecast days; absent when no finite defensible forecast exists. Pattern: ^(0|[1-9][0-9]*)$. |
DnsRecord
A DNS record the domain needs.
| Field | Type | Description |
found required | boolean | The last check saw it (for DKIM: Amazon SES's verdict on all three). |
name required | string | The record's full name, such as _k8hq.example.com, abc._domainkey.example.com or bounce.example.com. |
type required | TXT | CNAME | MX | |
value required | string | Its value: k8hq-verify=... for the TXT, ....dkim.amazonses.com for the DKIM CNAMEs, Amazon SES's feedback host and SPF for a MAIL FROM. |
priority | integer | An MX record's priority. |
Domain
A domain of the organization's and its DNS setup.
| Field | Type | Description |
domain required | string | The domain name, lowercase. |
domainId required | string | Its ID (dom_...). Pattern: ^dom_. |
plan required | monthly | yearly | The fee covers the domain's setup and monitoring and a share of running the service. How it is paid: monthly ($12 a year, charged daily) or yearly ($10 a year at verification and each anniversary, not refunded). Change it with Change how a domain's fee is paid. |
records required | DnsRecord[] | The records to add at the domain's DNS host: the TXT first, then the DKIM CNAMEs once it's proven. |
status required | pending | proven | verified | pending: add the TXT record (proves the organization controls the domain); proven: add the three DKIM CNAMEs (lets K8 HQ sign its mail); verified: ready for addresses. |
disputed | boolean | The domain's owner disputed this claim through a one-click proof notice's release link: nothing is sent from it until K8 HQ has looked into it (the owners are told what to do). Mail still arrives. |
expiresAt | string | For pending: when the domain is released unless its TXT record is found. |
mailFrom | MailFrom | For a verified domain: its custom MAIL FROM and the records it needs. Apart from records and missing: mail is sent either way. |
mailMoved | boolean | On the domains list, Health's current MX check says mail comes only to K8 HQ. False when it goes elsewhere, is split, or cannot be checked. |
mailMovedAt | string | When Health first saw mail come to K8 HQ, when known and mailMoved is true. |
missing | txt | dkim | txt_other[] | What the last check didn't find. txt_other (with txt): _k8hq has a K8 HQ proof record that isn't this organization's, so another K8 HQ organization asked for the domain; if the person approved a one-click setup request, it wasn't theirs. |
removing | boolean | It's being removed (Remove a domain): it takes no new addresses, and its records aren't shown any more. |
DomainHealth
A domain's Health items.
| Field | Type | Description |
againAt required | string | When fresh looks it up again. |
cached required | boolean | The lookups are from an earlier call (checkedAt). |
checkedAt required | string | When its DNS was looked up. |
domain required | string | |
items required | HealthItem[] | |
mxOurs required | boolean | Its mail comes to K8 HQ, and only to K8 HQ. |
reportsInbox required | boolean | dmarc@<domain> reaches the organization's DMARC reports inbox. |
status required | pending | proven | verified | |
dnsCompany | string | Who keeps its DNS, from its nameservers (GoDaddy, Cloudflare...), when K8 HQ knows. |
mx | string[] | Its MX records as seen (10 host). |
oldProvider | microsoft365 | proofpoint | godaddy | google | zoho | other | The mail provider its MX names, when that isn't K8 HQ. |
Fallback
The payer's fallback (design note 0011): when the organization's credit runs low, K8 HQ moves chunk dollars at a time of purchased credit from the payer's own balance into it, at most cap dollars a calendar month (UTC), and tells the payer and owners as the cap nears.
| Field | Type | Description |
cap required | integer | Whole US dollars a month, at least the chunk: 1 to 200 (default 20). |
chunk required | integer | Whole US dollars per move: 1 to 10 (default 1). |
on required | boolean | |
HealthDismissal
| Field | Type | Description |
fingerprint required | string | Pattern: ^[a-f0-9]{64}$. |
key required | string | The domain item id or monitor item key. |
source required | domain | monitor | |
domain | string | Required for a domain item; its domain name. |
HealthItem
One item of the Health page.
| Field | Type | Description |
id required | proof | dkim | mx | spf | dmarc | leftovers | mail_from | |
status required | ok | attention | action | not_yet | cant_check | |
text required | string | What it means and what to do, in plain words. |
title required | string | |
dismissed | boolean | Hide this Needs-attention item while true. A changed finding returns without this flag. Action-needed items never have this flag. Items remain in the response so setup checks can still use their status. |
fingerprint | string | Opaque finding fingerprint, present only for Needs attention. Send it unchanged when dismissing this item. Pattern: ^[a-f0-9]{64}$. |
records | HealthRecord[] | The fix: the exact records to change. |
seen | string[] | The values found (technical details). |
HealthRecord
A record to change at the domain's DNS provider.
| Field | Type | Description |
do required | add | replace | delete | Add it, replace the record of its type and name with it, or delete it. |
name required | string | The full name (example.com, _dmarc.example.com). |
type required | MX | TXT | CNAME | |
value required | string | |
priority | integer | MX records' priority. |
MailFrom
A verified domain's custom MAIL FROM: the subdomain its mail is sent from in SMTP, where bounces return, so SPF aligns with the From domain as DKIM does. Until Amazon SES finds its records, mail is sent with SES's own MAIL FROM, as before.
| Field | Type | Description |
chosen required | boolean | Someone chose it; otherwise it's the default, bounce. |
host required | string | The full name, e.g. bounce.example.com. |
name required | string | The subdomain label in use, e.g. bounce. |
options required | MailFromOption[] | The names that could be chosen (bounce, send, email, mail, and the current one), each checked in the domain's DNS. Empty in a domain's listing; Get a domain's MAIL FROM checks them. |
records required | DnsRecord[] | The records to add at the domain's DNS host: an MX to Amazon SES's feedback host and an SPF TXT. |
status required | none | pending | success | failed | temporary_failure | Amazon SES's verdict on this name: none while it isn't set on the domain yet, pending until SES has looked, success once mail goes with it. |
reject | boolean | Amazon SES refuses the domain's mail while this MAIL FROM isn't working (its MX failure behaviour is to reject), instead of sending it with its own MAIL FROM. |
wildcard | boolean | The domain's DNS answers for any name (a wildcard record), so no name looks free: decide with whoever runs the domain's DNS. |
MailFromOption
A name a domain's MAIL FROM could use.
| Field | Type | Description |
free required | boolean | Nothing else uses it in the domain's DNS (it has no CNAME, MX, TXT or address records, or only the ones MAIL FROM needs), so it can be chosen. |
host required | string | The full name, e.g. bounce.example.com. |
name required | string | The subdomain label, e.g. bounce. |
inUse | cname | mx | txt | address | unknown[] | What the name has already; unknown when it couldn't be looked up. |
MonitorChange
| Field | Type | Description |
firstSeen required | string | When first seen (RFC 3339). |
what required | string | |
from | string | |
to | string | |
MonitorDay
| Field | Type | Description |
day required | string | The day (YYYY-MM-DD). |
status required | string | The status that day. |
values | object | Daily observed counts and rates; bounces retains seven-day sent, hardBounces, complaints, newSuppressions, optional bounceRate/complaintRate fractions and actual warned/paused flags. Missing dates were not observed. Credit contains CreditObservation fields, with exact string amounts/days; BillingView protects both current and historical observations. Spam/refused retain VolumeObservation fields, with nested counts.spam (committed inbox deliveries into Spam), counts.refused (spam or malware DATA refusals per organization) and counts.unknown (unknown/disabled/deleted RCPT attempts). These are distinct units and are never combined. Dmarc (domains.manage) retains the 7 days ending that day of the domain's own mail (sent from its K8 HQ MAIL FROM domain): messages, passed, reports that day, and rate (percent, rounded down) when the week was complete. Dmarc_senders (domains.manage) retains failingSenders: the number of new, unconfirmed senders failing in the seven days ending that day. Current readable incoming-mail access in the organization protects both volume counts and history; incomplete or missing dates are not zero. |
MonitorItem
| Field | Type | Description |
history required | MonitorDay[] | |
key required | string | mail, bounces, credit, spam, refused, dns:<domain>, dmarc:<domain>, dmarc_senders:<domain>, apps:<own app-password ID>, lockouts (owners only) or signin (your own passkey lockouts only). Forwarding keys identify individual forwards; their dismissals are shared with everyone who can read that inbox. Owners and sending findings are visible to organization owners only; passkeys findings describe only the signed-in person and their dismissals are private. Forwarding and transfers are live checklist items limited to current readable inbox grants; transfers include only the caller's own imports and exports. Spam/refused current counts and history require current readable incoming-mail access in this organization. |
monitor required | dns | dmarc | dmarc_senders | mail | bounces | credit | apps | lockouts | signin | spam | refused | forwarding | transfers | owners | passkeys | sending | |
status required | ok | attention | action | not_yet | cant_check | |
text required | string | The status in plain words. |
app | AppObservation | |
bounces | BounceObservation | |
changes | MonitorChange[] | |
checking | boolean | A change waits for its second lookup; for dmarc, own mail under 98% on one report day, judged again with the next. |
credit | CreditObservation | |
dismissed | boolean | Hide this Needs-attention item while true. A changed finding returns without this flag. Action-needed items never have this flag. Items remain in the response so setup checks can still use their status. |
domain | string | |
finding | string | DNS, incoming-mail or outbound finding; outbound values are approaching, threshold, warned or paused. |
fingerprint | string | Opaque finding fingerprint, present only for Needs attention. Send it unchanged when dismissing this item. Pattern: ^[a-f0-9]{64}$. |
fixedOn | string | The day it last went back to OK. Never set by dmarc_senders, including when a sender stops appearing. |
held | boolean | Probably K8 HQ's own problem: nobody is told. |
noLongerJudged | boolean | |
senders | SeenSender[] | dmarc: the other senders seen in the domain's DMARC reports in the last 90 days, newest first (at most 50). |
sendersUnavailable | boolean | dmarc: the senders couldn't be read just now, so senders is empty without meaning none. |
since | string | The day the status began (YYYY-MM-DD). |
suggestion | object | dmarc: optional quarantine suggestion when the item is OK, own mail had no failures on the last 14 report days within retained history, no current DNS or authentication problem prevents it, and the stored DNS record has p=none. Nothing changes automatically. |
unfamiliarSenders | string[] | dmarc_senders: new, unconfirmed senders with failing mail in the last 7 days, ordered by most failing messages (ties by name). |
volume | VolumeObservation | |
Move
A move to K8 HQ (the moving checklist).
| Field | Type | Description |
auto required | boolean | Started by itself, by a check that saw the domain's mail going elsewhere. |
domain required | string | |
provider required | microsoft365 | proofpoint | godaddy | google | zoho | other | |
startedAt required | string | |
domainId | string | The domain registration this move belongs to. |
finishedAt | string | |
oldMx | string[] | The old provider's MX records as first seen (0 host): putting them back undoes the switch. |
senders | string | What else sends mail as the organization (empty: nothing); absent until answered. |
stoppedAt | string | |
ticked | object | The steps ticked, and when. |
MoveChange
One change to the move.
| Field | Type | Description |
action required | start | provider | tick | untick | senders | finish | stop | |
version required | integer | The version from GET mail-move (including zero for no move). A stale version returns 409; reload before retrying. |
domain | string | start: the domain moving. |
provider | microsoft365 | proofpoint | godaddy | google | zoho | other | start and provider: the old provider. |
senders | string | senders: what else sends mail as the organization (website forms, billing systems); empty for nothing. |
step | test | copy | ttl | catchup | devices | cancel | finish | tick and untick. A completed checklist cannot be reopened by unticking finish; start a new checklist. |
MoveInfo
| Field | Type | Description |
move required | any | |
version required | integer | Opaque numeric revision; zero means no stored state. Send the displayed value with each change. A new record gets a fresh JavaScript-safe base after physical expiry. |
Org
An organization the person is in, and what they may set up there.
| Field | Type | Description |
createInboxes required | boolean | They may create inboxes (containers.create, inbox.addresses.manage and domains.manage). |
domainPlans required | boolean | Whether they may change how its domains' fees are paid (Change how a domain's fee is paid): domains.manage and billing.pay. |
manageDomains required | boolean | They may list, add and check its domains (domains.manage). |
name required | string | Its display name; empty if it has none yet. |
orgId required | string | The organization (org_...). Pattern: ^org_. |
removeInboxes required | boolean | May remove inboxes (containers.delete: owners and admins). |
rename required | boolean | They may rename it (org.settings.change: owners, not admins). |
role required | member | developer | admin | owner | |
createBoards | boolean | They may create task boards (boards.create: owners by default). |
createBooks | boolean | Can create self-only contact books while Contacts is enabled. |
createEmptyInboxes | boolean | May create an inbox with no addresses (containers.create); createInboxes also needs the address and domain permissions. |
createForms | boolean | They may create forms (forms.create: owners by default). |
deleteAt | string | Its deletion is scheduled for then; any owner can cancel it until then. Organizations being deleted aren't listed. |
icon | string | Optional organization icon as a normalized PNG data URL. |
mailHost | string | The organization's mail hostname, for its domains' MX record (10 <mailHost>) and for mail apps' incoming (IMAP, port 993, SSL/TLS) and outgoing (SMTP, port 587 with STARTTLS or port 465 with SSL/TLS) server. Assigned once and never changed; it keeps working if the organization moves. Absent if it couldn't be assigned just now (the next listing retries): use mx1.k8hq.net, imap.k8hq.net and smtp.k8hq.net meanwhile. Pattern: ^[a-z][a-z2-9]{5}\.mx\.k8hq\.net$. |
manageServices | boolean | |
services | object | |
Problem
An RFC 9457 problem detail.
| Field | Type | Description |
code required | invalid | unauthenticated | step_up_required | forbidden | not_found | org_limit | new_payer_orgs | unproven_domain | domain_taken | domain_limit | domain_expired | domain_unverified | address_taken | confirm_name | owner_only | not_payer | conflict | org_closed | owner_left_recently | nonpayment_deletion | inbox_kept | addresses_left | platform_domain | domain_removing | removal_limit | removal_started | address_reserved | address_not_moved | connect_unsupported | connect_not_now | dmarc_exists | rate_limited | release_invalid | release_expired | no_credit | read_only | unavailable | ticket_inbox | ticket_members | service_disabled | service_unknown | version_mismatch | last_holder | book_read_only | move_changed | mail_from_in_use | mail_has_addresses | mail_off | sender_unknown | confirmation_required | confirmation_invalid | confirmation_expired | confirmation_mismatch | confirmation_used | needs_person | health_changed | shared_spam_unavailable | zero_access | client_outdated | Stable: branch on this. |
status required | integer | |
title required | string | |
type required | string | This page's explanation of the code. |
detail | string | For people; may change. |
discarded | boolean | With address_not_moved: the person's access to the new inbox couldn't be given, so it was removed again; nothing is left to clean up. |
inboxId | string | With address_not_moved: the new inbox, which was made empty (and removed again if discarded). Pattern: ^ibx_. |
SeenSender
| Field | Type | Description |
firstSeen required | string | When K8 HQ first counted a report naming it (RFC 3339). Empty for a confirmed sender no longer in the reports. |
lastSeen required | string | When K8 HQ last counted a report naming it (RFC 3339). Empty for a confirmed sender no longer in the reports. |
name required | string | A known service's name, or the organizational domain of the sending server's reverse DNS. Never an address. |
confirmed | boolean | A domain manager confirmed it sends the organization's mail (POST /v1/health/senders/confirm). |
service | boolean | A known sending service: only these can be confirmed (a server's reverse-DNS name is a hint only). |
Services
| Field | Type | Description |
catalog required | object[] | |
manageServices required | boolean | |
services required | object | |
SessionCreateBoardResourceResult
| Field | Type | Description |
boardId required | string | The board (brd_...). Pattern: ^brd_. |
SessionCreateBookResourceResult
| Field | Type | Description |
book required | object | |
SessionCreateInboxResourceResult
| Field | Type | Description |
inboxId required | string | The inbox (ibx_...). Pattern: ^ibx_. |
SessionDeleteBoardResourceResult
| Field | Type | Description |
boardId required | string | The board (brd_...). Pattern: ^brd_. |
purgeAt required | string | When its content is deleted for good (now, for a board with no items). |
SessionDeleteBookResourceResult
| Field | Type | Description |
bookId required | string | |
purgeAt required | string | |
SessionDeleteInboxResourceResult
| Field | Type | Description |
inboxId required | string | The inbox (ibx_...). Pattern: ^ibx_. |
purgeAt required | string | When its content is deleted for good (now, for an inbox with no mail). |
SessionDeleteOrgResourceResult
| Field | Type | Description |
deleteAt required | string | |
orgId required | string | The organization (org_...). Pattern: ^org_. |
Settings
An organization's settings as one of its members sees them; owners also see who pays, the fallback and the sending probation.
| Field | Type | Description |
mayRename required | boolean | They may rename it (org.settings.change). |
name required | string | Its display name; empty if it has none. |
orgId required | string | The organization (org_...). Pattern: ^org_. |
role required | member | developer | admin | owner | |
status required | active | pending_deletion | pending_deletion: its deletion is scheduled for deleteAt, and mail keeps flowing until then. An owner's own deletion can be cancelled by any owner; one with deleteReason nonpayment only by adding credit. |
timeZone required | string | An IANA time zone, such as America/New_York or UTC. UTC when unset. |
you required | string | A member (mem_...). Pattern: ^mem_. |
agentPermissionGrowth | AgentPermissionGrowthSettings | Owners only, while organization permission growth is available. |
billing | object | Who pays (owners). |
deleteAt | string | When a pending deletion starts. |
deleteReason | nonpayment | Set for a deletion K8 HQ scheduled because the organization stayed out of credit (design note 0024 step 5, day 180): owners can't cancel it; adding credit stops it, up to the moment it starts. |
deleteRequestedBy | string | Who asked for the deletion: a member (mem_...), or sys_billing for a nonpayment deletion. Pattern: ^(mem_|sys_). |
icon | string | Optional organization icon as a normalized PNG data URL. |
owners | string[] | The owners (owners see them, to hand billing over). |
probation | object | Sending probation (owners): new senders send to a few recipients a day, more as mail is delivered without complaints. The limit and history belong to the person who pays for the organization, shared by every organization they pay for (organizations without a payer have their own). |
sharedSpamReports | SharedSpamReportsSettings | Owners only. |
SharedSpamReportsSettings
Help improve spam filtering: owner consent to share Spam reports. Off by default.
| Field | Type | Description |
available required | boolean | Whether enabling shared reports is available. The app hides the setting while false. |
enabled required | boolean | Whether the organization allows new shared Spam reports. |
withdrawalRequestedAt | string | When the last request to withdraw shared reports was saved. A later opt-in does not cancel that request. |
VolumeObservation
Daily inbound counts in distinct units: committed inbox deliveries into Spam, spam or malware DATA refusals per organization, and unknown/disabled/deleted RCPT attempts. Missing or incomplete dates never count as zero. The baseline uses at least 14 complete preceding dates within 28 dates. Normal values are exact rational strings; for example, 15/2 means 7.5. Counts are available before the baseline is ready.
| Field | Type | Description |
baselineDays required | integer | |
complete required | boolean | |
day required | string | |
observedAt required | string | |
reason required | string | incomplete: the judged date lacks certified whole-date coverage; counts are absent or explicitly qualified partial counts, and no baseline judgment is made. learning: the judged date is complete but fewer than 14 complete preceding dates exist within 28 dates; counts are shown without a surge judgment. observed: the judged date and at least 14 baseline dates are complete, so exact medians and strict surge comparisons are available. baseline_unavailable: the judged date has complete counts, but a baseline read failed; retain dated counts without a new judgment or a Fixed transition. |
refusedSurge required | boolean | |
spamSurge required | boolean | |
unknownSurge required | boolean | |
counts | object | |
refusedNormal | string | |
spamNormal | string | |
unknownNormal | string | |
ZeroAccessEncryption
| Field | Type | Description |
activeEpoch required | string | Pattern: ^[0-9]+$. |
agentCauses required | integer | Agent causes still waiting for an encryption update. A cause counts until its request has a receipt and the generation it requested has been secured. A skipped receipt is already secured. Reads check up to four requests per participating app connection; more requests count as one extra cause until they can be checked. |
agentsWaiting required | integer | Connected apps waiting for a member's device to share a new key after publication. This count never makes encryption pending and never clears an agent cause. |
message required | string | null | Plain status text naming a removed person, a disconnected agent, or both when encryption is pending. Mail keeps arriving during the update. |
pendingRequests required | object[] | People whose removal or suspension still needs an encryption update request to be processed. |
progress required | none | waiting_for_device | in_progress | |
requiredGeneration required | string | Pattern: ^[0-9]+$. |
securedGeneration required | string | Pattern: ^[0-9]+$. |
status required | complete | pending | Pending while a requested generation is not secured, a person has an unprocessed request or is no longer authorized to hold the key, or an agent cause is unsecured. |
ZeroAccessOutboxBlocker
The zero-access switch preflight, when available, refuses to continue while the inbox has stored outgoing mail. Send or cancel it first. Failed and uncertain items must also be removed so their keys remain available until they are handled.
| Field | Type | Description |
code required | scheduled_messages | |
count required | integer | |
detail required | string | For example: 2 scheduled messages: send or cancel them first. |