K8 HQ

Schemas — K8 HQ Setup API

Data schemas for K8 HQ Setup API.

Version 1OpenAPI description (JSON)

Browse operation groups

Schemas

AgentAddressInput

FieldTypeDescription
address requiredstringOne ordinary email address.

AgentBoardResult

FieldTypeDescription
boardId requiredstringPattern: ^brd_.

AgentBookInput

FieldTypeDescription
name requiredstring
membersstring[]Omitted or empty means the authorizing member alone (self). Exactly that member after deduplication selects self; every other member set selects shared. All initial members must currently belong to this organization.

AgentBookResult

FieldTypeDescription
bookId requiredstringPattern: ^book_.

AgentBudgetCap

FieldTypeDescription
explicit requiredboolean
version requiredinteger
amountUSDstringPattern: ^[0-9]+(\.[0-9]{1,9})?$.

AgentConfirmationInput

FieldTypeDescription
confirm requiredstringExact resource name, address or ID as accepted for this resource. Organization deletion requires its exact name, or its ID if unnamed; book deletion requires its exact name.

AgentCreateRuleInput

FieldTypeDescription
template requiredAgentTemplate
activeFromstring
activeUntilstring
dailyCapinteger
ifVersion0
paramsobject

AgentEmptyInput

AgentFormInput

FieldTypeDescription
name requiredstring
retentionDays0

AgentFormResult

FieldTypeDescription
formId requiredstringPattern: ^frm_.

AgentInboxInput

FieldTypeDescription
addresses requiredstring[]Ordinary email addresses, normalized and deduplicated; at most 10 distinct addresses.

AgentInboxResult

FieldTypeDescription
inboxId requiredstringPattern: ^ibx_.

AgentInboxSettingsInput

FieldTypeDescription
forwardingOfftrue
memberRulesOfftrue
rulesMaySendfalse
spamAutoDeletefalse
trashAutoDeletefalse

AgentMoveAddressInput

FieldTypeDescription
inbox requiredstringA different inbox in the same organization. Pattern: ^ibx_.

AgentOK

FieldTypeDescription
ok requiredtrue

AgentOrganizationDeletionResult

FieldTypeDescription
deleteAt requiredstring
status requiredstring

AgentOwnCapInput

FieldTypeDescription
amountUSD requiredstringExact 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})?$.

AgentOwnCapResult

FieldTypeDescription
amountUSD requiredstringExact 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 requiredtrue

AgentPermissionGrowthSettings

Owner setting for whether apps may add access automatically. Off by default. It overrides personal opt-ins.

FieldTypeDescription
enabled requiredboolean
revision requiredintegerAdvances with each change. Queued additions must check this revision and that the setting is on in their commit transaction.

AgentProblem

FieldTypeDescription
code requiredinvalid | 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_closedStable code for clients; detail is for people and may change.
status requiredinteger
title requiredstring
type requiredstring
detailstring

AgentRemovalReceipt

FieldTypeDescription
action requiredstring
id requiredstringPattern: ^aop_.
resources requiredobject
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.

FieldTypeDescription
kind requiredlabel | move | flag | emit | notify | notifyMembersSee GET /rule-actions. parse_dmarc_report is K8 HQ's own: only its starter template may use it.
addAgentWebFlag[]flag: flags to set.
bodystringreply: the reply's plain text, or a string parameter ("$name").
dataobjectemit: the type's fields, each a CEL expression.
inboxstringnotify: the inbox (or inbox parameter) a notice is delivered to (up to 100 a day per rule).
labelstringlabel, 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.
removeAgentWebFlag[]flag: flags to clear.
subjectstringnotify, K8 HQ's starter templates only: a CEL expression for the notice's subject. Other rules' notices are "Rule: <name>".
textstringnotify: a CEL expression for the notice's text.
typestringemit: a registered ext.* type (up to 1000 a day per rule).
whenstringA 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

FieldTypeDescription
ruleId requiredstringPattern: ^rul_.

AgentRuleVersionInput

FieldTypeDescription
ifVersionintegerPositive values must match the current rule version; zero or absent does not assert a version.

AgentServiceView

FieldTypeDescription
catalog requiredobject[]
services requiredobject

AgentTaskBoardInput

FieldTypeDescription
name requiredstring
statusesobject[]Omitted or empty uses the task board defaults.

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.

FieldTypeDescription
actions requiredAgentRuleAction[]
name requiredstring
templateVersion required1
triggers requiredobject[]
descriptionstring
filterstringA 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.
parametersobject[]

