K8 HQ

Boards — K8 HQ Setup API

Boards operations for K8 HQ Setup API. Requests, permissions and responses.

Version 1OpenAPI description (JSON)

Browse operation groups

Before making requests, read the authentication and request requirements.

Create task and ticket boards, give and remove access, and remove boards.

Task boards (design note 0021): creating one and who has access. Items, comments and the board's config are in the Content API.

Base URL

Base URLFor
https://api.k8hq.com/setupThe K8 HQ web app, and programs acting with a person's session

Endpoints

Boards

Keep a board

POST/v1/boards/delete/cancel

Keeps a board whose removal hasn't purged it yet: any owner, no passkey (like keeping an inbox). It opens again as it was: its items, links and everyone's access. The owners and its members are told.

For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.

Parameters

NameTypeDescription
x-amz-content-sha256 (header) requiredstringThe body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail).

Request body (JSON)

FieldTypeDescription
boardId requiredstringThe board (brd_...). Pattern: ^brd_.
orgId requiredstringThe organization (org_...). Pattern: ^org_.
{"boardId":"brd_01J...","orgId":"org_01J..."}

Response body (JSON)

FieldTypeDescription
boardId requiredstringThe board (brd_...). Pattern: ^brd_.

Responses

StatusBodyMeaning
200JSONKept.
400application/problem+jsonMalformed or invalid input (invalid).
401application/problem+jsonNo session, it expired, or it isn't a person's own session (unauthenticated).
403application/problem+jsonOnly an owner can (owner_only), or not a member (forbidden).
404application/problem+jsonNo such board in the organization (not_found).
409application/problem+jsonIts purge has started, or it isn't being removed (removal_started).
503application/problem+jsonA temporary problem (unavailable); retry.

Create a task or ticket board

POST/v1/organizations/{orgId}/boards

Creates a task board (design note 0021) with the person as its first member, or, with inboxId, a ticket board linked to that inbox (step B): the inbox's mail opens and joins its tickets, and its members are the inbox's (it has no members of its own). The person must be able to edit the inbox; one ticket board an inbox, never a member's personal notice inbox or the inbox that collects DMARC reports (reports about mail sent from your domains). A ticket board's statuses also need an active and a closed one; without statuses it gets New, Open, Waiting on customer, Solved and Closed by category. Statuses are IDs and categories (todo, active, waiting, done, closed; at least one todo and one done; at most 20); their names are sealed by the browser into the board's config next (PUT /api/v1/boards/{board}/config, If-Match 0). Without statuses the board gets To do, In progress, Waiting and Done by category. Needs boards.create; at most 200 boards an organization. Refused while the organization is read-only (out of credit for 60 days).

Personal agent contract (conditional). Create only a task board, with initial creator access. Ticket inbox links, caller-chosen IDs, keys and sealed configuration are not accepted. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.createBoardResource.task. Permissions: boards.create. Unattended-risk acknowledgment: required. Receipt: atomic-task-board-create-v1. Status fields: id, action, state, resources.organizationId, resources.boardId. Agent input: AgentTaskBoardInput. Agent result: AgentBoardResult.

For a person's own session (x-k8hq-token), or personal agent credentials (Authorization: Bearer) when enabled. The session needs a recent passkey: if its last passkey confirmation is more than 5 minutes old, the answer is 401 step_up_required.

Parameters

NameTypeDescription
x-amz-content-sha256 (header) requiredstringThe body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail).
orgId (path) requiredstringOrganization ID.
Idempotency-Key (header)stringRequired for personal agent credentials: 16 to 128 visible ASCII characters. A session does not need this header. Keep the exact key and input when retrying after an unknown reply.

Request body (JSON)

FieldTypeDescription
Alternative 1SessionCreateBoardResourceInputSessionCreateBoardResourceInput
Alternative 2AgentTaskBoardInputAgentTaskBoardInput

Response body (JSON)

FieldTypeDescription
Alternative 1SessionCreateBoardResourceResultSessionCreateBoardResourceResult
Alternative 2AgentBoardResultAgentBoardResult

Responses

StatusBodyMeaning
200JSONThe new board.
400application/problem+jsonMalformed or invalid input (invalid).
401application/problem+jsonNo session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required).
402application/problem+jsonThe organization is read-only (read_only, design note 0024): nothing can be added until an owner adds credit.
403application/problem+jsonThey may not do this in the organization, or a browser origin other than the web app's (forbidden).
404application/problem+jsonThe organization is outside this connection, or the target does not exist.
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe inbox can't have a ticket board (ticket_inbox): it has one or isn't one of the organization's shared inboxes.
503application/problem+jsonA temporary problem (unavailable); retry.

List board removals

GET/v1/organizations/{orgId}/boards/removals

The organization's boards waiting for their purge, which an owner can still keep; for members with containers.delete (owners and admins).

For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.

Parameters

NameTypeDescription
orgId (path) requiredstringorgId resource identifier.

Response body (JSON)

FieldTypeDescription
removals requiredobject[]

Responses

StatusBodyMeaning
200JSONWaiting removals.
400application/problem+jsonMalformed or invalid input (invalid).
401application/problem+jsonNo session, it expired, or it isn't a person's own session (unauthenticated).
403application/problem+jsonThey may not do this in the organization, or a browser origin other than the web app's (forbidden).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
503application/problem+jsonA temporary problem (unavailable); retry.

Remove a board

DELETE/v1/organizations/{orgId}/boards/{boardId}

