K8 HQ

Board claims — K8 HQ Content API

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

Say who is working on a task: claim, check in, release, take over or hand off.

Coordinate who is working on a task: a session's explicit work claim, apart from status and assignees. 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 claims

List a board's held claims

GET/boards/{board}/claims

Held claims, 500 a page, with their holders, check-ins and checkpoints; attention=true lists only those needing attention. No titles or other sealed text. 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.
attention (query)true | falsetrue: only claims needing attention.

Response body (JSON)

FieldTypeDescription
claims requiredBoardClaim[]
cursorstring

Responses

StatusBodyMeaning
200JSONHeld claims.
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 item's claim

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

The item's work claim (state none if it was never claimed). Reading, inspecting or reviewing an item needs no claim.

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

Parameters

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).

Response body (JSON)

FieldTypeDescription
attention requiredbooleanPotentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own.
item requiredstring
state requirednone | active | waiting | releasednone: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held.
version requiredinteger
checkpointstring
claimstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
claimedAtstring
holderBoardClaimHolder
previousBoardClaimEnd
requestBoardTakeoverRequest
seenAtstringThe holder's last check-in.
waitingSincestring
waitingUntilstringWhen a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention.

Responses

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

Claim an item

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

Claims a task or subitem for this session, atomically: of concurrent claimers exactly one holds it. A claim is apart from status and assignees, reserves none of a parent's subitems, and grants nothing beyond the caller's board access. The same session again (the same token or sign-in and secret, such as a retry whose answer was lost) gets the claim as it is. Not in Trash. Metered as a board change.

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
secret requiredstringThe claim secret: at least 32 random bytes the client made and keeps, base64url without padding. It identifies this session together with the request's token or sign-in; only its SHA-256 is stored, and no response carries it. Send the same secret on retries.
checkpointstringA branch, worktree or commit reference (letters, digits and . _ / @ + : -), never free text.

Response body (JSON)

FieldTypeDescription
attention requiredbooleanPotentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own.
item requiredstring
state requirednone | active | waiting | releasednone: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held.
version requiredinteger
checkpointstring
claimstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
claimedAtstring
holderBoardClaimHolder
previousBoardClaimEnd
requestBoardTakeoverRequest
seenAtstringThe holder's last check-in.
waitingSincestring
waitingUntilstringWhen a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention.

Responses

StatusBodyMeaning
200BoardClaimThe claim, held by this session.
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), another session holds the claim (claimed), or the item is in Trash (conflict).
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).

Check in on a claim

POST/boards/{board}/items/{item}/claim/check-in

The holding session's heartbeat, every 5 minutes while it works; also how an agent confirms it still holds the claim before resuming edits, committing or publishing (a board claim can't fence local Git or file edits). waiting says whether it's waiting for someone's input, and waitingDays for how many days (default 1; the claim's waitingUntil is then that many days from this check-in, and past it unrenewed the claim needs attention); checkpoint replaces the reference ("" clears it). It answers the claim, with any pending takeover request. Metered as a board change.

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
claim requiredstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
secret requiredstringThe claim secret: at least 32 random bytes the client made and keeps, base64url without padding. It identifies this session together with the request's token or sign-in; only its SHA-256 is stored, and no response carries it. Send the same secret on retries.
checkpointstringA branch, worktree or commit reference (letters, digits and . _ / @ + : -), never free text.
waitingbooleantrue: waiting for someone's input (renews the wait's end); false: working again.
waitingDaysintegerWith waiting true: for how many whole days from now the wait is expected to last (default 1; no upper limit, though the end is stored no later than 9999-12-31T23:59:59Z).

Response body (JSON)

FieldTypeDescription
attention requiredbooleanPotentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own.
item requiredstring
state requirednone | active | waiting | releasednone: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held.
version requiredinteger
checkpointstring
claimstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
claimedAtstring
holderBoardClaimHolder
previousBoardClaimEnd
requestBoardTakeoverRequest
seenAtstringThe holder's last check-in.
waitingSincestring
waitingUntilstringWhen a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention.

Responses

StatusBodyMeaning
200BoardClaimThe claim.
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 claim is no longer held (claim_lost): released, taken over or handed off. Stop and read the claim; an old claim never revives.
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).

Hand off or decline

POST/boards/{board}/items/{item}/claim/handoff

The holding session answers a pending takeover request, naming its comment: accept true hands the claim to the requesting session (a new claim ID; the checkpoint carries over), false declines the request and keeps the claim. A retry of an answer that landed answers the claim as it is. Metered as a board change.

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
accept requiredbooleantrue hands the claim to the requesting session; false declines and keeps it.
claim requiredstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
comment requiredstringThe pending request's comment (cmt_), as read on the claim: only that request is answered.
secret requiredstringThe claim secret: at least 32 random bytes the client made and keeps, base64url without padding. It identifies this session together with the request's token or sign-in; only its SHA-256 is stored, and no response carries it. Send the same secret on retries.

Response body (JSON)

FieldTypeDescription
attention requiredbooleanPotentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own.
item requiredstring
state requirednone | active | waiting | releasednone: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held.
version requiredinteger
checkpointstring
claimstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
claimedAtstring
holderBoardClaimHolder
previousBoardClaimEnd
requestBoardTakeoverRequest
seenAtstringThe holder's last check-in.
waitingSincestring
waitingUntilstringWhen a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention.

Responses

StatusBodyMeaning
200BoardClaimThe claim.
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), the claim is no longer held (claim_lost), or a different request is pending (conflict).
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).

Release a claim

POST/boards/{board}/items/{item}/claim/release

