Board comments — K8 HQ Content API
Board comments operations for K8 HQ Content API. Requests, permissions and responses.
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 URL | For |
|---|---|
https://api.k8hq.com/v1 | API tokens and the K8 HQ web app |
Endpoints
Board comments
List an item's 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
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
cursor (query) | string | The nextCursor of the previous page. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
comments required | BoardComment[] | |
cursor | string |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | Comments. |
| 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). |
Comment on an item
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
| 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 |
|---|---|---|
body | string | Tokens only: the comment's text. |
epoch | integer | |
id | string | |
mentions | string[] | |
object | string | |
wdek | string |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
at required | string | |
by required | string | |
bytes required | integer | |
epoch required | integer | |
id required | string | |
mentions required | string[] | |
object required | string | Framed (meta, body), seal ID <item>|<comment>. |
wdek required | string | |
body | string | Tokens only: the comment's text, opened by K8 HQ's servers. |
createdAttribution | Attribution | What authorized adding it. Absent on comments from before it was kept. |
editedAt | string | |
unreadable | boolean | Tokens only: the comment's seal didn't open. |
updatedAttribution | Attribution | What authorized its latest edit; absent if never edited since it was kept. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 201 | BoardComment | The comment. |
| 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 isn't in the state this needs (conflict: in Trash, not in Trash, linked already). |
| 413 | application/problem+json | A sealed part is too large (too_large): a title is at most 200 characters, a description 256 KB, a comment 16 KB. |
| 422 | application/problem+json | The device's clock is wrong (clock_wrong), or the item has 2,000 comments (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). |
Edit a comment
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
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
cmt (path) required | string | Comment ID (cmt_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
body | string | Tokens only: the comment's text. |
epoch | integer | |
id | string | |
mentions | string[] | |
object | string | |
wdek | string |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
at required | string | |
by required | string | |
bytes required | integer | |
epoch required | integer | |
id required | string | |
mentions required | string[] | |
object required | string | Framed (meta, body), seal ID <item>|<comment>. |
wdek required | string | |
body | string | Tokens only: the comment's text, opened by K8 HQ's servers. |
createdAttribution | Attribution | What authorized adding it. Absent on comments from before it was kept. |
editedAt | string | |
unreadable | boolean | Tokens only: the comment's seal didn't open. |
updatedAttribution | Attribution | What authorized its latest edit; absent if never edited since it was kept. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | BoardComment | The comment. |
| 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 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). |
| 413 | application/problem+json | A sealed part is too large (too_large): a title is at most 200 characters, a description 256 KB, a comment 16 KB. |
| 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). |
Delete a comment
Its author only.
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_…). |
cmt (path) required | string | Comment ID (cmt_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 204 | Deleted. | |
| 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 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). |
| 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). |