Board intake — K8 HQ Content API
Board intake operations for K8 HQ Content API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
Before making requests, read the authentication and request requirements.
Bring issues from chosen external repositories onto a task board, and keep them in sync.
External issue intake (board item #186): issues from repositories someone chose, projected on a task board with explicit links to tasks. The discussion stays on the provider; nothing here authorizes agents.
Base URL
| Base URL | For |
https://api.k8hq.com/v1 | API tokens and the K8 HQ web app |
Endpoints
Board intake
List a board's external issues
GET/boards/{board}/intake
External issues projected on the task board from its intake sources, 500 read a page (a page may hold fewer once filtered). view: pending (the default: open, matching its source, not triaged and not linked), linked, deferred, dismissed or all. A person's browser opens each title (title); a token gets titleText, metered as boards.decrypted. Counts toward boards.listed.
For API tokens with boards:read and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
cursor (query) | string | The nextCursor of the previous page. |
view (query) | pending | linked | deferred | dismissed | all | Which issues. |
Response body (JSON)
| Field | Type | Description |
issues required | IntakeIssue[] | |
cursor | string | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The issues. |
| 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). |
Read an external issue
GET/boards/{board}/intake/issues/{issue}
One external issue on the task board. For anyone on the board.
For API tokens with boards:read and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
issue (path) required | string | External issue ID on the board (xis_…). |
Response body (JSON)
| 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. |
Responses
| Status | Body | Meaning |
| 200 | IntakeIssue | The issue. |
| 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). |
Read a board's intake settings
GET/boards/{board}/intake/settings
Whether its sources sync in the background. For anyone on the board.
For API tokens with boards:read and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Response body (JSON)
| 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 | |
Responses
| Status | Body | Meaning |
| 200 | IntakeSettings | The settings. |
| 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). |
Turn background intake sync on or off
PUT/boards/{board}/intake/settings
Background sync reads each source under its standing authorization (the member who added or last authorized it), rechecked before every read: board access, the use authorization on the connection, the connection on, a usable credential. A failed check pauses the source with its reason; nothing falls back to K8 HQ's own identity, and nothing is published or created. For a person signed in holding boards.intake.manage.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
background required | boolean | |
version required | integer | |
Response body (JSON)
| 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 | |
Responses
| Status | Body | Meaning |
| 200 | IntakeSettings | The settings. |
| 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). |
| 412 | application/problem+json | The settings changed since that version (version_mismatch). |
| 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 a board's intake sources
GET/boards/{board}/intake/sources
The repositories (and filters) feeding the task board's intake. For anyone on the board.
For API tokens with boards:read and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Response body (JSON)
| Field | Type | Description |
sources required | IntakeSource[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The sources. |
| 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). |
Add an intake source
POST/boards/{board}/intake/sources
Chooses one of a connection's repositories to feed the task board's intake: its open issues carrying every one of labels, or, with all: true, every open issue (never the default). Nothing is read until someone syncs it. For a person signed in holding boards.intake.manage on the board who may use the connection (connection_not_authorized otherwise); the repository must be readable through it now. One source per repository on a board: the same request again answers it (200); a different one for the same repository is a conflict.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
connection required | string | pcn_ |
repository required | string | The provider's repository ID (one of the connection's). |
all | boolean | |
labels | string[] | |
Response body (JSON)
| 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 | |
Responses
| Status | Body | Meaning |
| 200 | IntakeSource | The source, already there. |
| 201 | IntakeSource | The source. |
| 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 | The repository is already a source with other settings, the connection isn't available (connection_unavailable), it can't read the repository's issues, or a request with the same Idempotency-Key is still running (in_progress). |
| 422 | application/problem+json | The board has its 20 sources (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). |
Remove an intake source
DELETE/boards/{board}/intake/sources/{source}
Stops reading the repository's issues. Issues already on the board and their links to tasks stay. For a person signed in holding boards.intake.manage on the board.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
source (path) required | string | Intake source ID (xsr_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Responses
| Status | Body | Meaning |
| 204 | | Removed. |
| 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). |
| 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). |
Authorize a source's background sync
POST/boards/{board}/intake/sources/{source}/authorize
Makes the caller the source's standing authorization and clears its pause and backoff: for a person signed in holding boards.intake.manage who may use the source's connection now (connection_not_authorized otherwise).
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
source (path) required | string | Intake source ID (xsr_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| 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 | |
Responses
| Status | Body | Meaning |
| 200 | IntakeSource | The source. |
| 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 | The connection isn't available (connection_unavailable) or can't read the repository, or a request with the same Idempotency-Key is still running (in_progress). |
| 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). |
Sync an intake source
POST/boards/{board}/intake/sources/{source}/sync
Reads the repository's current state through the source's connection: each matching open issue is projected once (by the provider's stable ID), and issues no longer listed are read again (closed, relabelled, transferred or deleted). Running it again changes nothing the provider didn't; an older read never overwrites a newer one. Webhook deliveries only mark the source as noticed (noticedAt). For anyone who may change the board and may use the source's connection now (a token: boards:write and connections:use, with its own authorization). It authorizes no agent work.
For API tokens with boards:write and the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
source (path) required | string | Intake source ID (xsr_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
added required | integer | |
more required | boolean | There's more to read: sync again. |
source required | string | |
unchanged required | integer | |
updated required | integer | |
Responses
| Status | Body | Meaning |
| 200 | JSON | What it did. |
| 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 | The connection isn't available (connection_unavailable), can't read the repository's issues, or a request with the same Idempotency-Key is still running (in_progress). |
| 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). |