Ends a claim explicitly: by its own session (with its secret), or with force by a person signed in to K8 HQ (not a token). Any person on the board may force a claim that needs attention; one that doesn't (active, or waiting within its expected end) only a member holding containers.delete (owners and admins by default; not while suspended) may force, with comment required, else 403 claim_active. comment names a comment the caller wrote on the item giving the reason (its text stays sealed). A retry of a release that landed answers the claim as it is. Metered as a board change. A claim made by pickup may also move its task back to To do (see pickUpBoardItem).

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
claim requiredstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
commentstringA comment (cmt_) the caller wrote on the item giving the reason. Once recorded, it can't be edited or deleted.
forcebooleanA person (not a token) releases another session's claim; no secret is needed then. Without attention on the claim, members holding containers.delete only (owners and admins by default), with a comment.
secretstringThe claim secret: at least 32 random bytes the client made and keeps, base64url without padding. It identifies this session together with the request's token or sign-in; only its SHA-256 is stored, and no response carries it. Send the same secret on retries.

Response body (JSON)

FieldTypeDescription
attention requiredbooleanPotentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own.
item requiredstring
state requirednone | active | waiting | releasednone: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held.
version requiredinteger
checkpointstring
claimstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
claimedAtstring
holderBoardClaimHolder
previousBoardClaimEnd
requestBoardTakeoverRequest
seenAtstringThe holder's last check-in.
waitingSincestring
waitingUntilstringWhen a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention.

Responses

StatusBodyMeaning
200BoardClaimThe claim, released.
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 named claim is no longer held (claim_lost).
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).

Resume work on a claim

POST/boards/{board}/items/{item}/claim/resume

The holding session goes back to work after a pause (waiting for input, or for a provider connection the task needs), only if the work is eligible now: the claim is still this session's; the task isn't done, in Trash or on hold, nor its parent; every connection it needs is available and this session may still use each (an explicit authorization naming its member signed in, or its token with connections:use); and for a claim pickup made, its Ready for agent authorization is current, whoever authorized it still may, it has an owner on the board and no task blocking it is unfinished. Then it's a check-in marking the claim working. A refusal changes nothing: the claim, its checkpoint and the task's owner stay as they were, so ask again later (a check-in keeps the claim meanwhile). Nothing resumes on its own, and no other connection or person's credential is used instead. Metered as a board change.

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
claim requiredstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
secret requiredstringThe claim secret: at least 32 random bytes the client made and keeps, base64url without padding. It identifies this session together with the request's token or sign-in; only its SHA-256 is stored, and no response carries it. Send the same secret on retries.

Response body (JSON)

FieldTypeDescription
attention requiredbooleanPotentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own.
item requiredstring
state requirednone | active | waiting | releasednone: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held.
version requiredinteger
checkpointstring
claimstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
claimedAtstring
holderBoardClaimHolder
previousBoardClaimEnd
requestBoardTakeoverRequest
seenAtstringThe holder's last check-in.
waitingSincestring
waitingUntilstringWhen a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention.

Responses

StatusBodyMeaning
200BoardClaimThe claim.
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+jsonNot allowed (forbidden, scope_missing), the claim is another session's (not_holder), or this session isn't authorized to use a provider connection the task needs (connection_not_authorized: connections lists their IDs).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with the same Idempotency-Key is still running (in_progress), the claim is no longer held (claim_lost), a claim pickup made has no current authorization (not_ready), the task or its parent is on hold (on_hold), it has no owner on the board (owner_required), a task blocking it isn't done (blocked: blockers lists them), a provider connection it needs isn't available (connection_unavailable: connections lists which and how each comes back), or it's done or in Trash (conflict). The claim stays this session's.
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).

Take over a claim

POST/boards/{board}/items/{item}/claim/takeover

Asks to take over another session's claim, with a reason: comment names a comment the caller wrote on the item (its text stays sealed). A claim needing attention (quiet for 15 minutes, or waiting past its waitingUntil) passes to this session at once (200). An active claim, or a waiting one within its expected end, isn't forced: the request waits for its holder to hand off or decline (202), and its holder sees it on its next check-in. Either way the claim's ID changes, so the old holder's check-ins fail with claim_lost, and previous keeps who held it, who took it, why and the last checkpoint. Retrying with the same secret is safe. Metered as a board change.

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
claim requiredstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
comment requiredstringA comment (cmt_) the caller wrote on the item giving the reason. Once recorded, it can't be edited or deleted.
secret requiredstringThe claim secret: at least 32 random bytes the client made and keeps, base64url without padding. It identifies this session together with the request's token or sign-in; only its SHA-256 is stored, and no response carries it. Send the same secret on retries.
checkpointstringA branch, worktree or commit reference (letters, digits and . _ / @ + : -), never free text.

Response body (JSON)

FieldTypeDescription
attention requiredbooleanPotentially abandoned: active but not checked in for 15 minutes, or waiting past waitingUntil. It stays held until it's released or taken over; nothing releases it on its own.
item requiredstring
state requirednone | active | waiting | releasednone: never claimed; active: held and working; waiting: held, waiting for someone's input until waitingUntil; released: not held.
version requiredinteger
checkpointstring
claimstringThe claim's ID (clm_) as last read: it changes whenever the holder changes, so a request naming an old one fails with claim_lost.
claimedAtstring
holderBoardClaimHolder
previousBoardClaimEnd
requestBoardTakeoverRequest
seenAtstringThe holder's last check-in.
waitingSincestring
waitingUntilstringWhen a waiting claim's wait is expected to end. Past it without a renewing check-in, the claim needs attention.

Responses

StatusBodyMeaning
200BoardClaimThe claim, now held by this session.
202BoardClaimThe claim, with this session's pending request.
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), the claim changed since it was read (claim_lost), it isn't held (conflict: claim it instead), or another session's request is pending (conflict).
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).