Board questions — K8 HQ Content API
Board questions operations for K8 HQ Content API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
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 URL | For |
https://api.k8hq.com/v1 | API 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
answers required | object[] | |
Response body (JSON)
| Field | Type | Description |
questions required | BoardQuestion[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The questions answered, as they are now. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The 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. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A 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). |
| 412 | application/problem+json | If-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. |
| 413 | application/problem+json | A sealed part is too large (too_large): a question or an answer is at most 16 KB. |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the item has 50 questions or a question 100 answers or 50 revisions (rejected). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Response body (JSON)
| Field | Type | Description |
questions required | BoardQuestion[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Questions. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
allow | skip | unknown[] | Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No. |
answerer | string | |
blocking | boolean | |
content | BoardQuestionContent | Tokens only: what the question asks. |
epoch | integer | |
id | string | |
object | string | |
wdek | string | |
Response body (JSON)
| 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). |
Responses
| Status | Body | Meaning |
| 201 | BoardQuestion | The question. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The 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. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A 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). |
| 413 | application/problem+json | A sealed part is too large (too_large): a question or an answer is at most 16 KB. |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the item has 50 questions or a question 100 answers or 50 revisions (rejected). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
qst (path) required | string | Question ID (qst_…). |
If-Match (header) required | string | The question's record version (version). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
allow | skip | unknown[] | Outcomes allowed besides an answer: skip and unknown ("I don't know"). Each is explicit; an unanswered question is never No. |
answerer | string | |
blocking | boolean | |
content | BoardQuestionContent | Tokens only: what the question now asks. |
epoch | integer | |
object | string | |
wdek | string | |
Response body (JSON)
| 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). |
Responses
| Status | Body | Meaning |
| 200 | BoardQuestion | The question. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The 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. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A 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). |
| 412 | application/problem+json | If-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. |
| 413 | application/problem+json | A sealed part is too large (too_large): a question or an answer is at most 16 KB. |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the item has 50 questions or a question 100 answers or 50 revisions (rejected). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
qst (path) required | string | Question ID (qst_…). |
Response body (JSON)
| Field | Type | Description |
answers required | BoardAnswer[] | |
revisions required | BoardQuestionRevision[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The history. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary 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
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
qst (path) required | string | Question ID (qst_…). |
If-Match (header) required | string | The question's record version (version). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| 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). |
Responses
| Status | Body | Meaning |
| 200 | BoardQuestion | The question. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The 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. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A 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). |
| 412 | application/problem+json | If-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. |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too 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. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |