Boards — K8 HQ Setup API
Boards operations for K8 HQ Setup API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
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 URL | For |
https://api.k8hq.com/setup | The 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
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The 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)
| Field | Type | Description |
boardId required | string | The board (brd_...). Pattern: ^brd_. |
orgId required | string | The organization (org_...). Pattern: ^org_. |
{"boardId":"brd_01J...","orgId":"org_01J..."}
Response body (JSON)
| Field | Type | Description |
boardId required | string | The board (brd_...). Pattern: ^brd_. |
Responses
| Status | Body | Meaning |
| 200 | JSON | Kept. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session, it expired, or it isn't a person's own session (unauthenticated). |
| 403 | application/problem+json | Only an owner can (owner_only), or not a member (forbidden). |
| 404 | application/problem+json | No such board in the organization (not_found). |
| 409 | application/problem+json | Its purge has started, or it isn't being removed (removal_started). |
| 503 | application/problem+json | A 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
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The 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) required | string | Organization ID. |
Idempotency-Key (header) | string | Required 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)
Response body (JSON)
Responses
| Status | Body | Meaning |
| 200 | JSON | The new board. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No 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). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): nothing can be added until an owner adds credit. |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 404 | application/problem+json | The organization is outside this connection, or the target does not exist. |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The inbox can't have a ticket board (ticket_inbox): it has one or isn't one of the organization's shared inboxes. |
| 503 | application/problem+json | A 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
| Name | Type | Description |
orgId (path) required | string | orgId resource identifier. |
Response body (JSON)
| Field | Type | Description |
removals required | object[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Waiting removals. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session, it expired, or it isn't a person's own session (unauthenticated). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 503 | application/problem+json | A 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
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The 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) required | string | orgId resource identifier. |
boardId (path) required | string | boardId resource identifier. |
x-k8hq-delete-confirm (header) | string | Exact 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) | string | Required 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)
{"confirm":"Development"}
Response body (JSON)
Responses
| Status | Body | Meaning |
| 200 | JSON | Closed; its purge is scheduled. |
| 400 | application/problem+json | The typed confirmation doesn't match (confirm_name), or invalid input (invalid). |
| 401 | application/problem+json | No 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). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 404 | application/problem+json | No such board in the organization (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | An item was added to the empty board meanwhile, so its removal needs the 7-day wait: ask again (board_changed). |
| 410 | application/problem+json | The organization is being deleted (org_closed). |
| 429 | application/problem+json | The organization removed 10 inboxes, boards and domains today (removal_limit). |
| 503 | application/problem+json | A 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
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The 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) required | string | orgId resource identifier. |
boardId (path) required | string | boardId resource identifier. |
memberId (path) required | string | memberId resource identifier. |
Request body (JSON)
| Field | Type | Description |
role | owner | comment | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Done (also when they had access already). |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No 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). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | A ticket board's members are its inbox's (ticket_members): give or remove access to the inbox instead. |
| 503 | application/problem+json | A 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
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The 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) required | string | orgId resource identifier. |
boardId (path) required | string | boardId resource identifier. |
memberId (path) required | string | memberId resource identifier. |
Responses
| Status | Body | Meaning |
| 200 | JSON | Done (also when they had no access). |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No 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). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | Ticket 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). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |