K8 HQ

Board questions — K8 HQ Content API

Board questions operations for K8 HQ Content API. Requests, permissions and responses.

Version 1OpenAPI description (JSON)

Browse operation groups

Before making requests, read the authentication and request requirements.

Ask a board member a structured question on an item, and answer it.

Ask structured questions on board items for one member to answer, and answer them, each answer bound to one revision of its question. See board setup, encryption and synchronization before making requests.

Base URL

Base URLFor
https://api.k8hq.com/v1API tokens and the K8 HQ web app

Endpoints

Board questions

Answer questions on an item

POST/boards/{board}/items/{item}/answers

1 to 20 answers to the item's questions, all or none: each by the question's intended answerer, signed in as a person (never a token: an agent gets no authority to answer for someone), to the question's current revision, with a browser-minted ID and its outcome (answered, or skip or unknown where the question allows them), sealed by the browser (framed meta, body, seal ID <item>|<question>|r<revision>|<answer>). An answer to a revision that isn't current refuses the whole request (412, with those questions as they are now). Answering again supersedes the current answer; sending an answer that is already current (a retry) changes nothing. The item's status never changes. Metered boards.changes per answer.

For the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
answers requiredobject[]

Response body (JSON)

FieldTypeDescription
questions requiredBoardQuestion[]

Responses

StatusBodyMeaning
200JSONThe questions answered, as they are now.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with the same Idempotency-Key is still running (in_progress), or the item or question isn't in the state this needs (conflict: the item is in Trash, the question was withdrawn, an ID is taken).
412application/problem+jsonIf-Match named another version of the question, or an answer named a revision that isn't current (version_mismatch); questions are those questions as they are now. Nothing in the request was applied.
413application/problem+jsonA sealed part is too large (too_large): a question or an answer is at most 16 KB.
422application/problem+jsonThe device's clock is wrong (clock_wrong), or the item has 50 questions or a question 100 answers or 50 revisions (rejected).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

List an item's questions

GET/boards/{board}/items/{item}/questions

Every question on the item, oldest first, each with its current answer (sealed as the browser sent them). Tokens (boards:read, task boards in compatible mode) also get content and answerContent in plaintext, opened by K8 HQ's servers with the board's key: metered boards.decrypted per part opened and api.content.read, and audited (one access.content.read per item read).

For API tokens with boards:read and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).

Response body (JSON)

FieldTypeDescription
questions requiredBoardQuestion[]

Responses

StatusBodyMeaning
200JSONQuestions.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

Ask a question on an item

POST/boards/{board}/items/{item}/questions

A question for one member of the board (answerer) on a task or subitem (not in Trash), with whether it blocks work and the outcomes allowed besides an answer, sealed by the browser as revision 1 (framed meta, body, seal ID <item>|<question>|r1, its body a BoardQuestionContent). Any member may ask; asking again with the same ID and content is a retry. An open blocking question shows on the item as "Needs your input" for its answerer. Metered boards.changes. Tokens (boards:write) send answerer, blocking, allow and content in plaintext and K8 HQ's servers seal it, naming the token in the sealed meta; the response carries the record, never the text.

For API tokens with boards:write and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
allowskip | unknown[]Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No.
answererstring
blockingboolean
contentBoardQuestionContentTokens only: what the question asks.
epochinteger
idstring
objectstring
wdekstring

Response body (JSON)

FieldTypeDescription
allow requiredskip | unknown[]Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No.
answerer requiredstringThe member the question is for: only they can answer it.
answers requiredintegerAnswers ever given, superseded and stale ones included.
askedAt requiredstring
askedBy requiredstringA member (mem_…).
blocking requiredbooleanAn open blocking question holds up work: its item shows "Needs your input" for the answerer (inputNeeded).
bytes requiredinteger
epoch requiredinteger
id requiredstringThe question (qst_…), minted by the browser (or by K8 HQ for a token).
item requiredstring
object requiredstringFramed (meta, body), seal ID <item>|<question>|r<revision>; the meta names the item, question and revision.
revision requiredintegerWhat is asked: a new text, answerer or allowed outcomes is a new revision, and answers are bound to one.
state requiredopen | answered | withdrawn
version requiredintegerThe record's version: If-Match for changing or withdrawing it.
wdek requiredstring
answerBoardAnswer
answerContentBoardAnswerContentTokens only: its current answer, opened by K8 HQ's servers.
answererDepartedbooleanIts 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.
contentBoardQuestionContentTokens only: what it asks, opened by K8 HQ's servers.
revisedAtstring
revisedBystringA member (mem_…).
unreadablebooleanTokens only: a seal didn't open (damaged, or bound to another question or revision).
withdrawnAtstring
withdrawnBystringA member (mem_…).
withdrawnByAdminbooleanWithdrawn by a member holding containers.delete (owners and admins by default), not its asker (withdrawnBy names who).

Responses

StatusBodyMeaning
201BoardQuestionThe question.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with the same Idempotency-Key is still running (in_progress), or the item or question isn't in the state this needs (conflict: the item is in Trash, the question was withdrawn, an ID is taken).
413application/problem+jsonA sealed part is too large (too_large): a question or an answer is at most 16 KB.
422application/problem+jsonThe device's clock is wrong (clock_wrong), or the item has 50 questions or a question 100 answers or 50 revisions (rejected).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

Change a question

PATCH/boards/{board}/items/{item}/questions/{qst}

Its asker only, if the question is still at the version If-Match names. A new answerer, new allow or new content is a new revision: send the content sealed as revision revision + 1. The earlier revision is kept in history, its answer (if any) with it as stale, and the question is open again: an answer to an earlier revision is never reused. blocking alone changes no revision. Metered boards.changes. Tokens send content in plaintext; a token changing only answerer or allow has K8 HQ's servers seal the current content again as the next revision.

