Schemas — K8 HQ Content API
Data schemas for K8 HQ Content API.
Version 1OpenAPI description (JSON)
Schemas
AIClassifyCondition
| Field | Type | Description |
includeAutomated required | boolean | |
kind required | "ai_classify" | |
labels required | string[] | |
match required | string[] | |
question required | string | |
AckSetting
A ticket board's automatic acknowledgement, in its help desk settings record (plaintext: the cell fills it in and sends it).
| Field | Type | Description |
body required | string | |
on required | boolean | |
subject required | string | |
version required | integer | The help desk settings record's version (0: never saved). |
automaticMail | boolean | |
boundAt | string | |
by | string | The member it sends for (mem_). |
canEdit | boolean | |
defaults | object | |
lastSent | object | |
maySend | boolean | |
newAccount | boolean | |
pausedWhy | string | owner_left or no_sending: it turned itself off because that member lost access or rules.sending. |
placeholders | string[] | |
refusedToday | integer | Not sent today because of a cap or the sending pipeline. |
replyRules | object[] | |
sentToday | integer | |
Assessment
| Field | Type | Description |
bytes required | integer | |
class required | string | self, independent or unverified: worked out from who contributed and who evaluated, never sent. |
createdAt required | string | |
evaluator required | Principal | The authenticated member and how they acted; for an external assessment, its submitter. |
id required | string | |
item required | string | |
kind required | string | What the evaluator submitted it as: self, reviewer or external. |
request required | string | |
revision required | integer | The request revision assessed. |
rubric required | RubricRef | |
state required | string | draft or submitted. |
updatedAt required | string | |
version required | integer | |
collaborators | string[] | |
content | AssessmentBody | Tokens only: the content, opened by K8 HQ's servers. |
corrects | string[] | |
draftKey | integer | A draft's: the number of its key its content is sealed to. |
epoch | integer | A submitted one's board epoch. |
key | DraftKey | People only, when a draft is made: its key, to seal its content to. |
object | string | Framed (meta, body): a draft's sealed to its own key (seal ID <item>|<request>|r<revision>|<assessment>|draft), a submitted one's to the board (<item>|<request>|r<revision>|<assessment>). |
origin | Principal | A correction's original evaluator: a correction is classed no more independent than the judgment it corrects. |
outcomes | object | Each criterion's discussion outcome ("" for the whole assessment): confirmed (an author agreed), disputed (an author's dispute is open), upheld (its evaluator kept the finding) or corrected (a correction changed it). Never changes a score. |
previous | string | |
relation | string | correction or reassessment. |
reported | Reported | What the client reported about the evaluator: never trusted, display only. |
submittedAt | string | |
supersededAt | string | |
supersededBy | string | |
unreadable | boolean | Tokens only: its seal didn't open. |
wdek | string | |
AssessmentBody
| Field | Type | Description |
criteria required | object | Every criterion of the rubric version, scored or unassessed (null). |
followUp | string | |
reason | string | A correction's or reassessment's explanation (required for one). |
summary | string | |
AssessmentNote
| Field | Type | Description |
assessment required | string | |
at required | string | |
by required | Principal | |
bytes required | integer | |
epoch required | integer | |
id required | string | |
item required | string | |
kind required | string | question, dispute, confirm, reply or resolve. |
object required | string | Framed (meta, body), seal ID <item>|<assessment>|<note>. |
wdek required | string | |
body | object | Tokens only: the note's text, opened by K8 HQ's servers. |
criterion | string | The criterion it is about; absent for the whole assessment. |
outcome | string | A resolution's: upheld (by the evaluator) or withdrawn (by the dispute's author). |
question | string | A structured question on the item (qst_) it links, as its author named it (not checked yet). |
replyTo | string | The question or dispute (adn_) a reply or resolution answers. |
resolvedBy | string | The note (adn_) or correction (asm_) that answered or resolved it. |
state | string | A question's or dispute's: open, answered or resolved. |
unreadable | boolean | Tokens only: its seal didn't open. |
AssessmentRequest
| Field | Type | Description |
assessed required | integer | The latest revision with a submitted assessment (0: none). |
attempt required | integer | |
contributors required | Contributor[] | |
id required | string | |
item required | string | |
kind required | string | The artifact kind: code, task-description or your own. |
requestedAt required | string | |
requestedBy required | Principal | |
reviewers required | string[] | |
revision required | integer | The subject revision assessments bind to. |
rubric required | RubricRef | |
state required | string | open or closed. |
subject required | Subject | |
submitted required | integer | Submitted assessments, every revision. |
version required | integer | The record's version: If-Match for changing it. |
closedAt | string | |
closedBy | Principal | |
revisedAt | string | |
revisedBy | Principal | |
AssessmentRequestRevision
| Field | Type | Description |
at required | string | |
attempt required | integer | |
by required | Principal | |
contributors required | Contributor[] | |
replacedAt required | string | |
replacedBy required | Principal | |
revision required | integer | |
subject required | Subject | |
AssessmentSummary
| Field | Type | Description |
awaiting required | integer | |
requests required | integer | |
submitted required | integer | |
description | integer | |
disputes | integer | Open disputes of submitted assessments' findings. |
Attachment
| Field | Type | Description |
contentType required | string | |
index required | integer | |
inline required | boolean | |
size required | integer | Bytes, decoded. |
contentId | string | For inline parts referenced from the HTML (cid:). |
filename | 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 immutable configuration version (acv_). |
connectionId | string | The personal app connection (cnx_); absent for an organization's service identity. |
credentialId | string | The app credential record ID (tok_), also carried as tokenId. Never a k8a1_/k8m1_ secret or hash. Absent before a credential exists. |
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. |
BillingBalance
| Field | Type | Description |
available required | string | purchased + bonus - pending: moves with every request. Pattern: ^-?\d+(\.\d+)?$. |
bonus required | string | Promotional and courtesy credit. Pattern: ^-?\d+(\.\d+)?$. |
currency required | "USD" | |
pending required | string | Usage not yet posted to the balance: charged usage under a cent or less than a day old, and usage counted but not yet sent to billing (it goes a cent's worth or six hours at a time), priced now. Pattern: ^-?\d+(\.\d+)?$. |
purchased required | string | US dollars, exact (never a float). Pattern: ^-?\d+(\.\d+)?$. |
BillingPayments
| Field | Type | Description |
payments required | object[] | |
BillingStanding
| Field | Type | Description |
comped required | boolean | K8 HQ gives this organization its credit: K8 HQ, not its owners, is told when it runs out, and adds more. |
sendingPausedForCredit required | boolean | Sending is paused for lack of credit right now: no credit balance exists, or available credit is at or below zero after pending usage and mail in flight, using the sending gate's check. Comped organizations follow the same credit rule. False while the credit gate is off. Every member gets this flag; it reveals no amount. |
step required | ok | out_of_credit | no_new_storage | held | readonly | The step enforced: ok; out_of_credit (day 0, from billing's confirmation: sending and K8 stop; mail still arrives); no_new_storage (day 7: mail apps can't add mail except drafts, new mail isn't indexed for search by meaning, no new domains or inboxes); held (day 30: new mail waits outside the inboxes, GET /held); readonly (day 60: nothing can be changed (writes get 402 read_only; reading and exports still work), new mail is turned away, and nothing more is charged). Back to ok when credit is back. |
deletionPending | boolean | K8 HQ has scheduled the organization's deletion because it has been out of credit for months (its last 7 days, read-only; owners can't cancel it). Only adding enough credit to bring the balance over zero stops it. Absent otherwise. |
holdUntil | string | While a card payment's dispute holds the timeline at out_of_credit (design note 0025): the date the hold ends unless the card company decides first (US Eastern). Sending and K8 are stopped; nothing else stops until then. |
nextAt | string | When nextStep takes effect (US Eastern): at the first daily check after the day before has ended. For deletion, early that day (06:00 UTC); once deletionPending, the date it's scheduled for. |
nextStep | no_new_storage | held | readonly | deletion | The next step, only once it's built and enabled, and never for a comped organization (it stays at out_of_credit). |
owed | string | While out of credit, and only for those who see the organization's billing: what it owes (credit under zero, less usage not yet posted), in US dollars and cents, rounded up. The next credit added pays it first. Pattern: ^\d+\.\d{2}$. |
stepSince | string | When the step enforced began (US Eastern), for steps after out_of_credit: absent when its start isn't recorded (a step set by hand) or the step is held back by the enabled maximum. |
zeroSince | string | When billing confirmed the credit ran out (day 0), while out of credit. |
BillingUsage
| Field | Type | Description |
amount required | string | US dollars, exact (never a float). Pattern: ^-?\d+(\.\d+)?$. |
currency required | "USD" | |
from required | string | |
granularity required | hour | day | |
rows required | object[] | |
to required | string | |
totals required | object | Per meter over the whole range. |
by | member | token | inbox | Present when asked for: rows are per member, token or inbox. |
per | object | With by: each member, token or inbox's charges over the range (US dollars, exact). |
Board
A task or ticket board (design note 0021). A ticket board is linked to one inbox: its members are the inbox's, and the inbox's mail opens and joins its tickets.
| Field | Type | Description |
config required | BoardConfig | |
createdAt required | string | |
epoch required | integer | |
epochPub required | string | The current epoch's public key (X25519): what the browser seals to. |
hideTokenLabels required | boolean | Hide only tokenLabel in board attribution from other ordinary members. Token IDs remain visible. The token's person and organization owners and admins retain full attribution. Does not redact the organization audit log. Member events, feed and webhooks are not yet projected. |
id required | string | |
items required | integer | Items, Trash included. |
kind required | task | ticket | |
modseq required | integer | |
name required | string | |
open required | integer | Items not in a done or closed status, Trash left out. |
orgId required | string | |
privacy required | readable | zero_access | |
syncGen required | integer | |
inbox | string | A ticket board's inbox (ibx_). |
labelMove | object | The board's labels are moving to organization tags (POST /boards/{board}/labels/move): each label's tag, and how many item writes the move has made. While it's moving, no label can be added. |
labelsMoved | boolean | The board's labels moved to organization tags: it has no labels, and items use tags. |
names | object | Tokens only: the config's status and label names, opened by K8 HQ's servers, and in an organization whose tags are readable the names of the tags the board uses, so a script can name a tag as it named a label (a board's labels become organization tags). In a zero-access organization tags is absent: name tags by ID (tag_…). |
readyDelegates | BoardReadyDelegates | |
subjectToken | boolean | A ticket board: replies carry the ticket's number in their subject ("[#142]"), and mail that lost its threading headers joins by it, from the requester or a verified participant only. |
suite | HPKESuite | |
summary | BoardSummary | |
targets | BoardTargets | |
BoardAnswer
An answer, bound to one revision of its question.
| Field | Type | Description |
at required | string | |
by required | string | A member (mem_…). |
bytes required | integer | |
epoch required | integer | |
id required | string | The answer (ans_…), minted by the browser. |
object required | string | Framed (meta, body), seal ID <item>|<question>|r<revision>|<answer>; the meta names the item, question, revision, answer and outcome. |
outcome required | answered | skip | unknown | |
question required | string | |
revision required | integer | The revision of the question it answers. |
state required | current | superseded | stale | current: the answer to the current revision; superseded: its answerer answered again; stale: the question changed after it. |
wdek required | string | |
content | BoardAnswerContent | Tokens only (history): the answer opened by K8 HQ's servers. |
endedAt | string | |
supersededBy | string | |
unreadable | boolean | Tokens only: the seal didn't open. |
BoardAnswerContent
What an answer says (its sealed body part, JSON): its value (absent for skip and unknown) and an optional note.
| Field | Type | Description |
note | string | |
value | any | true or false (false is an answer), a choice ID, choice IDs, or text. |
BoardBlocker
A task blocking another that isn't done.
| Field | Type | Description |
item required | string | |
number required | integer | |
status required | string | Its status (an ID), not in a done or closed category. |
trashed | boolean | It's in Trash: it still blocks while its status is open (delete it forever, finish it, or remove the dependency). |
BoardClaim
| Field | Type | Description |
attention required | boolean | Potentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own. |
item required | string | |
state required | none | active | waiting | released | none: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held. |
version required | integer | |
checkpoint | string | |
claim | string | The claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost. |
claimedAt | string | |
holder | BoardClaimHolder | |
previous | BoardClaimEnd | |
request | BoardTakeoverRequest | |
seenAt | string | The holder's last check-in. |
waitingSince | string | |
waitingUntil | string | When a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention. |
BoardClaimEnd
| Field | Type | Description |
by required | string | The member who ended it. |
claim required | string | |
endedAt required | string | |
holder required | BoardClaimHolder | |
how required | released | taken_over | handed_off | |
checkpoint | string | |
comment | string | The comment (cmt_) giving the reason, if one was given. |
forced | boolean | A person released another session's claim. |
status | string | The status ID that ended the claim: a done-category status or a status marked endsClaims on a task board. Names are sealed. The release reason is item moved to <status ID>. Pattern: ^st_. |
work | string | A claim made by pickup, released while its task stayed In progress because it had recorded a checkpoint: the last checkpoint, the work to resume (the next pickup starts there). Checkpoints are what agents report; K8 HQ doesn't verify them. |
BoardClaimHolder
| Field | Type | Description |
member required | string | |
via required | token | session | |
token | string | The access token (tok_), when the session is a token's. A web session isn't named. |
BoardConfig
| Field | Type | Description |
labels required | BoardLabel[] | |
statuses required | BoardStatus[] | |
version required | integer | 0 until the browser seals names. |
completionStatuses | string[] | Stable IDs of completion columns. Omitted uses done/closed categories on existing boards; an explicit empty array means no completion columns. An omitted update preserves an existing selection. |
epoch | integer | |
object | string | The sealed names: a framed object (meta, names), seal ID <board>|cfg|v<version>. |
wdek | string | Its key, wrapped to the board's epoch key. |
BoardConnectionBlock
A provider connection a task needs that isn't available now, and how it comes back. Its name, owner and resources stay with the connection.
| Field | Type | Description |
connection required | string | The connection (pcn_). |
recovery required | automatic | manager | automatic: a temporary failure that clears on its own; manager: one of its managers has to act (turn it on, set a credential), and nothing else is used meanwhile. |
state required | not_connected | disabled | revoked | expired | deleted | unknown | outage | renewal_failed | Why it isn't available: not_connected (no credential yet), disabled (turned off), revoked (its credential was revoked), expired (its credential expired), deleted (no such connection any more: change the task to name another), outage (the provider is down) or renewal_failed (renewing its credential failed): temporary, recovery automatic; unknown (it can't be checked here). |
BoardDependency
A dependency: blocker blocks blocked (both tasks on one board).
| Field | Type | Description |
blocked required | string | |
blocker required | string | |
BoardEscalationTarget
Who an agent's question about a task goes to: its owner while they're on the board (via owner), else the board's escalation contact while they're on it (via contact), else nobody (target missing, with reason): the work waits for a person. Nothing is reassigned.
| Field | Type | Description |
contact required | BoardEscalationContact | |
item required | string | The task (itm_). |
ownerState required | member | unset | departed | member: on the board; unset: no owner; departed: no longer on the board. |
schemaVersion required | integer | 1. |
owner | string | The task's owner (mem_). Missing: none. |
reason | no_contact | contact_departed | When there's nobody: the owner can't be asked (none, or they left the board) and the board has no contact (no_contact) or its contact left the board (contact_departed). |
target | string | Who to ask (mem_). Missing: nobody. |
via | owner | contact | Why them: the task's owner, or the board's escalation contact. |
BoardHelpdesk
| Field | Type | Description |
recipes required | BoardRecipe[] | |
schemaVersion required | integer | |
version required | integer | |
canEdit | boolean | Returned on GET. True when you have full board access and can change these settings. |
BoardHistoryRow
A history row: plaintext values for a field change; no text for edits and comments.
| Field | Type | Description |
at required | string | |
by required | string | |
seq required | string | |
what required | created | changed | saved | commented | trashed | restored | linked | unlinked | asked | revised | withdrawn | answered | requested | attested | assessed | discussed | issue_linked | issue_unlinked | email | unverified | verified | known | follow_up | bounced | auto_closed | merged | unmerged | target_missed | assigned_new | notified_done | |
attribution | Attribution | What authorized this change. Absent on rows from before it was kept. |
field | string | |
new | string | |
old | string | |
recipe | string | The recipe ID. assigned_new means Assign new tickets; notified_done means Notify on Done. Show these as Board automation in history. |
source | string | recipe for Board automation history. |
BoardItem
An item's record: plaintext fields, the head version's key and sealed title; a ticket's addresses and messages too.
| Field | Type | Description |
assignees required | string[] | |
bytes required | integer | |
comments required | integer | |
createdAt required | string | |
createdBy required | string | |
head required | integer | Its current version's number. |
headEpoch required | integer | |
headWdek required | string | |
id required | string | |
kind required | task | ticket | |
labels required | string[] | |
links required | integer | |
number required | integer | |
order required | string | Its fractional index in its column. |
priority required | low | normal | high | urgent | |
status required | string | |
titleCt required | string | The head version's sealed title part (seal ID <item>|v<head>). |
updatedAt required | string | |
updatedBy required | string | |
version required | integer | The record's version: If-Match for its fields. |
assessments | AssessmentSummary | Its assessment requests and submitted assessments, for its card: open requests, submitted assessments, open requests whose current revision has none, and the latest description version assessed. Drafts never count. Absent until one is requested. |
children | integer | All direct child identities, including Trash. |
connections | string[] | The provider connections (pcn_) the task's work needs, set explicitly (Set the connections a task needs). While one isn't available it can't be picked up, and the ready list shows the blocker. Naming one authorizes nobody to use it. Missing: none. |
createdAttribution | Attribution | What authorized its creation. Absent on items created before it was kept. |
doneAt | string | When it last moved into a done status; kept when it moves on to a closed status, absent once it's open again, and for items done before it was kept. A ticket Solved 7 days moves to Closed in the board's daily sweep. |
due | string | |
firstReplyAt | string | When the ticket's first reply went out. |
firstReplyBy | string | The member (mem_) whose reply from the board was the ticket's first; absent for a reply from a mail app. |
formRef | object | On an item a form's response made: the form (frm_), the response (msg_) in it and its number. Form members can open the response; others can't. |
inputNeeded | object | "Needs your input": per member (mem_…), its open blocking questions waiting for them. Apart from dependencies, scheduled holds and work claims; it clears when that member's blocking questions are answered, and an answer never changes the item's status. |
lastInboundAt | string | A ticket: when the requester or a verified participant last wrote. |
lastMessage | string | A ticket: its newest message (msg_) in the linked inbox. |
lastOutboundAt | string | A ticket: when a reply last went out. |
lastOutboundBy | string | A ticket: the member whose reply from the board went out last (none for a reply from a mail app). |
merged | string[] | Tickets merged into this one (itm_): its timeline shows their messages and notes. |
mergedInto | string | A ticket merged into another (itm_): its new mail lands there. |
messages | integer | A ticket: how many messages it has. |
missed | object | When each kind of response target was last missed (the time it was due), kept after the target is met or ends: keys first, next and resolution. |
openQuestions | integer | Its questions still waiting for an answer. |
owner | string | A task's owner (mem_): the member accountable for it, set explicitly (never its creator or assignees by default). Missing: none. |
parent | string | Same-board parent ID; absent is top level. Tasks only; at most 3 levels: item, subitem, sub-subitem. |
participants | string[] | A ticket: other addresses on it. An address also listed in unverified is still unverified, including after a merge. |
purging | string | Permanent deletion is in progress; hierarchy actions are unavailable. |
questions | integer | Questions asked on it, withdrawn ones included. |
rating | object | Tickets: the customer's latest satisfaction answer (the latest solve rated). Its comment stays sealed. |
ready | BoardReadiness | |
replying | object | A ticket: who has the reply box open (member to since); entries older than 10 minutes don't count. |
requester | string | A ticket: the address that opened it (lower case). |
resolve | BoardTarget | |
respond | BoardTarget | |
sending | object | A ticket: a reply from the board is going out (its claim, until it's in or 2 minutes pass). |
solves | integer | How many times the ticket moved into a done status (Solved). |
source | person | import | token | email | form | How the item came: typed in the app, imported, written through a token, a ticket opened from email (its title is the email's subject), a ticket opened from a form response's inbox copy (its title is that copy's subject; its requester was typed on the form and isn't verified), or a task a form's response added (formRef names the response). Missing on items from before it was kept (typed in the app). Board text is data: a script reading it never follows it as instructions. |
tags | string[] | The organization tags on it (tag_ IDs, sorted); absent when it has none. |
title | string | Tokens only: the head version's title, opened by K8 HQ's servers (metered boards.decrypted). |
trashGroup | string | The family Trash operation this item belongs to, if any. |
trashedAt | string | |
unreadable | boolean | Tokens only: the title's seal didn't open (damaged, or bound to another item). |
unverified | string[] | A ticket: addresses without proof yet, including typed form addresses and unknown senders matched by headers. Sending a reply can verify an unknown sender, but cannot verify a typed form address. Merging keeps these flags unless the kept ticket already has proof for that address. |
unverifiedReasons | object | A ticket: why each address in unverified lacks proof. Typed means an address entered into a form; spoofed means failed sender checks; stranger means an unknown address matched by headers alone. |
updatedAttribution | Attribution | What authorized its latest change. Absent on items last changed before it was kept. |
BoardItemVersion
| Field | Type | Description |
id required | string | |
version required | integer | |
number | integer | |
trashGroup | string | The family trash group, used to preview precisely which children restore together. |
trashedAt | string | |
BoardLabel
A label's ID (its name and colour are sealed in the config).
| Field | Type | Description |
id required | string | Pattern: ^lb_. |
BoardLink
A link between two items, kept on both sides: relates (any two items) or task-for (a task made for a ticket, "Create a task": one side a ticket, the other a task).
| Field | Type | Description |
board required | string | |
item required | string | |
kind required | relates | blocks | blocked_by | task-for | How this item's side sees the link: relates; blocks (this task blocks the other, which can't be picked up until this one is done); blocked_by (this task is blocked by the other). A dependency is one link with a side on each task. |
category | todo | active | waiting | done | closed | The other item's status category (with number). |
hidden | boolean | The person can't open the other item's board ("a linked item you can't open"), or it's gone. |
itemKind | task | ticket | The other item's kind (with number). |
number | integer | People only, on an item's read: the other item's number, if they can open its board. |
status | string | The other item's status ID (with number); its name is in that board's sealed config. |
trashed | boolean | The other item is in Trash. |
BoardQuestion
A question on an item for one member to answer, with its current answer. Plaintext: who, when, the blocking flag, allowed outcomes and states; what is asked and answered is sealed.
| Field | Type | Description |
allow required | skip | unknown[] | Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No. |
answerer required | string | The member the question is for: only they can answer it. |
answers required | integer | Answers ever given, superseded and stale ones included. |
askedAt required | string | |
askedBy required | string | A member (mem_…). |
blocking required | boolean | An open blocking question holds up work: its item shows "Needs your input" for the answerer (inputNeeded). |
bytes required | integer | |
epoch required | integer | |
id required | string | The question (qst_…), minted by the browser (or by K8 HQ for a token). |
item required | string | |
object required | string | Framed (meta, body), seal ID <item>|<question>|r<revision>; the meta names the item, question and revision. |
revision required | integer | What is asked: a new text, answerer or allowed outcomes is a new revision, and answers are bound to one. |
state required | open | answered | withdrawn | |
version required | integer | The record's version: If-Match for changing or withdrawing it. |
wdek required | string | |
answer | BoardAnswer | |
answerContent | BoardAnswerContent | Tokens only: its current answer, opened by K8 HQ's servers. |
answererDeparted | boolean | Its answerer is no longer on the board (worked out when read). It waits for no one who can see it: its asker can give it to someone else, or a member holding containers.delete (owners and admins by default) can withdraw it. Their inputNeeded count on the item stays until then. |
content | BoardQuestionContent | Tokens only: what it asks, opened by K8 HQ's servers. |
revisedAt | string | |
revisedBy | string | A member (mem_…). |
unreadable | boolean | Tokens only: a seal didn't open (damaged, or bound to another question or revision). |
withdrawnAt | string | |
withdrawnBy | string | A member (mem_…). |
withdrawnByAdmin | boolean | Withdrawn by a member holding containers.delete (owners and admins by default), not its asker (withdrawnBy names who). |
BoardQuestionContent
What a question asks (its sealed body part, JSON). Tokens get and send it in plaintext.
| Field | Type | Description |
kind required | boolean | single | multiple | text | The answer wanted: yes or no, one choice, one or more choices, or text. |
text required | string | The question, up to 2,000 characters. |
choices | object[] | Single and multiple choice questions: 2 to 20, each a stable ID (a-z, 0-9, _ and -) and a label. |
context | string | What the answerer needs to know to choose, up to 8,000 characters. |
long | boolean | A text question wanting a long answer. |
recommendation | string | The asker's recommendation and why, up to 2,000 characters. |
recommended | any | The answer recommended, as an answer's value would be. |
BoardQuestionRevision
An earlier revision of a question, as it was asked.
| Field | Type | Description |
allow required | skip | unknown[] | Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No. |
answerer required | string | A member (mem_…). |
at required | string | |
by required | string | A member (mem_…). |
bytes required | integer | |
epoch required | integer | |
object required | string | |
replacedAt required | string | |
replacedBy required | string | A member (mem_…). |
revision required | integer | |
wdek required | string | |
content | BoardQuestionContent | Tokens only: opened by K8 HQ's servers. |
unreadable | boolean | |
BoardReadiness
A task's Ready for agent authorization: who authorized it, on what basis, its scope, and the task as authorized (content revision, parent and owner). current is false once any of those changed (changed says which): it then authorizes nothing until someone authorizes it again. Moving it into a done or closed status does too, and reopening it doesn't restore it; so does moving it into a delivered status (an active status after the board's first, such as Waiting for review or Ready to deploy: a board with one active status has none), and moving it back doesn't restore it. Other status moves, labels, priority, due date, assignees, order, comments and links don't affect it.
| Field | Type | Description |
at required | string | |
basis required | owner | permission | delegate | The task's owner, a holder of boards.ready, or one of the board's readiness delegates. |
by required | string | The authorizing member (mem_). |
current required | boolean | Nothing material changed since: it authorizes pickup (whose authorizer is checked again then). |
head required | integer | The content revision (title and description, with its acceptance) authorized. |
id required | string | The authorization (rdy_), new on every authorization. |
scope required | implement | What it authorizes: implementing the task. Never publishing, merging or deploying, and never taking over another session's claim. |
via required | session | token | How they signed in: a person in the web app, or an agent's token named as a delegate. |
changed | content | parent | owner | done | delivered | unreadable[] | What changed since it was authorized: content, parent or owner, or done (it was moved into a done or closed status: reopening it needs a fresh authorization), or delivered (it was moved into an active status after the board's first, such as Waiting for review or Ready to deploy: moving it back needs a fresh authorization). |
owner | string | The owner as authorized (missing: none). |
parent | string | The parent as authorized (missing: none). |
token | string | With via token: the token (tok_). |
BoardReadyDelegates
Who besides a task's owner and holders of boards.ready may mark the board's tasks Ready for agent: members (signed in; their tokens aren't included) and agents' tokens.
| Field | Type | Description |
members required | string[] | |
tokens required | string[] | |
version required | integer | Counts changes: send it back to change them. |
BoardReadyEntry
A task marked Ready for agent, with its claim and what stops it being picked up now.
| Field | Type | Description |
claim required | BoardClaim | |
item required | BoardItem | |
blocked | claimed | changed | on_hold | parent_on_hold | done | delivered | trash | blocked | no_owner | owner_left | connection | Missing: it can be picked up (its authorizer is checked again then). claimed: a session holds it; changed: its content, parent or owner changed since it was authorized; on_hold or parent_on_hold: it, or its parent, is in a waiting status; done: done or closed; delivered: in an active status after the board's first (such as Waiting for review or Ready to deploy), so its work was handed on; no_owner or owner_left: it has no owner, or its owner isn't on the board any more (set one before it can be picked up). blocked: a task blocking it isn't done (blockedBy lists them). connection: a provider connection it needs isn't available (connections lists which). |
blockedBy | BoardBlocker[] | When blocked is blocked: the tasks blocking it that aren't done, by number. |
connections | BoardConnectionBlock[] | The provider connections it needs that aren't available now, claimed or not: a claimed task keeps its claim, owner and checkpoints, and its session pauses work that needs them until they're back. Missing: none. |
resume | string | Unclaimed and free to pick up, with work at this checkpoint left by a released pickup (agent-reported, unverified): picking it up resumes there when it's a plain <branch>@<commit>. |
BoardRecipe
| Field | Type | Description |
id required | string | Pattern: ^rcp_[0-9A-Za-z]{10}$. |
kind required | assign-new | notify-done | assign-by-tag | |
on required | boolean | |
boundAt | string | When that member turned the recipe on. |
by | string | The member who turned the recipe on. Saving settings keeps that member while it stays on. Set by the server. |
lastRan | object | The last completed run. Assignment includes the member assigned. |
members | string[] | Chosen full members, in assignment order. People who leave, are suspended or lose full access are skipped. |
mode | turn | same | For assignment: take turns in members order or always use the first eligible member. |
notify | assignees | creator | owner | members[] | For notify-done. Creator applies to tasks only. Members uses the chosen members list. A ticket requester is never told. |
pausedWhy | string | owner_left means the member left or lost full board access. |
replace | boolean | Assign even if someone is already assigned (assign-by-tag only). |
status | string | For notify-done: a status in the done category. Omit to use the first done status. |
tag | string | The organization tag for an assign-by-tag line. Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
warning | string | no_members means nobody chosen still has full board access. Returned when settings are read. |
BoardStatus
A status: its ID and category (its name is sealed in the config).
| Field | Type | Description |
category required | todo | active | waiting | done | closed | |
id required | string | Pattern: ^st_. |
endsClaims | boolean | End work claims when a task moves here. Only for non-done statuses on task boards; done statuses always end claims. Omitted means false. |
BoardSummary
Unique live identities, excluding Trash. Completion uses configured completion statuses; items/open remain the existing safety counters.
| Field | Type | Description |
incompleteSubitems | integer | |
incompleteTopLevel | integer | |
subitems | integer | |
topLevel | integer | |
BoardTakeoverRequest
| Field | Type | Description |
at required | string | |
by required | BoardClaimHolder | |
comment required | string | |
BoardTarget
A running response target (ticket boards with targets set): the reply a ticket waits for, or its resolution.
| Field | Type | Description |
kind required | first | next | resolution | |
by | string | When it is due; absent while the ticket waits on the customer (paused). |
left | integer | While paused: the business minutes that were left. |
missed | boolean | It passed without an answer (the people on it were told once). |
BoardTargets
A ticket board's response targets, in business minutes (0 or absent: none), and its business hours (absent: around the clock). Plaintext settings. The clock starts when a ticket opens (first response, resolution) and when the customer writes again (the next response), pauses while the ticket waits on the customer, and stops when a reply goes out (internal notes don't count) or, for the resolution, when it's done or closed. Changing them applies to clocks started afterwards.
| Field | Type | Description |
first | integer | First response, business minutes. |
hours | object | |
next | integer | Each later response (after the customer writes again), business minutes. |
resolution | integer | Resolution (done or closed), business minutes. |
BoardUsage
| Field | Type | Description |
approximate required | true | Counts can be cleared by a server restart and cover only the server answering this request. |
buckets required | object[] | |
day required | string | |
orgId required | string | |
resetAt required | string | |
BoardUsageKind
| Field | Type | Description |
limit required | integer | |
limited required | boolean | |
used required | integer | |
BoardVersion
| Field | Type | Description |
bytes required | integer | |
n required | integer | |
savedAt required | string | |
savedBy required | string | |
description | string | Tokens only: the version's description (Markdown). |
epoch | integer | |
object | string | Framed (meta, title, body), seal ID <item>|v<n>. |
title | string | Tokens only: the version's title. |
unreadable | boolean | Tokens only: the version's seal didn't open. |
wdek | string | |
Calendar
| Field | Type | Description |
id required | string | |
name required | string | |
orgId required | string | |
privacy required | "readable" | |
tzdataVersion required | string | Version of the time zone data the server uses. |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
CalendarEntry
| Field | Type | Description |
end required | string | After the start and within 31 days of it. |
etag required | string | |
id required | string | |
start required | string | |
title required | string | |
version required | integer | |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
description | string | Plain text, up to 32 KB. |
location | string | |
CalendarEntryInput
| Field | Type | Description |
end required | string | After the start and within 31 days of it. |
start required | string | |
title required | string | |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
description | string | Plain text, up to 32 KB. |
location | string | |
CalendarEntryResult
| Field | Type | Description |
end required | string | After the start and within 31 days of it. |
etag required | string | |
id required | string | |
start required | string | |
title required | string | |
tzdataVersion required | string | Version of the time zone data the server uses. |
version required | integer | |
zone required | string | IANA time zone name such as America/New_York, or UTC. |
description | string | Plain text, up to 32 KB. |
location | string | |
Connection
| Field | Type | Description |
access required | ConnectionAccess | |
capabilities required | string[] | The provider operations it may perform (provider-defined names). |
createdAt required | string | |
createdBy required | string | Who added it (mem_). |
credentials required | boolean | Whether this server keeps credentials for connections (PUT /connections/{connection}/credential and, where documented, rotating and revoking them). The explicit signal to offer credential management, rather than probing a route. Credentials are write-only: no response carries a secret. |
id required | string | The connection (pcn_). |
name required | string | Its display name. |
orgId required | string | |
ownership required | organization | personal | |
provider required | string | The provider's kind, e.g. github. |
resources required | ConnectionResource[] | |
status required | pending | active | expiring | expired | revoked | disabled | |
updatedAt required | string | |
version required | integer | Send it back to change it. |
createdAttribution | Attribution | What authorized its creation. Inferred from createdBy on legacy records when possible. |
credential | ConnectionCredential | |
fault | ConnectionFault | |
owner | string | A personal connection's member (mem_). |
previous | ConnectionCredential | The version a rotation replaced, while it's still usable by reference (until retiresAt). |
revoked | ConnectionRevocation | |
updatedAttribution | Attribution | What authorized its latest change. Inferred from updatedBy on legacy records when possible; absent if unrecorded. |
updatedBy | string | Who last changed it. Absent on connections last changed before it was kept. |
ConnectionAccess
What the caller may do with the connection.
| Field | Type | Description |
manage required | boolean | Change its details, resources and capabilities, turn it off or on, and authorize its use. |
remove required | boolean | Delete it, and take authorizations to use it away. |
use required | boolean | Act through it (never see its credential). |
ConnectionCredential
Refers to a connection's credential: never the secret, which no API returns.
| Field | Type | Description |
id required | string | This stored version (pcr_). |
setAt required | string | |
setBy required | string | Who set it (mem_). |
version required | integer | Its number: 1 for the connection's first. |
expiresAt | string | When the provider stops accepting it; absent if it doesn't expire. |
renewal | boolean | For previous: kept for a provider renewal's short grace (5 minutes), not a manager's rotation. |
retiresAt | string | For a version a rotation replaced (previous): when its grace period ends. |
setAttribution | Attribution | What authorized setting this credential version, including provider renewals. Inferred from setBy on legacy records when possible. |
ConnectionFault
A temporary failure K8 HQ's provider adapter met using the connection, for someone allowed to use it: work that needs the connection pauses until it clears (the next operation through its current credential that goes through; a credential stored also clears a failed renewal). The connection stays on and its credential usable; nothing else is used instead.
| Field | Type | Description |
kind required | outage | renewal_failed | outage: the provider is down; renewal_failed: renewing its short-lived credential failed, so it will expire. |
since required | string | |
by | string | Whose use met it: the member (mem_) or their token (tok_). Shown to the connection's managers only. |
credential | string | The credential version in use then (pcr_). |
ConnectionList
| Field | Type | Description |
connections required | Connection[] | |
ConnectionPending
A pending choice (board item #251): what a new connection's manager may pick, as the provider confirmed it. It names resources only, never a credential.
| Field | Type | Description |
expiresAt required | string | When it lapses (15 minutes): connect again after. |
pending required | string | Its ID (pcp_), for connect/bind. |
repositories required | object[] | |
ConnectionProvider
A provider a connection can be added for.
| Field | Type | Description |
kind required | integrated | token | integrated: K8 HQ connects it through the provider's own pages. token: any other service; a manager pastes its token or key. |
name required | string | The provider's name to show. |
help | string | A line on what adding one does. |
id | string | The connection's provider for an integrated provider (e.g. github). Absent for token: the person names the service. |
ConnectionProviderList
| Field | Type | Description |
providers required | ConnectionProvider[] | |
ConnectionResource
One of the provider's resources a connection was given (a repository, an account): provider-defined.
| Field | Type | Description |
id required | string | The provider's identifier for it. |
type required | string | Its kind, e.g. repository. Pattern: ^[a-z][a-z0-9_.-]{0,31}$. |
name | string | A name to show. |
ConnectionRevocation
Its credential was revoked: nothing uses the connection until a manager sets one again.
| Field | Type | Description |
at required | string | |
by required | string | Who revoked it (mem_). |
credential required | string | The version that was current (pcr_), now deleted. |
attribution | Attribution | What authorized revoking the credential. Inferred from by on legacy records when possible. |
ConnectionUse
An authorization to use a connection: for one member (their sessions, signed in) or one token (that token only).
| Field | Type | Description |
connection required | string | The connection (pcn_). |
createdAt required | string | |
grantedBy required | string | Who authorized it (mem_). |
id required | string | The authorization (pcu_). |
grantedAttribution | Attribution | What authorized granting this use. Inferred from grantedBy on legacy records when possible. |
member | string | The member (mem_) it authorizes, signed in. |
token | string | The token (tok_) it authorizes. |
ConnectionUseList
| Field | Type | Description |
uses required | ConnectionUse[] | |
Container
| Field | Type | Description |
id required | string | ibx_… or book_… (later cal_…). |
kind required | inbox | book | board | form | board: a task or ticket board, listed for people only (no {inbox} route serves one). form: a form, listed for people only (never for a token). More kinds come later (calendar); ignore ones you don't know. |
orgId required | string | The organization (org_) the container belongs to. |
privacy required | Privacy | |
role required | string | |
label | string | Display name, e.g. the main address. |
personal | boolean | The caller's own personal notice inbox: notices from K8 HQ; no address; can't be shared, forwarded or watched by rules. |
Content
| Field | Type | Description |
attachments required | Attachment[] | |
channel required | email | |
flags required | Flag[] | |
html required | string | The HTML body (empty if none). Untrusted: sanitize before display. |
id required | string | |
participants required | Participant[] | |
receivedAt required | string | |
text required | string | The plain-text body (empty if none). |
email | object | Email only. |
keywords | string[] | |
spam | Spam | |
subject | string | |
Contributor
| Field | Type | Description |
source required | string | recorded (K8 HQ recorded it: a description version's author), declared (by the request's author) or attested (by the contributor, signed in). |
claim | string | |
declaredBy | Principal | |
harness | string | |
kind | string | Reported: person, agent or team. |
label | string | |
member | string | Absent for an outside author K8 HQ can't identify (see label). |
model | string | |
version | string | |
via | string | |
CriterionFeedback
| Field | Type | Description |
score required | integer | null | On the criterion's scale; null is unassessed, never zero. |
evidence | string | |
example | string | |
explanation | string | Why it matters. |
improvement | string | A concrete next step. |
DmarcOverview
| Field | Type | Description |
aiSummaries required | boolean | Whether DMARC alerts include K8's one-line summary. |
domains required | string[] | The organization's verified domains. |
k8 required | boolean | Whether the caller may ask K8 to summarize reports. |
mayChange required | boolean | Whether the caller may change aiSummaries (org.settings.change). |
receiving required | boolean | Whether the organization has its DMARC reports inbox (set up with the domain). |
DmarcPeriodSummary
| Field | Type | Description |
reports required | integer | Reports it covers. |
summary required | string | K8's summary (Markdown: paragraphs and lists; no links); empty when there were no reports. |
DmarcReport
| Field | Type | Description |
begin required | string | Start of the period covered. |
domain required | string | The domain it's about. |
end required | string | End of the period covered. |
failed required | integer | How many failed DMARC. |
failingSources required | integer | Distinct sending addresses among the failures. |
id required | string | The report's message (msg_) in the organization's reports inbox. |
messages required | integer | Messages the reporter saw claiming the domain. |
passed required | integer | Of those, how many passed DMARC (aligned SPF or DKIM). |
policy required | string | The published policy then: none, quarantine or reject. |
reportId required | string | The reporter's ID for it. |
reporter required | string | Who sent it: the report message's From domain (e.g. google.com), or "unknown". |
sender required | pass | fail | unknown | Whether the report's own message authenticated when it arrived (DMARC, or DKIM or SPF aligned with its From domain). |
DmarcReportDetail
| Field | Type | Description |
omitted required | integer | Sources left out (past 200); the full XML has them. |
parsedAt required | string | When K8 HQ read the report. |
report required | DmarcReport | |
sources required | DmarcSource[] | |
summary | string | K8's summary, when one was made (Markdown: paragraphs and lists). |
DmarcReports
| Field | Type | Description |
reports required | DmarcReport[] | |
nextCursor | string | Present while there are more. |
DmarcSettings
| Field | Type | Description |
aiSummaries required | boolean | Whether DMARC alerts include K8's one-line summary. |
DmarcSource
| Field | Type | Description |
cause required | ok | forwarded | service | unaligned_dkim | unaligned_spf | spoofing | unknown | The likely cause, worked out without AI. |
count required | integer | Messages from it with these results. |
disposition required | string | What the receiver did: none, quarantine or reject. |
dkim required | string | Aligned DKIM result: pass or fail. |
ip required | string | The sending address. |
likely required | string | The cause in plain words. |
pass required | boolean | Whether it passed DMARC. |
spf required | string | Aligned SPF result: pass or fail. |
dkimResults | object[] | Each DKIM signature's check. |
envelopeFrom | string | The envelope sender's domain. |
headerFrom | string | The From header's domain. |
ptr | string | Its reverse DNS when the report arrived (a label, not proof). |
reasons | string[] | Why the receiver overrode the policy (forwarded, mailing_list, local_policy...). |
service | string | The known sending service it looks like, if any. |
spfDomain | string | The domain SPF was checked for. |
spfResult | string | The SPF check: none, neutral, pass, fail, softfail, temperror or permerror. |
DmarcSummary
| Field | Type | Description |
cached required | boolean | Made earlier and kept (not billed again). |
summary required | string | K8's summary (Markdown: paragraphs and lists; no links). |
DraftKey
| Field | Type | Description |
number required | integer | |
public required | string | |
wrapped required | string | The draft key's private key sealed to your user key, bound to the assessment and the key's number (as a board's epoch keys are). |
suite | HPKESuite | |
wrapSuite | any | The recipient user key's suite, used to open wrapped. The suite field describes the key inside that wrap. |
EmptyFolderJob
| Field | Type | Description |
createdAt required | string | |
id required | string | The job (job_). |
kept required | integer | Also in another folder: they only left this one. |
purged required | integer | Deleted for good so far. |
skipped required | integer | Not in the folder any more when their turn came (moved, restored or deleted meanwhile). |
status required | queued | running | waiting | succeeded | failed | cancelled | waiting: a step failed and is retried shortly; failed: stopped for good (for example, the person lost access to the inbox). |
total required | integer | How many messages the folder held when asked (for a progress bar). |
finishedAt | string | |
Endpoint
| Field | Type | Description |
address required | string | As written (case kept). |
blocked required | integer | Mail refused while it was disabled (counted in bulk, a few minutes behind). |
channel required | email | |
id required | string | ept_… |
kind required | address | catch_all | catch_all (*@domain) receives mail for every other address at the domain: receive only, to Spam by default, rate-limited. |
maySend required | boolean | Whether the inbox may send as it (never a catch-all or a disabled address). |
status required | active | disabled | A disabled address refuses mail exactly like one that doesn't exist, and never reaches a catch-all. |
memberSignatures | boolean | Whether members may use their own signature for this address. Off keeps saved signatures but leaves mySignature out of the endpoints list. |
mySignature | Signature | The signed-in person's own signature, only while they may send from this active address and memberSignatures is on. Tokens and delegated sessions never receive it. |
name | string | The sender name, if set: the name in the From header of mail K8 HQ sends as this address for the inbox (automatic replies), and what the web app suggests when writing from it. Mail apps send their own. Absent when not set; catch-alls never have one. |
signature | Signature | |
ErasureFound
| Field | Type | Description |
copies required | object[] | |
detach required | object[] | Tickets a copy joined but didn't open: erasing the copy takes it off the ticket, and the ticket stays. |
items required | object[] | |
responses required | object[] | |
searched required | ErasureSearched | |
unchecked required | object[] | Tasks a form made on zero-access boards, which K8 HQ can't read: the person's browser opens each one's first version and matches the address there, then names the matches in items. |
nextCursor | string | More unchecked responses or inboxes remain. Pass this cursor with the same address to find the next page. Later pages return only unchecked lists and leave inbox searches to the browser; they do not repeat the server search or its audit event. |
uncheckedInboxes | string[] | Inbox IDs for the browser to search. On the first page these are zero-access inboxes and inboxes whose server body search is unavailable or incomplete. Later pages leave all remaining inboxes to the browser. Name confirmed form copies in copies when erasing. The server checks current form-copy provenance and page eligibility. |
uncheckedResponses | object[] | Responses on forms with no reply-to field, and on zero-access forms. Open each response in the browser using its form and response IDs, match the address locally, and name confirmed matches in responses when erasing. Each page holds at most 100 unchecked responses and inboxes together. |
ErasureReceipt
| Field | Type | Description |
browserMatched required | integer | Items deleted that the browser matched (tasks on zero-access boards). |
copies required | integer | |
detached required | integer | |
foundSince required | integer | Entries found now that weren't chosen: find again. |
items required | integer | |
kept required | object[] | Chosen items left because they have subitems. |
otherMessages required | object[] | Other messages on erased tickets that stay in each inbox; people can delete them there. |
responses required | integer | |
searched required | ErasureSearched | |
skipped required | integer | Chosen entries no longer found, or changed meanwhile. |
ErasureSearched
What was searched: the organization's forms, boards and inboxes, and the items forms made that were checked.
| Field | Type | Description |
boards required | integer | |
candidates required | integer | |
forms required | integer | |
inboxes required | integer | |
noReplyTo required | integer | Forms with no reply-to field. Their responses are offered for the browser to check. |
bodyInboxes | integer | Compatible inboxes searched with the server body index; an incomplete index also leaves the inbox unchecked. |
responses | integer | Response records checked by Reply-To. |
uncheckedInboxes | integer | Inboxes offered to the browser on this page. |
uncheckedResponses | integer | Responses offered to the browser on this page. |
ErasureSource
A form's response (form and response), or one person by their email address (address), never both.
| Field | Type | Description |
address | string | |
cursor | string | For a person search, the cursor used to find the page of unchecked responses and inboxes being checked or erased. Omit it for the first page. Use the same cursor when erasing browser matches from that page. |
form | string | Pattern: ^frm_. |
response | string | Pattern: ^msg_. |
Event
A CloudEvents 1.0 event with K8 HQ's attributes.
| Field | Type | Description |
actor required | string | Who acted: a member (mem_), a token (tok_), a rule's agent (agt_) or K8 HQ (sys_…), derived from k8hqattribution. Empty when removed for privacy. |
class required | string | |
id required | string | |
scope required | string | The organization (org_). |
sequence required | string | Its position in its own stream (the inbox, or the organization). |
source required | string | |
time required | string | |
type required | string | |
visibility required | string | |
causationid | string | |
containerid | string | The container it concerns (an inbox, ibx_…), if any. |
correlationid | string | |
data | object | |
dataschema | string | |
k8hqattribution | object | What authorized the change: the person, their token, an agent (an app, K8 or a rule) or K8 HQ. IDs only; names are looked up when shown. An object-valued extension, like k8hqstate (CloudEvents 1.0 extensions are scalars). actor and onbehalfof derive from it. Events recorded before it existed (or whose stored one can no longer be read) carry one inferred from their actor, with inferred true and what can't be inferred (a token's label, the rule) absent. Removed with the actor. |
k8hqrootagent | object | Rules don't run on mail a connected AI sent without approval. |
k8hqstate | object | On message.* events: the message's labels, flags (neutral names), custom keyword count and tags after the change. |
subject | string | |
EventType
| Field | Type | Description |
class required | string | |
data required | object[] | The data fields. |
dataSchema required | object | JSON Schema for the event's data. |
description required | string | |
name required | string | |
source required | string | |
status required | experimental | stable | deprecated | |
version required | integer | |
visibility required | string | |
subject | string | What the event's subject holds. |
Flag
A message flag, by its neutral name: the same vocabulary as events, whatever the channel. Mail apps' IMAP flags map onto it (\Seen is seen, $Junk is junk). Values: seen, answered, flagged, draft, forwarded, junk, not_junk.
Flags
| Field | Type | Description |
flags required | Flag[] | |
FormBoardBulkEntry
For task boards, item is required: a fresh itm_ ID and version 1 sealed by the browser using the existing board version format and current board epoch. K8 HQ supplies source, response provenance and the acting member. For ticket boards, omit item: K8 HQ reuses the existing inbox copy or makes one for a compatible form. No route setting or passkey confirmation is needed.
| Field | Type | Description |
board required | string | Pattern: ^brd_. |
response required | string | |
again | string | The item deleted forever. Only replaces that item’s durable response link; a live item is returned as it stands. Pattern: ^itm_. |
item | object | |
Forward
A forwarding target of an inbox.
| Field | Type | Description |
createdAt required | string | |
id required | string | The forward (fwd_). |
memberId required | string | The member who set it up (mem_). |
status required | pending | active | paused | pending until someone at the address confirms (the link works for 7 days), then active. paused: the member who set it up lost access to the inbox; someone who manages the inbox resumes it. |
to required | string | Where the inbox's new mail is forwarded. |
confirmedAt | string | |
mayRemove | boolean | In lists: the caller may remove it (who set it up, or someone who manages the inbox's settings). |
HPKESuite
The HPKE IDs for this key: KEM 32 (X25519), KDF 1 (HKDF-SHA256), AEAD 2 (AES-256-GCM). If absent on an older record, use these IDs. Refuse any other suite.
| Field | Type | Description |
aead required | integer | |
kdf required | integer | |
kem required | integer | |
HeldMail
| Field | Type | Description |
held required | integer | Messages waiting outside the inboxes. |
senders | object[] | Who sent the waiting mail and when, newest first, at most 100 (billing viewers only). |
InboxClaimDetails
| Field | Type | Description |
attention required | boolean | |
item required | string | The conversation’s thread ID. |
state required | none | active | waiting | released | |
version required | integer | |
claim | string | |
claimedAt | string | |
heldSince | string | |
holder | InboxClaimHolder | |
previous | InboxClaimEnd | |
request | InboxClaimRequest | |
seenAt | string | |
waitingSince | string | |
waitingUntil | string | |
InboxClaimEnd
| Field | Type | Description |
by required | string | |
claim required | string | |
endedAt required | string | |
holder required | InboxClaimHolder | |
how required | string | |
comment | string | Pattern: ^[a-z][a-z_]{0,31}$. |
forced | boolean | |
reasonEpoch | integer | The version of the inbox key used to seal the written reason. |
reasonSealed | string | The sealed written reason, encoded as base64url without padding. A signed-in person who can reply sees it when opening this claim. Pattern: ^[A-Za-z0-9_-]+$. |
InboxClaimHolder
| Field | Type | Description |
member required | string | |
via required | member | token | |
token | string | |
InboxClaimOnTicketProblem
InboxClaimReasons
| Field | Type | Description |
reasons required | object[] | |
revision required | integer | |
InboxClaimRequest
| Field | Type | Description |
at required | string | |
by required | InboxClaimHolder | |
comment required | string | Pattern: ^[a-z][a-z_]{0,31}$. |
id required | string | |
InboxClaimStatus
| Field | Type | Description |
item required | string | |
state required | none | handled | |
InboxClaims
| Field | Type | Description |
claims required | InboxClaim[] | |
cursor | string | |
InboxSettings
| Field | Type | Description |
explicit required | string[] | The settings someone set. rulesMaySend and forwardingOff left unset follow the inbox: allowed while one member has access, off once it's shared. |
forwardingOff required | boolean | Members may not forward this inbox; no forward runs. Off by default. Unset, it follows the inbox: allowed while one member has access, off once it's shared. |
k8MayRead required | boolean | K8 Messages may read this inbox; absent consent means false, with no inherited default. |
k8MayReadRevision required | integer | |
mayChange required | boolean | Whether the caller may change these (inbox.settings.change for this inbox, signed in to the web app; never a personal notice inbox's). |
mayDisableK8 required | boolean | |
mayEnableK8 required | boolean | |
memberRulesOff required | boolean | Only the organization's owners and admins create, change, pause, delete and test rules acting on this inbox. Off by default: members with access may. |
rulesMaySend required | boolean | Rules may send mail out of K8 HQ from this inbox (automatic replies). Off by default. Unset, it follows the inbox: allowed while one member has access, off once it's shared. |
spamAutoDelete required | boolean | Messages in Spam longer than 30 days are deleted for good, once a day; flagged ones are kept. On by default; turning it back on restarts the 30 days. |
trashAutoDelete required | boolean | Messages in Trash longer than 30 days are deleted for good, once a day; flagged ones are kept. On by default; turning it back on restarts the 30 days. |
IntakeIssue
An external issue's projection on a task board: the provider's stable IDs, its number, link and state as last read, its title sealed to the board's epoch key, and the tasks linked to it. Its discussion stays on the provider.
| Field | Type | Description |
account required | string | |
board required | string | |
firstSeenAt required | string | |
id required | string | xis_ |
issue required | string | The provider's stable issue ID (not its number, which a transfer changes). |
items required | string[] | The tasks linked to it (itm_). |
matches required | boolean | It carried its source's labels when last read. |
number required | integer | |
provider required | string | |
providerUpdatedAt required | string | When the provider last changed it, as last read. |
repository required | string | |
repositoryName required | string | |
schemaVersion required | integer | |
source required | string | The intake source that last read it (xsr_). |
state required | open | closed | gone | As last read; gone: deleted, transferred or no longer readable through the connection. |
syncedAt required | string | |
title required | object | The title sealed with seal v2 to the board's epoch key: one part, title, seal ID <xis>|title|v<n>. |
triage required | new | deferred | dismissed | |
url required | string | |
version required | integer | |
titleText | string | For a token: the title, opened by the cell. |
triagedAt | string | |
triagedBy | string | |
unreadable | boolean | For a token: the title couldn't be opened. |
IntakeSettings
A task board's intake settings.
| Field | Type | Description |
background required | boolean | Its sources sync in the background (off by default), each under its standing authorization. |
schemaVersion required | integer | |
version required | integer | |
setAt | string | |
setBy | string | |
IntakeSource
A task board's external issue intake source: one connection's repository and the issues of it the board shows.
| Field | Type | Description |
account required | string | The provider's stable ID of the account the repository is on. |
all required | boolean | Every open issue, chosen explicitly instead of labels. |
board required | string | |
connection required | string | The connection it reads through (pcn_). |
createdAt required | string | |
createdBy required | string | |
id required | string | xsr_ |
labels required | string[] | Labels every issue must carry. |
provider required | string | The provider's kind (github). |
repository required | string | The provider's stable repository ID. |
repositoryName required | string | Its name as last read (owner/name). |
schemaVersion required | integer | |
authorizedBy | string | The member whose standing authorization background sync reads under, rechecked before every read. |
failures | integer | |
noticedAt | string | The provider said something changed after the last sync: sync to read it. |
paused | string | Why background sync is paused (board_access, member_gone, suspended, service_off, not_authorized, deleted, disabled, revoked, not_connected, expired, not_readable); absent when it isn't. |
pausedAt | string | |
pollAfter | string | Not read before this (a rate limit's reset, or a failing provider's backoff). |
syncedAt | string | |
syncedBy | string | |
url | string | |
K8MessagePlan
| Field | Type | Description |
filter required | object | |
inboxes required | string[] | |
includeAutomated required | boolean | |
schemaVersion required | 1 | |
window required | object | |
maxMessages | integer | |
K8MessageSummary
| Field | Type | Description |
amounts required | object[] | |
asks required | string[] | |
confidence required | low | medium | high | |
dates required | object[] | |
people required | object[] | |
schemaVersion required | 1 | |
summary required | string | |
urls required | object[] | |
K8QuestionResponse
| Field | Type | Description |
inboxId required | string | |
messageId required | string | |
producerVersion required | string | null | |
questionResult required | any | |
reason required | automated | no_text | | |
schemaVersion required | 1 | |
status required | ready | skipped | |
truncated required | boolean | |
K8QuestionResult
| Field | Type | Description |
answer required | string | |
confidence required | low | medium | high | |
quotes required | string[] | |
schemaVersion required | 1 | |
K8SummaryResponse
| Field | Type | Description |
inboxId required | string | |
messageId required | string | |
producerVersion required | string | null | |
reason required | automated | no_text | | |
schemaVersion required | 1 | |
status required | ready | skipped | |
summary required | any | |
truncated required | boolean | |
labelIds | string[] | The message's folder IDs, including Spam and Trash. |
snooze | Snooze | |
Label
| Field | Type | Description |
id required | string | |
name required | string | |
total required | integer | |
unread required | integer | |
converting | boolean | This folder is being turned into a tag. |
specialUse | \Sent | \Drafts | \Trash | \Junk | \Archive | The label's role, as IMAP names it. |
MessageDelivery
| Field | Type | Description |
recipients required | object[] | |
salt required | string | Pattern: ^[A-Za-z0-9_-]{22}$. |
sentAt required | string | |
rejected | string | |
MessageSummary
| Field | Type | Description |
channel required | email | form | portal | Later sms, voice, chat. form: a form's response (design note 0019), in the form or copied to an inbox. portal: a customer's reply from the help desk portal. |
flags required | Flag[] | |
id required | string | |
modseq required | integer | The message version. Changes when its flags or labels change. |
participants required | Participant[] | |
receivedAt required | string | |
size required | integer | Bytes. |
attachments | integer | How many files are attached; absent if they weren't counted (mail stored before K8 HQ counted them). Available in zero-access inboxes too. Images shown within the message do not count unless also attached as files. |
automated | bounce | auto-reply | auto-generated | list | bulk | form | Mail no person wrote, from its headers (received mail only; absent otherwise): a delivery report, an auto-reply (out of office), other machine mail (Auto-Submitted, noreply senders), a mailing list, or bulk/marketing mail. Rules never auto-reply to it. Ignore values you don't know. Rules see it as message.automated ("" for a person's mail). form: a form's response (no automatic reply goes to it). |
boardFailed | paused | changed | no_route | full | full_open | boards_off | failed | A form's response (or its inbox copy) that its board setting didn't add: paused (the setting was paused, for example because the person who set it up lost access to the board), changed (the setting changed while the response was on its way), no_route (an inbox copy that came without the form's board setting, so it stays mail and opens no ticket), full (the board took as many new items as it may today), full_open (it holds as many items that aren't done as it may), boards_off (the organization turned Boards off), or failed (a task route's task couldn't be made after several tries, or its board setting couldn't be read). Absent otherwise. |
boardItems | object[] | On a form's response: the items it made on boards ("Added to Support as #142"): IDs and numbers only. Absent when it made none. |
copyFailed | boolean | A form's response whose copy in the form's delivery inbox couldn't be made after retries, including when a temporary problem prevented checking the board setting or access. The response stays in the form and its members are told. Absent otherwise. |
date | string | The sender's date (email Date header). |
delivery | notsent | bounced | delayed | Problem marker for outgoing mail in any folder or search. Absent for delivered mail and complaints. Does not change IMAP modseq. |
direction | in | out | |
draft | object | Present for a draft a person's app saved (direction out, flagged draft, not a server-filed copy): what can be edited, replaced and discarded through /inboxes/{inbox}/drafts. A message merely moved into Drafts has none. |
keywords | string[] | Custom keywords set by mail apps. |
labelIds | string[] | The message's folder IDs, including Spam and Trash. |
noticeReaderKind | notice | release | Set only by K8 HQ when delivering a notice or release note. Absent for mail, saved messages and notices delivered before K8 HQ added this feature. |
routedTo | string | On a form's response: the task board its setting sent it to when it arrived. With no boardItems and no boardFailed 10 minutes after it arrived, it wasn't added (for example after a failure on the way): show "Not added". |
senderVerified | boolean | Whether the sender passed checks kept when the mail arrived. Available for older mail too when those checks were kept. Absent means unknown, including imported mail. |
snooze | Snooze | |
spam | Spam | |
subject | string | |
tags | string[] | Organization tags on it (tag_ IDs, sorted; absent when none). Names are sealed in the organization's tag set (GET /tags). |
threadId | string | The conversation it belongs to, within its inbox: email joins a thread by In-Reply-To and References (else a reply's subject and sender, within 30 days); a form's response is a thread of its own. Absent on a message stored before threads that hasn't been given one yet: treat it as a thread of its own. Pattern: ^thr_[0-9A-HJKMNP-TV-Z]{26}$. |
ticket | object | The ticket this message opened or joined on the inbox's ticket board (design note 0021), shown as "Ticket #142": IDs and the number only. Absent for mail on no ticket; it goes when the ticket is deleted for good. |
unsubscribe | one-click | email | page | none-uncovered | The best unsubscribe method checked when the mail arrived. The sender signed the link. none-uncovered means the sender did not sign the link, so offer no method. Absent on older or imported mail: only a page may be offered, with a warning and senderVerified true. One-click and email require this field. The link and its proof are not returned here. |
MilestoneFact
A task's milestone, recorded explicitly with its provenance: integrated (into the integration target), promoted (to main), released, deployed. Distinct conditions; none implies another.
| Field | Type | Description |
at required | string | |
by required | string | |
item required | string | |
milestone required | string | |
schemaVersion required | integer | |
via required | string | person, or the token (tok_). |
evidence | string | A commit or ref name. |
MySignature
| Field | Type | Description |
address required | string | |
endpointId required | string | |
hasAddressSignature required | boolean | |
inboxId required | string | |
inboxName required | string | |
memberSignatures required | boolean | |
mine required | any | |
personal required | boolean | |
zeroAccess required | boolean | |
NewEventType
| Field | Type | Description |
description required | string | |
name required | string | Pattern: ^ext\.[a-z][a-z0-9_]*\.[a-z][a-z0-9_]*$. |
data | object[] | |
version | integer | |
OrgPages
| Field | Type | Description |
enabled required | boolean | Whether organization pages are on. While they're off, nothing else is returned and forms stay at https://k8hq.page/f/.... |
domain | string | The pages domain (k8hq.page). |
mayChange | boolean | Whether the caller can change it. |
prev | string | The address it last changed from, while that still redirects. |
prevUntil | string | When prev stops redirecting and other organizations can take it. |
slug | string | The address's first label; empty until one is set (or picked from the organization's name when its first form is published). |
OrgSemanticSettings
| Field | Type | Description |
default required | boolean | Mailboxes that follow the organization are searchable by meaning. |
forbidden required | boolean | An owner forbade sending any message text to an AI model: search by meaning is off everywhere, whatever the mailboxes' settings. |
mayChangeCap required | boolean | Owners only. |
mayChangeDefault required | boolean | People with org.settings.change, while the forbid is off. |
mayForbid required | boolean | Owners only. |
model required | string | |
monthlyCap required | string | The most making mailboxes searchable by meaning may cost a month (default $20); embedding pauses at it, and owners are told at 80% and at it. |
prices required | SemanticPrices | |
spentThisMonth required | string | Spent on it this UTC month so far. |
estimate | SemanticEstimate | |
following | string[] | With estimate: the mailboxes on only because of the default (turning the default off deletes their vectors). |
mailboxes | integer | Mailboxes the default would turn on (with estimate). |
OrganizationTag
| Field | Type | Description |
createdAt required | string | |
creator required | string | |
epoch required | integer | |
id required | string | Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
object required | string | A frame of two seal v2 parts, meta and names; at most 4 KB sealed. |
schemaVersion required | 1 | |
updatedAt required | string | |
version required | integer | |
wdek required | string | The DEK wrapped to the container epoch using the tag seal ID. |
creatorLabel | string | The creating token's label, when a token created this tag. |
creatorMember | string | The member whose token created this tag. |
keyword | string | The tag's keyword in mail apps (IMAP), while "Show in mail apps" is on: stored in plain text so mail apps can show and set the tag. Absent while it's off. |
OrganizationTagKeywordConversionStatus
| Field | Type | Description |
progress required | object | |
status required | running | done | failed | running until the tag is off everything and deleted (done). failed: it stopped and K8 HQ's staff are alerted; the tag stays hidden and unusable until they finish it. |
tag required | string | The tag being deleted or merged. Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
into | string | For a merge, the tag asked to merge into. If that tag is itself deleted or merged meanwhile, the merge follows it: to the tag it went into, or, once it's deleted, the merged tag is just deleted. Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
OrganizationTagRemoval
A tag being deleted or merged: its sealed record, so its name can still be shown while the removal runs.
| Field | Type | Description |
createdAt required | string | |
creator required | string | |
epoch required | integer | |
id required | string | Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
job required | string | The removal's job ID. |
object required | string | A frame of two seal v2 parts, meta and names; at most 4 KB sealed. |
schemaVersion required | 1 | |
updatedAt required | string | |
version required | integer | |
wdek required | string | The DEK wrapped to the container epoch using the tag seal ID. |
into | string | For a merge, the tag it's merging into. Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
OrganizationTagRemovalStatus
| Field | Type | Description |
status required | running | done | failed | running until the tag is off everything and deleted (done). failed: it stopped and K8 HQ's staff are alerted; the tag stays hidden and unusable until they finish it. |
tag required | string | The tag being deleted or merged. Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
into | string | For a merge, the tag asked to merge into. If that tag is itself deleted or merged meanwhile, the merge follows it: to the tag it went into, or, once it's deleted, the merged tag is just deleted. Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
OrganizationTagUpdate
| Field | Type | Description |
epoch required | integer | |
object required | string | A frame of two seal v2 parts, meta and names; at most 4 KB sealed. |
wdek required | string | The DEK wrapped to the container epoch using the tag seal ID. |
id | string | Pattern: ^tag_[0-9A-HJKMNP-TV-Z]{26}$. |
OutboxItem
| Field | Type | Description |
author required | string | |
createdAt required | string | |
draftId required | string | |
id required | string | |
kind required | undo | scheduled | |
msgId required | string | |
schemaVersion required | integer | |
sendAt required | string | |
size required | integer | |
status required | held | sending | failed | unknown | held waits for its send time; sending has been claimed and cannot be cancelled; failed was not sent; unknown could have been sent and is never sent again automatically. Later sending reports can resolve unknown as sent. Failed and unknown items stay for 30 days and count toward storage until removed. |
summary required | OutboxSealed | |
version required | integer | |
zone required | string | |
answers | string | |
failure | object | |
ticket | object | The ticket reference, last message and version of the send claim. |
OutboxSealed
| Field | Type | Description |
ciphertext required | string | The RFC 5322 message, encrypted with the data key. |
draftId required | string | A random ID per message, or the draft's ID when sending a saved draft (which is then removed); the ciphertext is bound to it. Pattern: ^draft_[A-Za-z0-9_-]{16,64}$. |
epoch required | integer | The inbox epoch the data key was sealed to (GET /inboxes/{inbox}). |
wrappedDek required | string | |
OutwardWrite
One write K8 HQ made (or is making) to a linked issue, with its provenance. Its ID is the hidden marker in the comment, so it's never posted twice.
| Field | Type | Description |
bodyHash required | string | SHA-256 of what was posted (a reply's text isn't kept). |
by required | string | |
claimedAt required | string | |
connection required | string | |
id required | string | xpc_ |
issue required | string | |
kind required | milestone | reply | closure | |
schemaVersion required | integer | |
state required | posting | posted | closed | |
via required | string | |
comment | string | The provider's comment ID. |
item | string | |
milestone | string | |
postedAt | string | |
template | integer | |
url | string | |
Participant
An identifier in a message. Contacts match on kind and value, never on the display name.
| Field | Type | Description |
kind required | email | Later e164 (phone) and chat handles. |
role required | from | to | cc | reply-to | |
value required | string | The address. |
name | string | Display name, if given. |
Permission
| Field | Type | Description |
danger required | boolean | Can lead to content or to other people's power: one passkey confirmation per use, and the consequence is spelled out when it's given. |
grants required | string | What it lets a member do. |
group required | string | |
name required | string | e.g. billing.view. |
peoplePower required | boolean | Giving it, or changing or removing someone who holds it, needs an owner's approval. |
risk required | low | medium | high | |
scopable required | boolean | May be held for named inboxes or contact books, or only the ones the member is in, instead of the whole organization. |
stepUp required | boolean | Needs a passkey used in the last five minutes. |
cannot | string | What it never allows. |
implies | string | What follows from that. |
peopleOnly | boolean | Never through a token. |
tokenScope | string | The access-token scope it lets a member give their tokens. |
PortalSetting
| Field | Type | Description |
by required | string | |
form required | string | The form the portal's New request button opens (a frm_ ID), or empty: customers are asked to email the board's inbox. Offered only while the form is published and its ticket route to this board is on. |
gen required | integer | |
linkLines required | boolean | Whether acknowledgements fill {portal.link_line} with the request's link while the portal is on (the web app also adds it to replies). On unless turned off. |
names required | object | What customers see for each status category: todo, active, waiting, done and closed, always all five (the defaults Received, In progress, Waiting for you, Solved and Closed where the board hasn't named one). Plaintext: the cell renders them on the portal. |
on required | boolean | |
version required | integer | |
welcome required | string | A line at the top of the portal's sign-in and request pages; empty for none. Plaintext. |
paused | string | While it's on, why sign-in links can't go out: owner_left, no_sending or automatic_mail_off. Only on a read. |
Principal
| Field | Type | Description |
member required | string | |
claim | string | Reserved for the work-claim session (board item #172); not set yet. |
via | string | person (signed in to K8 HQ), a token's ID (tok_), or absent where it wasn't recorded. |
Privacy
readable: K8 HQ's servers can open it (decrypted reads with content:read, IMAP, server rules). zero_access: ciphertext only. Values: readable, zero_access.
Problem
An RFC 9457 problem detail.
| Field | Type | Description |
code required | invalid | unauthenticated | forbidden | scope_missing | zero_access | not_found | conflict | in_progress | version_mismatch | precondition_required | calendar_closed | org_closed | too_large | rejected | rate_limited | unavailable | sync_reset | step_up_required | k8_unavailable | mcp_binding_unavailable | approval_required | out_of_credit | service_disabled | read_only | clock_wrong | ticket_changed | held | claimed | claim_held | claim_required | claim_lost | claim_reason_unknown | claim_reasons_changed | claim_reason_text_not_allowed | epoch_changed | claim_on_ticket | not_holder | claim_active | not_ready | on_hold | delivered | blocked | dependency_cycle | owner_required | connection_unavailable | connection_not_authorized | plan_changed | confirmation_required | confirmation_invalid | confirmation_expired | confirmation_mismatch | confirmation_used | needs_person | key_changed | key_unverified | key_replaced | container_access_lost | k8_notice_inbox | k8_messages_disabled | k8_inbox_disabled | k8_model_unavailable | k8_output_invalid | k8_cap_reached | k8_member_cap_reached | k8_plan_invalid | k8_ai_classify_disabled | k8_ai_sending_not_allowed | client_outdated | snooze_not_in_inbox | snooze_limit | tags_coming_soon | folder_rules | undo_expired | book_read_only | not_eligible | already_unsubscribed | proof_mismatch | bad_url | consent_required | sender_cap | organization_cap | destination_cap | Stable: branch on this. |
status required | integer | |
title required | string | |
type required | string | Documentation for the code. |
detail | string | For people; may change. |
PublicationPlan
What publishing the issue would write now.
| Field | Type | Description |
issue required | string | |
planHash required | string | Binds a publish to this plan: send it to publish, which refuses (plan_changed) if what it would write is no longer this. |
policy required | PublicationPolicy | |
waiting required | string[] | Linked tasks (itm_) not at the resolution milestone yet: the closure waits for them. |
writes required | object[] | |
closure | object | |
PublicationPolicy
Which milestones K8 HQ comments on a task board's linked external issues (none by default), and the resolution rule under which it closes them (off by default).
| Field | Type | Description |
milestones required | tracked | integrated | promoted | released | deployed[] | |
resolution required | off | integrated | promoted | released | deployed | |
schemaVersion required | integer | |
version required | integer | |
setAt | string | |
setBy | string | |
Reported
| Field | Type | Description |
harness | string | |
kind | string | |
label | string | |
model | string | |
version | string | |
ReturnedMessage
| Field | Type | Description |
createdAt required | string | When you first snoozed the message. Changing an active snooze's return time keeps this original time. |
msgId required | string | |
returnedAt required | string | |
summary required | MessageSummary | |
threadId required | string | |
Rubric
| Field | Type | Description |
appliesTo required | string[] | |
createdAt required | string | |
criteria required | RubricCriterion[] | |
id required | string | |
version required | integer | |
bytes | integer | |
createdBy | string | |
epoch | integer | |
latest | integer | |
object | string | A custom version's text: framed (meta, body), seal ID <board>|<rubric>|v<version>. |
starter | boolean | |
text | RubricText | A starter's text; for a token, a custom version's text opened by K8 HQ's servers. |
unreadable | boolean | Tokens only: the version's seal didn't open. |
wdek | string | |
RubricCriterion
| Field | Type | Description |
id required | string | |
max required | integer | |
min required | integer | |
RubricCriterionText
| Field | Type | Description |
levels required | object | An anchor for each level, keyed by the level ("1", "2", ...). |
name required | string | |
description | string | |
RubricRef
| Field | Type | Description |
id required | string | |
version required | integer | |
RubricText
| Field | Type | Description |
criteria required | object | |
name required | string | |
description | string | |
Rule
| Field | Type | Description |
agentId required | string | The agent it acts as (agt_…): the actor of every event it causes. |
ceiling required | string | The agent's frozen permissions, as Cedar policies. |
containers required | string[] | The containers its ceiling covers. |
createdAt required | string | It acts on events after this, never on history. |
creator required | string | The member who created it (mem_…). |
dailyCap required | integer | Actions a day before the rule pauses itself; -1: no limit. |
id required | string | rul_… |
params required | object | |
status required | active | paused | |
summary required | string | What it does, in plain words. |
template required | Template | |
updatedAt required | string | |
version required | integer | |
activeFrom | string | When the rule starts acting (UTC), if set. |
activeUntil | string | When the rule stops acting (UTC), if set. |
aiClassifyDailyCap | integer | |
aiSendingOptIn | object | null | |
createdAttribution | Attribution | |
phase | active | paused | scheduled | ended | How the rule stands now: active, paused, scheduled (its window hasn't started) or ended (its window has passed). |
updatedAttribution | Attribution | |
RuleAction
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 | tag | flag | emit | notify | notifyMembers | reply | parse_dmarc_report | See GET /rule-actions. parse_dmarc_report is K8 HQ's own: only its starter template may use it. |
add | WebFlag[] | 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 | WebFlag[] | 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>". |
tag | string | tag: an organization tag's ID (tag_) or a tag parameter ($name), live in the organization when the rule is saved (checked again in the transaction that saves it: a tag deleted, or being deleted or merged, meanwhile answers 422). The tag is added through the message's tag write (message.tags_changed, billed as one rules.actions); the message stays in its folders. A tag deleted, or being deleted or merged, since is skipped, as is a message that already has 20 tags; neither records rule.action.failed. Merging the tag switches the rule to the merge's target. Rules made or changed by apps can't add tags yet. |
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. |
RuleActionType
| Field | Type | Description |
audience required | customer | |
description required | string | |
fields required | object[] | |
kind required | string | |
on required | string | What it acts on. |
outsideEffects required | boolean | Whether anything leaves K8 HQ (none of today's actions). |
permission required | string | What the rule's agent's ceiling must allow (Cedar action). |
triggers required | string | The triggers it needs (message.* or any). |
RuleTest
| Field | Type | Description |
capped required | integer | Actions the rule's daily limit would have refused (it would have paused itself). |
evaluated required | integer | Events the rule selected and its filter checked (metered as rules.evaluations). |
failed required | object | Events a live run would have recorded as rule.action.failed, by reason (denied, filter_error, invalid, depth). |
matched required | integer | |
matches required | object[] | |
notes required | string[] | What a test can't show. |
perDay required | object | Matches per UTC day. |
scanned required | integer | Events read (up to 2000 per call; metered as events.read). |
suggestedCap required | integer | A daily limit with room above the peak day: three times its actions, at least 100. |
unknown required | integer | Selected events whose message is gone. |
window required | object | |
aiClassify | object | |
horizon | string | The organization's earliest event a test can see. |
nextCursor | string | More of the window to test: pass it as cursor. |
peakDay | string | |
SavedDraft
| Field | Type | Description |
draftId required | string | |
messageId required | string | The message in Drafts holding this version (msg_…); each save makes a new one. |
SavedReply
A shared saved reply, kept sealed in the board. The browser opens its name and text.
| Field | Type | Description |
bytes required | integer | |
epoch required | integer | |
id required | string | Pattern: ^srp_[0-9A-HJKMNP-TV-Z]{26}$. |
object required | string | |
savedAt required | string | |
savedBy required | string | |
schemaVersion required | 1 | |
version required | integer | |
wdek required | string | |
Sealed
A browser-sealed object: framed seal v2 parts and its key wrapped to the board's epoch key.
| Field | Type | Description |
epoch required | integer | |
object required | string | |
wdek required | string | |
SemanticEstimate
What embedding the messages not in the index yet is expected to cost the organization, rounded up to the cent: embedding once, storagePerMonth while the vectors are kept, total the two. Spam isn't embedded. Tokens are estimated from message sizes (on the high side for mail with attachments).
| Field | Type | Description |
embedding required | string | Dollars, exact, as a decimal string. |
messages required | integer | |
storagePerMonth required | string | Dollars, exact, as a decimal string. |
tokens required | integer | |
total required | string | Dollars, exact, as a decimal string. |
SemanticPrices
The rates behind the estimate.
| Field | Type | Description |
per1000Tokens required | string | Dollars, exact, as a decimal string. |
perLoad required | string | Dollars, exact, as a decimal string. |
perMessage required | string | Dollars, exact, as a decimal string. |
perSearch required | string | Dollars, exact, as a decimal string. |
SemanticSettings
| Field | Type | Description |
forbidden required | boolean | |
mayChange required | boolean | |
mode required | org | on | off | The mailbox's setting: org follows the organization's default. |
model required | string | The embedding model. |
note required | string | What this means, for people. |
off required | | off | forbidden | zero_access | removed | Why it isn't on: off (its setting, or the organization's default), forbidden (an owner forbade sending message text to AI models), zero_access, removed; empty when on. |
on required | boolean | Whether the mailbox is searchable by meaning (its mail is embedded as it arrives). |
orgDefault required | boolean | |
prices required | SemanticPrices | |
status required | SemanticStatus | |
zeroAccess required | boolean | |
estimate | SemanticEstimate | |
estimatePending | boolean | The mailbox is still loading for the estimate: ask again in a moment. |
SemanticStatus
How far the mailbox's semantic index is.
| Field | Type | Description |
building required | boolean | The mailbox's messages are still being embedded. |
indexed required | integer | Messages in it now. |
partial required | boolean | Only imported messages that asked for it are in it (the mailbox itself is off). |
ready required | boolean | An index exists (a build may still be running). |
paused | credit | cap | model | Embedding waits: the organization is out of credit, has reached its monthly limit (until next month or an owner raises it), or the model is unavailable. Absent when it doesn't. |
SenderMove
| Field | Type | Description |
before required | string | |
createdAt required | string | |
finishedAt required | string | |
id required | string | |
inboxId required | string | |
moved required | integer | |
skipped required | integer | |
starredKept required | integer | Matching messages kept because they were starred when counted, separate from messages skipped after a change. |
status required | queued | running | waiting | succeeded | failed | cancelled | |
target required | archive | trash | |
total required | integer | |
undoOf required | string | |
reason | too_many_messages | stopped | too_many_folders | |
undoJobId | string | |
undoUntil | string | Undo deadline for committed moves in a succeeded, failed or cancelled job. Absent when no messages moved or Undo has started. |
Sent
| Field | Type | Description |
sent required | boolean | False for a dry run. |
claim | string | The claim ID when a reply was sent with claim: "new". Pattern: ^clm_[0-9A-HJKMNP-TV-Z]{26}$. |
dryRun | boolean | |
messageId | string | The stored Sent copy's K8 HQ message ID, including when a copy was already stored. Absent for a dry run or if the message was sent but its Sent copy could not be stored. Older replayed responses may omit it. Pattern: ^msg_[0-9A-HJKMNP-TV-Z]{26}$. |
warning | string | Shown if K8 HQ sent the message and could not remove the draft. |
Signature
Address signature, readable by K8 HQ even in a zero-access inbox. Signatures are stored where K8 HQ can read them, because they're added to mail you send to other people. Don't put anything private in a signature.
| Field | Type | Description |
by required | string | |
html required | string | At most 10 KB of cleaned HTML. The only image source is cid:k8hq-sig. The literal {sender name} stays in storage. |
schemaVersion required | 1 | |
text required | string | Generated on the server from the cleaned HTML, at most 2 KB. Compose adds the -- delimiter. |
updatedAt required | string | |
image | SignatureImage | |
SignatureImage
Uploaded image dimensions on upload; display dimensions and alt text when part of a signature. Image IDs are opaque prefixed ULIDs within one organization; the inbox must also have access.
| Field | Type | Description |
bytes required | integer | |
height required | integer | |
imageId required | string | Pattern: ^sig_[0-9A-HJKMNP-TV-Z]{26}$. |
sha256 required | string | Pattern: ^[0-9a-f]{64}$. |
type required | image/png | image/jpeg | image/gif | |
width required | integer | |
alt | string | |
Snooze
Your own snooze time or returned pin. Absent for other people.
SnoozedMessage
| Field | Type | Description |
createdAt required | string | When you first snoozed the message. Changing an active snooze's return time keeps this original time. |
msgId required | string | |
summary required | MessageSummary | |
threadId required | string | |
until required | string | |
Snoozes
| Field | Type | Description |
returned required | ReturnedMessage[] | |
snoozed required | SnoozedMessage[] | |
Spam
The inbound spam scanner's verdict; absent (or null) if the message wasn't scanned (sent copies, older mail). Rules see it as message.spam and message.spamScore.
| Field | Type | Description |
flagged required | boolean | Over the scanner's threshold. |
score required | number | The scanner's score (rspamd): higher is more likely spam; around 6 and up is flagged. |
Subject
| Field | Type | Description |
base | string | Code: the comparison base's full commit, where assessed. |
branch | string | Code: display only. |
candidate | string | Code: the tested integration candidate's full commit or tree, where assessed. |
commit | string | Code: the full commit assessed (40 or 64 hex digits). |
description | integer | A task description: the item's saved version. |
ref | string | Another artifact kind: a revision reference sufficient to reopen it. |
repository | string | Code: the repository's identity. |
Subscription
| Field | Type | Description |
address required | string | Lower-cased From address. |
count30 required | integer | Matching messages received in the last 30 days. |
countAll required | integer | Matching messages received in the last 12 months. |
lastAt required | string | |
newest required | SubscriptionNewest | |
block | Rule | |
name | string | Display name on the newest matching message. |
record | SubscriptionUnsubscribeRecord | |
SubscriptionNewest
| Field | Type | Description |
id required | string | |
senderVerified | boolean | Whether the sender passed checks when the message arrived. Absent means unknown. |
unsubscribe | one-click | email | page | none-uncovered | The method checked when the message arrived. Absent on older mail. none-uncovered means no signed link is available. |
SubscriptionPage
| Field | Type | Description |
senders required | Subscription[] | |
nextCursor | string | Opaque next page cursor, omitted on the last page. Reuse with the same inbox, sort and filter within 15 minutes. |
SubscriptionUnsubscribeRecord
| Field | Type | Description |
at required | string | |
attempts required | integer | |
by required | string | |
messageId required | string | |
method required | one-click | email | page | |
result required | pending | accepted | sent | failed | refused | page-opened | email-sent | |
schemaVersion required | integer | |
sender required | string | |
reason | string | |
sentMessageId | string | |
status | string | |
windowStart | string | |
Suppression
| Field | Type | Description |
address required | string | The recipient's address, as SES stores it (case kept). |
reason required | bounce | complaint | |
since required | string | When the last bounce or complaint put it on the list. |
Suppressions
| Field | Type | Description |
mayRemove required | boolean | Whether the caller may remove addresses that bounced (a person with org.settings.change). |
suppressions required | Suppression[] | |
nextCursor | string | Present while there are more. |
SurveyAnswer
A customer's satisfaction answer. Its comment is sealed to the board's epoch key (seal v2, one part comment, under sealId); open it in the browser as other sealed board content.
| Field | Type | Description |
at required | string | |
changes required | integer | |
firstAt required | string | |
solve required | integer | The solve it rates; 0 when no solving reply carried the link (kept, not the ticket's rating). |
value required | great | okay | bad | |
by | string | The member it counts for (mem_): who sent the solving reply, or who asked for the link. |
comment | string | |
commentWdek | string | |
epoch | integer | |
sealId | string | |
survey | string | With solve 0: the link's ID. |
SurveySetting
A ticket board's satisfaction survey switch, in its help desk settings record.
| Field | Type | Description |
on required | boolean | |
version required | integer | The help desk settings record's version (0: never saved). |
Template
The one format every rule comes from. It names no organization: inboxes and labels are parameters, filled in when it's installed.
| Field | Type | Description |
actions required | RuleAction[] | |
name required | string | |
templateVersion required | 1 | |
triggers required | object[] | |
conditions | AIClassifyCondition[] | |
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[] | |
ThreadMessages
| Field | Type | Description |
count required | integer | Messages stored in the thread, including ones not listed (held or recoverable). |
messages required | any[] | |
threadId required | string | The conversation ID; empty for a message with no conversation ID. |
cursor | string | Pass back unchanged to load older messages. Absent at the end. |
TicketMessage
A message on a ticket (design note 0021 section 5): the browser opens it from the inbox, with the inbox's key.
| Field | Type | Description |
at required | string | |
direction required | in | out | |
message required | string | The message (msg_) in the board's inbox. |
automated | string | Automated mail: bounce, auto_reply, auto_generated, list or bulk. |
bounced | permanent | temporary | suppressed | A reply that wasn't delivered to some of its recipients. |
channel | form | portal | form: a form response's inbox copy (show it as a form response, not as an email). portal: a customer's reply sent from the help desk portal (show it as sent from the portal). Absent on email and on form copies from before it was kept. |
from | string | Mail in: the sender's address. |
opened | boolean | It opened the ticket. |
unverified | boolean | Mail in that isn't verified: show it with a warning, always (it stays on the message after its sender is verified). |
unverifiedWhy | stranger | spoofed | typed | Why: stranger, an address the ticket hadn't seen, matched by its headers alone (it can be marked known); spoofed, the requester's or a participant's address on a message that failed sender authentication (nothing can vouch for it). Typed means an address entered into a form. Absent on messages from before it was kept. |
Transfer
An import into or an export of an inbox, as the person who asked for it sees it. Only they see it.
| Field | Type | Description |
createdAt required | string | |
id required | string | The job (job_). |
kind required | import | export | |
progress required | object | Counts so far. Imports: while counting, estMessages and estBytes; then imported, duplicates (already in the folder, skipped), deleted (marked deleted in the file, skipped), failed (not messages, over 40 MB, or refused), notStored (of failed, the ones the store refused after several tries: importing the same files again adds them), filesFailed (files or zipped mailboxes that aren't mbox), bytesDone and bytesTotal (of the uploaded files). Exports: messages, folders, failed (messages that couldn't be read), and size (the zip, once it's ready). |
status required | scanning | scanned | queued | running | waiting | succeeded | failed | cancelled | Imports first: scanning while their files are counted, scanned once the estimate is ready (start or cancel it). Then queued, running; waiting: an attempt failed and it carries on shortly from where it stopped. failed: it stopped for good; K8 HQ staff are told, and messages imported before it stopped stay. |
costSoFar | string | Started imports: what they've been charged so far (the upload and each message stored; storage comes daily, as for all mail). |
creditOk | boolean | Counted imports: the organization's available credit covers the estimate (else starting it is refused). |
estimate | object | Imports: what it's expected to cost, from the count, rounded up to the cent: import once (every charge the import makes: the upload, each new message stored and indexed for search, and the check for messages already there), storagePerMonth while the mail is kept, total the two. Messages already in their folders are skipped and cost only that check. |
expiresAt | string | Exports: until when it can be downloaded (7 days after it's ready). |
files | string[] | Imports: the uploaded files' names. |
finishedAt | string | |
folder | string | Imports: the folder their messages go to (empty: INBOX), unless keepFolders. |
keepFolders | boolean | Imports: each file's (or zipped mailbox's) own name is its folder. |
upload | string | Imports: their upload (upl_), to start or cancel it. |
UnsubscribeRecord
The latest request for one sender in this inbox. at and windowStart are UTC dates. by is the member who asked. attempts counts one-click and email attempts in the last 30 days. A stale pending request reads as failed after 60 seconds. No link or proof is kept.
| Field | Type | Description |
at required | string | |
attempts required | integer | |
by required | string | |
messageId required | string | |
method required | one-click | email | page | |
result required | pending | accepted | sent | failed | refused | page-opened | email-sent | |
schemaVersion required | 1 | |
sender required | string | |
reason | string | |
sentMessageId | string | |
status | 2xx | 3xx | 4xx | 5xx | |
windowStart | string | |
UnsubscribeResponse
| Field | Type | Description |
record required | any | |
Upload
An import being uploaded: PUT each part of each file to a part URL, then start it.
| Field | Type | Description |
expiresAt required | string | Start it before then (a part waits a day at most). |
files required | object[] | |
id required | string | The upload (upl_). |
maxBytes required | integer | The most one import may upload. |
WebFlag
The flags the API can change. Values: seen, flagged, answered.