Removes a task board, for members with containers.delete (owners and admins), typing its name to confirm. It's closed at once: nobody can open it and no change lands in it. Its content (items, their versions, comments and history, its links, settings, keys and everyone's access) is deleted for good at purgeAt, 7 days later, or within minutes if it holds no item; until then any owner can keep it (Keep a board). Links to its items from other boards go with it. The owners and its members are told, and the owners are reminded daily until then. Copies of deleted content in backups can't be read and are gone after about 6 weeks. An organization removes at most 10 inboxes, boards and domains a day (removal_limit). Bound to the action by per-action confirmation (board.delete) once that exists; a recent passkey until then.

Needs a passkey confirmation of this change (x-k8hq-confirm: container.delete). Until confirmations are enforced, a passkey sign-in in the last five minutes also works.

Personal agent contract (conditional). Schedule removal of the exact board. The committed receipt is scheduling acceptance, not current pending state or purge completion. The system continues after app disconnection; the existing human cancellation path remains available during the grace period. Required header: Idempotency-Key (16 to 128 visible ASCII characters). Success returns operation-id; keep the same key and input to retry. Current access is checked again on every retry. The service requires explicit operator activation. Action setup.deleteBoardResource. Permissions: containers.delete. Unattended-risk acknowledgment: required. Receipt: task-board-removal-v1. Status fields: id, action, state, resources.boardId. Agent input: AgentConfirmationInput. Agent result: AgentRemovalReceipt.

For a person's own session (x-k8hq-token), or personal agent credentials (Authorization: Bearer) when enabled.

Parameters

NameTypeDescription
x-amz-content-sha256 (header) requiredstringThe body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail).
orgId (path) requiredstringorgId resource identifier.
boardId (path) requiredstringboardId resource identifier.
x-k8hq-delete-confirm (header)stringExact typed confirmation, UTF-8 percent-encoded (encodeURIComponent), decoded once; maximum 4096 encoded bytes. Use a bodyless DELETE. Input metadata, not authorization. Do not combine deletion headers with any body. JSON bodies remain supported for direct requests.
Idempotency-Key (header)stringRequired for personal agent credentials: 16 to 128 visible ASCII characters. A session does not need this header. Keep the exact key and input when retrying after an unknown reply.

Request body (JSON)

FieldTypeDescription
Alternative 1SessionDeleteBoardResourceInputSessionDeleteBoardResourceInput
Alternative 2AgentConfirmationInputAgentConfirmationInput
{"confirm":"Development"}

Response body (JSON)

FieldTypeDescription
Alternative 1SessionDeleteBoardResourceResultSessionDeleteBoardResourceResult
Alternative 2AgentRemovalReceiptAgentRemovalReceipt

Responses

StatusBodyMeaning
200JSONClosed; its purge is scheduled.
400application/problem+jsonThe typed confirmation doesn't match (confirm_name), or invalid input (invalid).
401application/problem+jsonNo session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required).
403application/problem+jsonThey may not do this in the organization, or a browser origin other than the web app's (forbidden).
404application/problem+jsonNo such board in the organization (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonAn item was added to the empty board meanwhile, so its removal needs the 7-day wait: ask again (board_changed).
410application/problem+jsonThe organization is being deleted (org_closed).
429application/problem+jsonThe organization removed 10 inboxes, boards and domains today (removal_limit).
503application/problem+jsonA temporary problem (unavailable); retry.

Give someone access to a board

PUT/v1/organizations/{orgId}/boards/{boardId}/members/{memberId}

Gives a member of the organization access to a task board. Needs access.grant, and the caller on the board.

Needs a passkey confirmation of this change (x-k8hq-confirm: access.grant). Until confirmations are enforced, a passkey sign-in in the last five minutes also works. Optional role is owner (full access, the default) or comment (Can view and comment). An explicit role replaces existing access; omitting it does not widen limited access. Can view and comment members cannot change board access even with access.grant. Each change records access.board.granted with the role in the event and audit log.

For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.

Parameters

NameTypeDescription
x-amz-content-sha256 (header) requiredstringThe body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail).
orgId (path) requiredstringorgId resource identifier.
boardId (path) requiredstringboardId resource identifier.
memberId (path) requiredstringmemberId resource identifier.

Request body (JSON)

FieldTypeDescription
roleowner | comment

Responses

StatusBodyMeaning
200JSONDone (also when they had access already).
400application/problem+jsonMalformed or invalid input (invalid).
401application/problem+jsonNo session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required).
403application/problem+jsonThey may not do this in the organization, or a browser origin other than the web app's (forbidden).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonA ticket board's members are its inbox's (ticket_members): give or remove access to the inbox instead.
503application/problem+jsonA temporary problem (unavailable); retry.

Remove someone's access to a board

DELETE/v1/organizations/{orgId}/boards/{boardId}/members/{memberId}

Removes someone's access to a task board and the board's key copies for them; what they already decrypted stays readable to them (the key isn't rotated). Removing someone else requires access.grant and permission to change the board. Members who can comment or make changes can leave on their own. A board must keep at least one member who can make changes.

For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused. The session needs a recent passkey: if its last passkey confirmation is more than 5 minutes old, the answer is 401 step_up_required.

Parameters

NameTypeDescription
x-amz-content-sha256 (header) requiredstringThe body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail).
orgId (path) requiredstringorgId resource identifier.
boardId (path) requiredstringboardId resource identifier.
memberId (path) requiredstringmemberId resource identifier.

Responses

StatusBodyMeaning
200JSONDone (also when they had no access).
400application/problem+jsonMalformed or invalid input (invalid).
401application/problem+jsonNo session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required).
403application/problem+jsonThey may not do this in the organization, or a browser origin other than the web app's (forbidden).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonTicket boards use inbox access (ticket_members). Give or remove access to the inbox instead. The request also fails if access changed during the request (conflict) or if leaving would now remove the last member who can make changes (last_holder).
503application/problem+jsonA temporary problem (unavailable); retry.