For API tokens with boards:write and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).
qst (path) requiredstringQuestion ID (qst_…).
If-Match (header) requiredstringThe question's record version (version).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
allowskip | unknown[]Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No.
answererstring
blockingboolean
contentBoardQuestionContentTokens only: what the question now asks.
epochinteger
objectstring
wdekstring

Response body (JSON)

FieldTypeDescription
allow requiredskip | unknown[]Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No.
answerer requiredstringThe member the question is for: only they can answer it.
answers requiredintegerAnswers ever given, superseded and stale ones included.
askedAt requiredstring
askedBy requiredstringA member (mem_…).
blocking requiredbooleanAn open blocking question holds up work: its item shows "Needs your input" for the answerer (inputNeeded).
bytes requiredinteger
epoch requiredinteger
id requiredstringThe question (qst_…), minted by the browser (or by K8 HQ for a token).
item requiredstring
object requiredstringFramed (meta, body), seal ID <item>|<question>|r<revision>; the meta names the item, question and revision.
revision requiredintegerWhat is asked: a new text, answerer or allowed outcomes is a new revision, and answers are bound to one.
state requiredopen | answered | withdrawn
version requiredintegerThe record's version: If-Match for changing or withdrawing it.
wdek requiredstring
answerBoardAnswer
answerContentBoardAnswerContentTokens only: its current answer, opened by K8 HQ's servers.
answererDepartedbooleanIts 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.
contentBoardQuestionContentTokens only: what it asks, opened by K8 HQ's servers.
revisedAtstring
revisedBystringA member (mem_…).
unreadablebooleanTokens only: a seal didn't open (damaged, or bound to another question or revision).
withdrawnAtstring
withdrawnBystringA member (mem_…).
withdrawnByAdminbooleanWithdrawn by a member holding containers.delete (owners and admins by default), not its asker (withdrawnBy names who).

Responses

StatusBodyMeaning
200BoardQuestionThe question.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with the same Idempotency-Key is still running (in_progress), or the item or question isn't in the state this needs (conflict: the item is in Trash, the question was withdrawn, an ID is taken).
412application/problem+jsonIf-Match named another version of the question, or an answer named a revision that isn't current (version_mismatch); questions are those questions as they are now. Nothing in the request was applied.
413application/problem+jsonA sealed part is too large (too_large): a question or an answer is at most 16 KB.
422application/problem+jsonThe device's clock is wrong (clock_wrong), or the item has 50 questions or a question 100 answers or 50 revisions (rejected).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

A question's history

GET/boards/{board}/items/{item}/questions/{qst}/history

Its earlier revisions, as they were asked, and its earlier answers (superseded, or stale after a new revision), oldest first. The current revision and answer are on the question. Tokens (boards:read, task boards in compatible mode) also get content and answerContent in plaintext, opened by K8 HQ's servers with the board's key: metered boards.decrypted per part opened and api.content.read, and audited (one access.content.read per item read).

For API tokens with boards:read and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).
qst (path) requiredstringQuestion ID (qst_…).

Response body (JSON)

FieldTypeDescription
answers requiredBoardAnswer[]
revisions requiredBoardQuestionRevision[]

Responses

StatusBodyMeaning
200JSONThe history.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

Withdraw a question

POST/boards/{board}/items/{item}/questions/{qst}/withdraw

Its asker (or their member's token), or a person signed in who holds containers.delete (owners and admins by default; not while suspended), so a question whose asker or answerer left the board never holds work up; at the version If-Match names: it no longer holds anything up or takes answers; who withdrew it is kept (withdrawnBy, withdrawnByAdmin), and its answers stay. Metered boards.changes.

For API tokens with boards:write and the web app.

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).
qst (path) requiredstringQuestion ID (qst_…).
If-Match (header) requiredstringThe question's record version (version).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Response body (JSON)

FieldTypeDescription
allow requiredskip | unknown[]Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No.
answerer requiredstringThe member the question is for: only they can answer it.
answers requiredintegerAnswers ever given, superseded and stale ones included.
askedAt requiredstring
askedBy requiredstringA member (mem_…).
blocking requiredbooleanAn open blocking question holds up work: its item shows "Needs your input" for the answerer (inputNeeded).
bytes requiredinteger
epoch requiredinteger
id requiredstringThe question (qst_…), minted by the browser (or by K8 HQ for a token).
item requiredstring
object requiredstringFramed (meta, body), seal ID <item>|<question>|r<revision>; the meta names the item, question and revision.
revision requiredintegerWhat is asked: a new text, answerer or allowed outcomes is a new revision, and answers are bound to one.
state requiredopen | answered | withdrawn
version requiredintegerThe record's version: If-Match for changing or withdrawing it.
wdek requiredstring
answerBoardAnswer
answerContentBoardAnswerContentTokens only: its current answer, opened by K8 HQ's servers.
answererDepartedbooleanIts 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.
contentBoardQuestionContentTokens only: what it asks, opened by K8 HQ's servers.
revisedAtstring
revisedBystringA member (mem_…).
unreadablebooleanTokens only: a seal didn't open (damaged, or bound to another question or revision).
withdrawnAtstring
withdrawnBystringA member (mem_…).
withdrawnByAdminbooleanWithdrawn by a member holding containers.delete (owners and admins by default), not its asker (withdrawnBy names who).

Responses

StatusBodyMeaning
200BoardQuestionThe question.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with the same Idempotency-Key is still running (in_progress), or the item or question isn't in the state this needs (conflict: the item is in Trash, the question was withdrawn, an ID is taken).
412application/problem+jsonIf-Match named another version of the question, or an answer named a revision that isn't current (version_mismatch); questions are those questions as they are now. Nothing in the request was applied.
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).