K8 HQ

Board comments — K8 HQ Content API

Board comments 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.

Read and write comments on board items.

Read and manage comments on board items. 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 comments

List an item's comments

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

Oldest first, 50 a page. Tokens (boards:read, task boards in compatible mode) also get the text in plaintext, opened by K8 HQ's servers with the board's key: metered boards.decrypted per title, description, comment or name set opened, and audited (one access.content.read per token, board and hour for lists and the board, one 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_…).
cursor (query)stringThe nextCursor of the previous page.

Response body (JSON)

FieldTypeDescription
comments requiredBoardComment[]
cursorstring

Responses

StatusBodyMeaning
200JSONComments.
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).

Comment on an item

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

A comment sealed by the browser (framed meta, body, seal ID <item>|<comment>, at most 16 KB), with its browser-minted ID and the members it mentions. Metered boards.comments. Tokens (boards:write, task boards in compatible mode) send plaintext instead and K8 HQ's servers seal it with seal v2 to the board's key, naming the token in the sealed meta; the response carries the record, never the text. A token sends body (Markdown, up to 16 KB) and mentions.

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
bodystringTokens only: the comment's text.
epochinteger
idstring
mentionsstring[]
objectstring
wdekstring

Response body (JSON)

FieldTypeDescription
at requiredstring
by requiredstring
bytes requiredinteger
epoch requiredinteger
id requiredstring
mentions requiredstring[]
object requiredstringFramed (meta, body), seal ID <item>|<comment>.
wdek requiredstring
bodystringTokens only: the comment's text, opened by K8 HQ's servers.
createdAttributionAttributionWhat authorized adding it. Absent on comments from before it was kept.
editedAtstring
unreadablebooleanTokens only: the comment's seal didn't open.
updatedAttributionAttributionWhat authorized its latest edit; absent if never edited since it was kept.

Responses

StatusBodyMeaning
201BoardCommentThe comment.
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 isn't in the state this needs (conflict: in Trash, not in Trash, linked already).
413application/problem+jsonA sealed part is too large (too_large): a title is at most 200 characters, a description 256 KB, a comment 16 KB.
422application/problem+jsonThe device's clock is wrong (clock_wrong), or the item has 2,000 comments (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).

Edit a comment

PUT/boards/{board}/items/{item}/comments/{cmt}

Its author only: re-sealed under a fresh key; the old text isn't kept. Metered boards.comments. Tokens (boards:write, task boards in compatible mode) send plaintext instead and K8 HQ's servers seal it with seal v2 to the board's key, naming the token in the sealed meta; the response carries the record, never the text. A token sends body (Markdown, up to 16 KB) and mentions.

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

Parameters

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

Request body (JSON)

FieldTypeDescription
bodystringTokens only: the comment's text.
epochinteger
idstring
mentionsstring[]
objectstring
wdekstring

Response body (JSON)

FieldTypeDescription
at requiredstring
by requiredstring
bytes requiredinteger
epoch requiredinteger
id requiredstring
mentions requiredstring[]
object requiredstringFramed (meta, body), seal ID <item>|<comment>.
wdek requiredstring
bodystringTokens only: the comment's text, opened by K8 HQ's servers.
createdAttributionAttributionWhat authorized adding it. Absent on comments from before it was kept.
editedAtstring
unreadablebooleanTokens only: the comment's seal didn't open.
updatedAttributionAttributionWhat authorized its latest edit; absent if never edited since it was kept.

Responses

StatusBodyMeaning
200BoardCommentThe comment.
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 isn't in the state this needs (conflict: in Trash, not in Trash, linked already, or the comment is a work claim's recorded reason for a takeover, handoff or release, which can't be edited or deleted).
413application/problem+jsonA sealed part is too large (too_large): a title is at most 200 characters, a description 256 KB, a comment 16 KB.
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).

Delete a comment

DELETE/boards/{board}/items/{item}/comments/{cmt}

Its author only.

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

Parameters

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

Responses

StatusBodyMeaning
204Deleted.
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 isn't in the state this needs (conflict: in Trash, not in Trash, linked already, or the comment is a work claim's recorded reason for a takeover, handoff or release, which can't be edited or deleted).
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).