K8 HQ

Board intake — K8 HQ Content API

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

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 URLFor
https://api.k8hq.com/v1API 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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
cursor (query)stringThe nextCursor of the previous page.
view (query)pending | linked | deferred | dismissed | allWhich issues.

Response body (JSON)

FieldTypeDescription
issues requiredIntakeIssue[]
cursorstring

Responses

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

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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
issue (path) requiredstringExternal issue ID on the board (xis_…).

Response body (JSON)

FieldTypeDescription
account requiredstring
board requiredstring
firstSeenAt requiredstring
id requiredstringxis_
issue requiredstringThe provider's stable issue ID (not its number, which a transfer changes).
items requiredstring[]The tasks linked to it (itm_).
matches requiredbooleanIt carried its source's labels when last read.
number requiredinteger
provider requiredstring
providerUpdatedAt requiredstringWhen the provider last changed it, as last read.
repository requiredstring
repositoryName requiredstring
schemaVersion requiredinteger
source requiredstringThe intake source that last read it (xsr_).
state requiredopen | closed | goneAs last read; gone: deleted, transferred or no longer readable through the connection.
syncedAt requiredstring
title requiredobjectThe title sealed with seal v2 to the board's epoch key: one part, title, seal ID <xis>|title|v<n>.
triage requirednew | deferred | dismissed
url requiredstring
version requiredinteger
titleTextstringFor a token: the title, opened by the cell.
triagedAtstring
triagedBystring
unreadablebooleanFor a token: the title couldn't be opened.

Responses

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

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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).

Response body (JSON)

FieldTypeDescription
background requiredbooleanIts sources sync in the background (off by default), each under its standing authorization.
schemaVersion requiredinteger
version requiredinteger
setAtstring
setBystring

Responses

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

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

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

Request body (JSON)

FieldTypeDescription
background requiredboolean
version requiredinteger

Response body (JSON)

FieldTypeDescription
background requiredbooleanIts sources sync in the background (off by default), each under its standing authorization.
schemaVersion requiredinteger
version requiredinteger
setAtstring
setBystring

Responses

StatusBodyMeaning
200IntakeSettingsThe settings.
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).
412application/problem+jsonThe settings changed since that version (version_mismatch).
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 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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).

Response body (JSON)

FieldTypeDescription
sources requiredIntakeSource[]

Responses

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

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

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

Request body (JSON)

FieldTypeDescription
connection requiredstringpcn_
repository requiredstringThe provider's repository ID (one of the connection's).
allboolean
labelsstring[]

Response body (JSON)

FieldTypeDescription
account requiredstringThe provider's stable ID of the account the repository is on.
all requiredbooleanEvery open issue, chosen explicitly instead of labels.
board requiredstring
connection requiredstringThe connection it reads through (pcn_).
createdAt requiredstring
createdBy requiredstring
id requiredstringxsr_
labels requiredstring[]Labels every issue must carry.
provider requiredstringThe provider's kind (github).
repository requiredstringThe provider's stable repository ID.
repositoryName requiredstringIts name as last read (owner/name).
schemaVersion requiredinteger
authorizedBystringThe member whose standing authorization background sync reads under, rechecked before every read.
failuresinteger
noticedAtstringThe provider said something changed after the last sync: sync to read it.
pausedstringWhy 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.
pausedAtstring
pollAfterstringNot read before this (a rate limit's reset, or a failing provider's backoff).
syncedAtstring
syncedBystring
urlstring

Responses

StatusBodyMeaning
200IntakeSourceThe source, already there.
201IntakeSourceThe source.
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+jsonThe 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).
422application/problem+jsonThe board has its 20 sources (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).

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

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

Responses

StatusBodyMeaning
204Removed.
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).
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).

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

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

Response body (JSON)

FieldTypeDescription
account requiredstringThe provider's stable ID of the account the repository is on.
all requiredbooleanEvery open issue, chosen explicitly instead of labels.
board requiredstring
connection requiredstringThe connection it reads through (pcn_).
createdAt requiredstring
createdBy requiredstring
id requiredstringxsr_
labels requiredstring[]Labels every issue must carry.
provider requiredstringThe provider's kind (github).
repository requiredstringThe provider's stable repository ID.
repositoryName requiredstringIts name as last read (owner/name).
schemaVersion requiredinteger
authorizedBystringThe member whose standing authorization background sync reads under, rechecked before every read.
failuresinteger
noticedAtstringThe provider said something changed after the last sync: sync to read it.
pausedstringWhy 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.
pausedAtstring
pollAfterstringNot read before this (a rate limit's reset, or a failing provider's backoff).
syncedAtstring
syncedBystring
urlstring

Responses

StatusBodyMeaning
200IntakeSourceThe source.
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+jsonThe 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).
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).

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

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

Response body (JSON)

FieldTypeDescription
added requiredinteger
more requiredbooleanThere's more to read: sync again.
source requiredstring
unchanged requiredinteger
updated requiredinteger

Responses

StatusBodyMeaning
200JSONWhat it did.
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+jsonThe 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).
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).