AgentUpdateRuleInput

FieldTypeDescription
activeFromstring
activeUntilstring
dailyCapinteger
ifVersioninteger
paramsobject
templateAgentTemplate

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.

FieldTypeDescription
createdAt requiredstring
daysUsed requiredinteger[]
reason requiredlearning | periodic | fresh | grace | quiet | retired
tokenId requiredstring
lastUsedAtstring
observedAtstring

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.

FieldTypeDescription
kind requiredstringperson, token, agent or system.
agentstringFor kind agent: app (an external app), k8 (the K8 assistant) or rule (a rule's agent).
agentIdstringThe rule's agent (agt_).
appIdstringThe external app's registration (app_).
appVersionIdstringThe app's configuration version (acv_).
connectionIdstringThe personal app connection (cnx_); absent for an organization's service identity.
credentialIdstringThe app credential used (tok_).
inferredbooleanTrue when inferred from a legacy record on read. Never stored or resolved from current token records.
memberIdstringThe accountable member (mem_): the person, the person whose token was used, or for whom K8 or an app acted.
onBehalfOfobjectWhose standing authorization a system job or rule ran under.
ruleIdstringThe rule (rul_).
systemstringFor kind system: the K8 HQ actor (sys_…).
tokenIdstringThe token used (tok_).
tokenLabelstringThe token's label when it acted (a snapshot, cleaned, at most 100 bytes).
userIdstringThe 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.

FieldTypeDescription
complaints requiredinteger
hardBounces requiredinteger
newSuppressions requiredinteger
paused requiredboolean
sent requiredinteger
warned requiredboolean
bounceRatenumberFraction of sent recipients; omitted when sent is zero or unknown.
complaintRatenumberFraction of sent recipients; omitted when sent is zero or unknown.

CreditObservation

BillingView only. Last known exact server observation; unavailable refresh retains its original observedAt.

FieldTypeDescription
availableNano requiredstringExact available credit in nano-dollars, including promo and minus pending. Pattern: ^-?(0|[1-9][0-9]*)$.
baselineDays requiredinteger
comped requiredboolean
funded requiredboolean
low requiredboolean
observedAt requiredstring
reason requiredcomped | top_up | never_funded | out | low | no_history | short_baseline | zero_median | short | runway
topUp requiredboolean
daysstringWhole forecast days; absent when no finite defensible forecast exists. Pattern: ^(0|[1-9][0-9]*)$.

DnsRecord

A DNS record the domain needs.

FieldTypeDescription
found requiredbooleanThe last check saw it (for DKIM: Amazon SES's verdict on all three).
name requiredstringThe record's full name, such as _k8hq.example.com, abc._domainkey.example.com or bounce.example.com.
type requiredTXT | CNAME | MX
value requiredstringIts value: k8hq-verify=... for the TXT, ....dkim.amazonses.com for the DKIM CNAMEs, Amazon SES's feedback host and SPF for a MAIL FROM.
priorityintegerAn MX record's priority.

Domain

A domain of the organization's and its DNS setup.

FieldTypeDescription
domain requiredstringThe domain name, lowercase.
domainId requiredstringIts ID (dom_...). Pattern: ^dom_.
plan requiredmonthly | yearlyThe 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 requiredDnsRecord[]The records to add at the domain's DNS host: the TXT first, then the DKIM CNAMEs once it's proven.
status requiredpending | proven | verifiedpending: 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.
disputedbooleanThe 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.
expiresAtstringFor pending: when the domain is released unless its TXT record is found.
mailFromMailFromFor a verified domain: its custom MAIL FROM and the records it needs. Apart from records and missing: mail is sent either way.
mailMovedbooleanOn 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.
mailMovedAtstringWhen Health first saw mail come to K8 HQ, when known and mailMoved is true.
missingtxt | 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.
removingbooleanIt'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.

FieldTypeDescription
againAt requiredstringWhen fresh looks it up again.
cached requiredbooleanThe lookups are from an earlier call (checkedAt).
checkedAt requiredstringWhen its DNS was looked up.
domain requiredstring
items requiredHealthItem[]
mxOurs requiredbooleanIts mail comes to K8 HQ, and only to K8 HQ.
reportsInbox requiredbooleandmarc@<domain> reaches the organization's DMARC reports inbox.
status requiredpending | proven | verified
dnsCompanystringWho keeps its DNS, from its nameservers (GoDaddy, Cloudflare...), when K8 HQ knows.
mxstring[]Its MX records as seen (10 host).
oldProvidermicrosoft365 | proofpoint | godaddy | google | zoho | otherThe 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.

FieldTypeDescription
cap requiredintegerWhole US dollars a month, at least the chunk: 1 to 200 (default 20).
chunk requiredintegerWhole US dollars per move: 1 to 10 (default 1).
on requiredboolean

HealthDismissal

FieldTypeDescription
fingerprint requiredstringPattern: ^[a-f0-9]{64}$.
key requiredstringThe domain item id or monitor item key.
source requireddomain | monitor
domainstringRequired for a domain item; its domain name.

HealthItem

One item of the Health page.

FieldTypeDescription
id requiredproof | dkim | mx | spf | dmarc | leftovers | mail_from
status requiredok | attention | action | not_yet | cant_check
text requiredstringWhat it means and what to do, in plain words.
title requiredstring
dismissedbooleanHide 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.
fingerprintstringOpaque finding fingerprint, present only for Needs attention. Send it unchanged when dismissing this item. Pattern: ^[a-f0-9]{64}$.
recordsHealthRecord[]The fix: the exact records to change.
seenstring[]The values found (technical details).

HealthRecord

A record to change at the domain's DNS provider.

FieldTypeDescription
do requiredadd | replace | deleteAdd it, replace the record of its type and name with it, or delete it.
name requiredstringThe full name (example.com, _dmarc.example.com).
type requiredMX | TXT | CNAME
value requiredstring
priorityintegerMX 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.

FieldTypeDescription
chosen requiredbooleanSomeone chose it; otherwise it's the default, bounce.
host requiredstringThe full name, e.g. bounce.example.com.
name requiredstringThe subdomain label in use, e.g. bounce.
options requiredMailFromOption[]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 requiredDnsRecord[]The records to add at the domain's DNS host: an MX to Amazon SES's feedback host and an SPF TXT.
status requirednone | pending | success | failed | temporary_failureAmazon 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.
rejectbooleanAmazon 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.
wildcardbooleanThe 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.

FieldTypeDescription
free requiredbooleanNothing 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 requiredstringThe full name, e.g. bounce.example.com.
name requiredstringThe subdomain label, e.g. bounce.
inUsecname | mx | txt | address | unknown[]What the name has already; unknown when it couldn't be looked up.

MonitorChange

FieldTypeDescription
firstSeen requiredstringWhen first seen (RFC 3339).
what requiredstring
fromstring
tostring

MonitorDay

FieldTypeDescription
day requiredstringThe day (YYYY-MM-DD).
status requiredstringThe status that day.
valuesobjectDaily 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

FieldTypeDescription
history requiredMonitorDay[]
key requiredstringmail, 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 requireddns | dmarc | dmarc_senders | mail | bounces | credit | apps | lockouts | signin | spam | refused | forwarding | transfers | owners | passkeys | sending
status requiredok | attention | action | not_yet | cant_check
text requiredstringThe status in plain words.
appAppObservation
bouncesBounceObservation
changesMonitorChange[]
checkingbooleanA change waits for its second lookup; for dmarc, own mail under 98% on one report day, judged again with the next.
creditCreditObservation
dismissedbooleanHide 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.
domainstring
findingstringDNS, incoming-mail or outbound finding; outbound values are approaching, threshold, warned or paused.
fingerprintstringOpaque finding fingerprint, present only for Needs attention. Send it unchanged when dismissing this item. Pattern: ^[a-f0-9]{64}$.
fixedOnstringThe day it last went back to OK. Never set by dmarc_senders, including when a sender stops appearing.
heldbooleanProbably K8 HQ's own problem: nobody is told.
noLongerJudgedboolean
sendersSeenSender[]dmarc: the other senders seen in the domain's DMARC reports in the last 90 days, newest first (at most 50).
sendersUnavailablebooleandmarc: the senders couldn't be read just now, so senders is empty without meaning none.
sincestringThe day the status began (YYYY-MM-DD).
suggestionobjectdmarc: 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.
unfamiliarSendersstring[]dmarc_senders: new, unconfirmed senders with failing mail in the last 7 days, ordered by most failing messages (ties by name).
volumeVolumeObservation

Move

A move to K8 HQ (the moving checklist).

FieldTypeDescription
auto requiredbooleanStarted by itself, by a check that saw the domain's mail going elsewhere.
domain requiredstring
provider requiredmicrosoft365 | proofpoint | godaddy | google | zoho | other
startedAt requiredstring
domainIdstringThe domain registration this move belongs to.
finishedAtstring
oldMxstring[]The old provider's MX records as first seen (0 host): putting them back undoes the switch.
sendersstringWhat else sends mail as the organization (empty: nothing); absent until answered.
stoppedAtstring
tickedobjectThe steps ticked, and when.

MoveChange

One change to the move.

FieldTypeDescription
action requiredstart | provider | tick | untick | senders | finish | stop
version requiredintegerThe version from GET mail-move (including zero for no move). A stale version returns 409; reload before retrying.
domainstringstart: the domain moving.
providermicrosoft365 | proofpoint | godaddy | google | zoho | otherstart and provider: the old provider.
sendersstringsenders: what else sends mail as the organization (website forms, billing systems); empty for nothing.
steptest | copy | ttl | catchup | devices | cancel | finishtick and untick. A completed checklist cannot be reopened by unticking finish; start a new checklist.

MoveInfo

FieldTypeDescription
move requiredany
version requiredintegerOpaque 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.

FieldTypeDescription
createInboxes requiredbooleanThey may create inboxes (containers.create, inbox.addresses.manage and domains.manage).
domainPlans requiredbooleanWhether they may change how its domains' fees are paid (Change how a domain's fee is paid): domains.manage and billing.pay.
manageDomains requiredbooleanThey may list, add and check its domains (domains.manage).
name requiredstringIts display name; empty if it has none yet.
orgId requiredstringThe organization (org_...). Pattern: ^org_.
removeInboxes requiredbooleanMay remove inboxes (containers.delete: owners and admins).
rename requiredbooleanThey may rename it (org.settings.change: owners, not admins).
role requiredmember | developer | admin | owner
createBoardsbooleanThey may create task boards (boards.create: owners by default).
createBooksbooleanCan create self-only contact books while Contacts is enabled.
createEmptyInboxesbooleanMay create an inbox with no addresses (containers.create); createInboxes also needs the address and domain permissions.
createFormsbooleanThey may create forms (forms.create: owners by default).
deleteAtstringIts deletion is scheduled for then; any owner can cancel it until then. Organizations being deleted aren't listed.
iconstringOptional organization icon as a normalized PNG data URL.
mailHoststringThe 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$.
manageServicesboolean
servicesobject

Problem

An RFC 9457 problem detail.

FieldTypeDescription
code requiredinvalid | 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_outdatedStable: branch on this.
status requiredinteger
title requiredstring
type requiredstringThis page's explanation of the code.
detailstringFor people; may change.
discardedbooleanWith 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.
inboxIdstringWith address_not_moved: the new inbox, which was made empty (and removed again if discarded). Pattern: ^ibx_.

SeenSender

FieldTypeDescription
firstSeen requiredstringWhen K8 HQ first counted a report naming it (RFC 3339). Empty for a confirmed sender no longer in the reports.
lastSeen requiredstringWhen K8 HQ last counted a report naming it (RFC 3339). Empty for a confirmed sender no longer in the reports.
name requiredstringA known service's name, or the organizational domain of the sending server's reverse DNS. Never an address.
confirmedbooleanA domain manager confirmed it sends the organization's mail (POST /v1/health/senders/confirm).
servicebooleanA known sending service: only these can be confirmed (a server's reverse-DNS name is a hint only).

Services

FieldTypeDescription
catalog requiredobject[]
manageServices requiredboolean
services requiredobject

SessionCreateBoardResourceInput

FieldTypeDescription
name requiredstring1 to 100 characters.
inboxIdstringMake a ticket board for this inbox (ibx_...). Pattern: ^ibx_.
statusesobject[]

SessionCreateBoardResourceResult

FieldTypeDescription
boardId requiredstringThe board (brd_...). Pattern: ^brd_.

SessionCreateBookResourceInput

FieldTypeDescription
name requiredstring
bookIdstring
membersstring[]

SessionCreateBookResourceResult

FieldTypeDescription
book requiredobject

SessionCreateFormResourceInput

FieldTypeDescription
name requiredstring1 to 100 characters on one line: what members see the form called (its public title is in its definition).
retentionDaysintegerHow long its responses are kept, in days from when each was received: 0 (the default) keeps them until someone deletes them; 30, 90 or 365 deletes older ones daily (design note 0019 section 11). Any other number is refused.

SessionCreateFormResourceResult

FieldTypeDescription
formId requiredstringThe form (frm_...). Pattern: ^frm_.

SessionCreateInboxResourceInput

FieldTypeDescription
addressesstring[]0 to 10 addresses; lowercased, duplicates dropped. Leave out (or empty) for an inbox without addresses, which then needs a name.
namestringThe inbox's display name (1 to 100 characters). Required without addresses; optional with them.

SessionCreateInboxResourceResult

FieldTypeDescription
inboxId requiredstringThe inbox (ibx_...). Pattern: ^ibx_.

SessionDeleteBoardResourceInput

FieldTypeDescription
confirm requiredstringThe board's name, typed.

SessionDeleteBoardResourceResult

FieldTypeDescription
boardId requiredstringThe board (brd_...). Pattern: ^brd_.
purgeAt requiredstringWhen its content is deleted for good (now, for a board with no items).

SessionDeleteBookResourceInput

FieldTypeDescription
confirm requiredstring

SessionDeleteBookResourceResult

FieldTypeDescription
bookId requiredstring
purgeAt requiredstring

SessionDeleteFormResourceInput

FieldTypeDescription
confirm requiredstringThe form's name, typed.

SessionDeleteFormResourceResult

FieldTypeDescription
formId requiredstringThe form (frm_...). Pattern: ^frm_.
purgeAt requiredstringWhen its content is deleted for good (now, for a board with no items).

SessionDeleteInboxResourceInput

FieldTypeDescription
confirm requiredstringThe inbox's name or one of its addresses, typed.

SessionDeleteInboxResourceResult

FieldTypeDescription
inboxId requiredstringThe inbox (ibx_...). Pattern: ^ibx_.
purgeAt requiredstringWhen its content is deleted for good (now, for an inbox with no mail).

SessionDeleteOrgResourceInput

FieldTypeDescription
confirm requiredstringThe organization's name, typed.

SessionDeleteOrgResourceResult

FieldTypeDescription
deleteAt requiredstring
orgId requiredstringThe 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.

FieldTypeDescription
mayRename requiredbooleanThey may rename it (org.settings.change).
name requiredstringIts display name; empty if it has none.
orgId requiredstringThe organization (org_...). Pattern: ^org_.
role requiredmember | developer | admin | owner
status requiredactive | pending_deletionpending_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 requiredstringAn IANA time zone, such as America/New_York or UTC. UTC when unset.
you requiredstringA member (mem_...). Pattern: ^mem_.
agentPermissionGrowthAgentPermissionGrowthSettingsOwners only, while organization permission growth is available.
billingobjectWho pays (owners).
deleteAtstringWhen a pending deletion starts.
deleteReasonnonpaymentSet 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.
deleteRequestedBystringWho asked for the deletion: a member (mem_...), or sys_billing for a nonpayment deletion. Pattern: ^(mem_|sys_).
iconstringOptional organization icon as a normalized PNG data URL.
ownersstring[]The owners (owners see them, to hand billing over).
probationobjectSending 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).
sharedSpamReportsSharedSpamReportsSettingsOwners only.

SharedSpamReportsSettings

Help improve spam filtering: owner consent to share Spam reports. Off by default.

FieldTypeDescription
available requiredbooleanWhether enabling shared reports is available. The app hides the setting while false.
enabled requiredbooleanWhether the organization allows new shared Spam reports.
withdrawalRequestedAtstringWhen 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.

FieldTypeDescription
baselineDays requiredinteger
complete requiredboolean
day requiredstring
observedAt requiredstring
reason requiredstringincomplete: 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 requiredboolean
spamSurge requiredboolean
unknownSurge requiredboolean
countsobject
refusedNormalstring
spamNormalstring
unknownNormalstring

ZeroAccessEncryption

FieldTypeDescription
activeEpoch requiredstringPattern: ^[0-9]+$.
agentCauses requiredintegerAgent 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 requiredintegerConnected 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 requiredstring | nullPlain status text naming a removed person, a disconnected agent, or both when encryption is pending. Mail keeps arriving during the update.
pendingRequests requiredobject[]People whose removal or suspension still needs an encryption update request to be processed.
progress requirednone | waiting_for_device | in_progress
requiredGeneration requiredstringPattern: ^[0-9]+$.
securedGeneration requiredstringPattern: ^[0-9]+$.
status requiredcomplete | pendingPending 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.

FieldTypeDescription
code requiredscheduled_messages
count requiredinteger
detail requiredstringFor example: 2 scheduled messages: send or cancel them first.