K8 HQ

K8 HQ Content API

Read and send messages, and read and publish events, in the K8 HQ containers you have access to.

Version 1OpenAPI description (JSON)

Operation groups

Containers

List every container you may use, of every kind, with your role in it.

1 operation

Inboxes

List and read your inboxes, rename them and change their settings, and get the keys to open their mail.

6 operations

Messages

List, search and read messages in an inbox, change their flags, and move or label them.

16 operations

Conversation claims

Say who is working on an inbox conversation: claim it, check in, release it, take it over or hand it off.

9 operations

Contacts

Sync, add, change and delete contacts in a book, and look addresses up.

8 operations

Calendar

Open your K8 HQ calendar. List, add, change or delete events, or download a copy.

6 operations

Content

Read a message decrypted: its parsed content, its source and its attachments. Every read is recorded in the inbox's audit log.

3 operations

Sending

Send mail from an inbox, save or discard drafts, and list senders to unsubscribe from.

11 operations

Events

Read the organization's events, and register and publish your own event types.

4 operations

Rules

Automate what happens to mail: create, test and manage rules, and start from templates.

11 operations

Billing

The organization's usage, charges, credit balance and payments, and mail held back for credit.

6 operations

Service

Service health and the public forwarding-confirmation pages.

3 operations

Organizations

What each organization permission and role allows, and the organization's search-by-meaning settings.

7 operations

Tags

Your organization's tags: list, create, change and delete them, get the keys that open them, tag messages, and list what has a tag.

12 operations

Tag keywords

Show tags in mail apps that support IMAP keywords, such as Thunderbird.

5 operations

Suppressions

Addresses the organization's mail won't be sent to because mail to them bounced or was marked as spam, and taking an address off the list.

2 operations

DMARC

Who sends mail as your domains and whether it passes, from DMARC reports, with K8's summaries.

7 operations

Boards

Read a task or ticket board, its members and your permissions on it.

11 operations

Board settings

Change board settings and workflow, move labels to tags, and choose your board notices.

6 operations

Help desk

A ticket board's saved replies, automations and satisfaction survey switch.

14 operations

Forms

Build, publish, pause and manage forms, and their responses' retention.

16 operations

Addresses

Add, name, move and remove inbox email addresses.

7 operations

Signatures

Address signatures, their images, and each person's own signature for an address.

10 operations

Folders and recovery

Manage folders, recover removed messages, and move a sender’s existing mail with Undo.

15 operations

Forwarding

Manage inbox forwarding destinations.

4 operations

Imports and exports

Import, export and monitor mailbox transfer jobs.

10 operations

Search settings

Configure semantic search for an inbox.

2 operations

Board items

List, add, change, link and delete items on a board, with their versions and history.

15 operations

Board comments

Read and write comments on board items.

4 operations

Ticket messages

The mail linked to a ticket, and saying who is replying.

5 operations

Board claims

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

8 operations

Board questions

Ask a board member a structured question on an item, and answer it.

6 operations

Board readiness

Mark tasks Ready for agent, set task owners and escalation contacts, and let agents pick tasks up.

12 operations

Board rubrics

The rubrics that assessments score a task's work against, and their versions.

5 operations

Board assessments

Request, draft, submit and discuss assessments of a task's work.

14 operations

Board intake

Bring issues from chosen external repositories onto a task board, and keep them in sync.

9 operations

Board intake links

Act on external issues: defer, dismiss, make a task from one, or link tasks to them.

5 operations

Board publication

Write a task's progress back to its linked external issues, under the board's publication policy.

8 operations

Connections

Connect K8 HQ to outside providers such as GitHub, and choose who and which agents may act through each connection.

16 operations

Support

Write to K8 HQ Support from the web app: the request becomes a ticket for K8 HQ's support team, who reply by email.

1 operation

Find an operation by name

Using this API

One API at https://api.k8hq.com/v1, two ways in:

Containers. Mail, contacts, boards and form responses live in containers with their own access. GET /containers lists yours, with the kind and your role. Each kind has its own paths (/inboxes/..., /books/..., /boards/..., /forms/...); form responses use selected inbox routes with the form's ID (see each operation's supported container kinds). Create containers through the Setup API, subject to your permissions and the organization's enabled services. Forms operations require a signed-in person's session; API tokens and assistants cannot use them. Boards are unavailable to assistants; API tokens need boards:read to list task boards. Attached ticket boards are listed only for signed-in people. An inbox holds every channel: email today, later SMS and chat, each message marked with its channel.

Privacy. Each container is readable (K8 HQ's servers can open it, so content can be read decrypted with content:read, and every such read is recorded in the audit log) or zero_access (ciphertext only, opened with keys sealed to the user's own key).

Conventions.

Errors are RFC 9457 problem details (application/problem+json) with a stable code: invalid, unauthenticated, forbidden, scope_missing, zero_access, not_found, conflict, in_progress, version_mismatch, too_large, rejected, rate_limited, unavailable, sync_reset (410: sync again from the start). Containers you have no access to, and records that aren't in the container, return 404 not_found.

Browser compatibility. After the web client cutover, browser requests need K8hq-Client: web/<build>; storage=4 with a build at least the configured minimum and storage version 4 or later. Older clients receive 426 client_outdated and must reload K8 HQ. Browser delegations also keep the client version declared when they were issued; delegations issued without a compatible version must be replaced.

Board roles. Can view and comment (comment) may read a task board, add comments and answer questions addressed to the signed-in person. Every other board write returns 403, including edits to their own comments. Full access is owner. Organization permissions never override this board role. Assignment excludes members with Can view and comment access. A Guest organization role grants no organization permissions; board member pickers use the board member list.

Base URL

Base URLFor
https://api.k8hq.com/v1API tokens and the K8 HQ web app
curl -H "Authorization: Bearer $K8HQ_TOKEN" https://api.k8hq.com/v1/inboxes
Error reference

Error codes

Errors are RFC 9457 problem details (application/problem+json) whose type links here. Branch on code; detail is for people and may change.

CodeMeaning
invalid400: the request is malformed or failed validation; detail says what to fix.
unauthenticated401: no credential, or it expired or was revoked. Tokens: make a new one; the web app: sign in again.
forbidden403: the credential is valid but may not do this (the member's role or permissions).
scope_missing403: the API token lacks the scope the operation needs; the operation's access line names it.
zero_access403 or 409: the container needs sealed content. Read ciphertext and keys instead.
not_found404: no such record, or one you may not see (containers you have no access to answer the same way).
conflict409: the request conflicts with the current state, such as a name already in use.
in_progress409: a request with the same Idempotency-Key is still running; retry shortly for its answer. For outbox cancellation, the message is already being sent and cannot be stopped.
version_mismatch412: the record changed since you read it (If-Match); read it again and retry.
precondition_required428: send the calendar entry's ETag in If-Match.
calendar_closed409: the calendar is being removed or can't be read.
org_closed410: the organization is being deleted.
too_large413: the body or message is over the size limit.
rejected422: understood but refused, such as a limit reached or a recipient refused.
rate_limited429: a limit was reached (a token's daily limits reset at midnight UTC).
unavailable503: a temporary problem on K8 HQ's side; retry with backoff.
sync_reset410: the sync token is unknown or too old; sync again from the start.
step_up_required401: the action needs a passkey used in the last few minutes. Confirm with Start a passkey confirmation on the Sign-in API, then retry with the new access token.
k8_unavailable403: K8 isn't available to the caller in this organization (members' use of K8 is off, or the person is suspended).
mcp_binding_unavailable503: the AI connector gateway's signed request couldn't be verified right now (a key rotation or a changed request). Connected AI answers that K8 HQ is busy; try again in a minute.
approval_required403: this connection needs approval for that, and approval isn't available yet.
out_of_credit402: the organization is out of credit for something that costs money (such as a K8 summary); add credit in Billing.
service_disabled403: this service is off for the organization. Availability of reading and export depends on the service.
read_only402: the organization has been out of credit for 60 days, so it's read-only: reading, exports and searches work, changes don't. Adding credit in Billing turns everything back on.
clock_wrong422: an ID the browser made (an item's, a comment's) is dated more than a day from K8 HQ's clock: set the device's clock and try again.
ticket_changed409: a reply's ticket changed since the reply was written (a new message, another reply, or someone else sending now); the body's reason and item say what. Send again with force (Send anyway), or review.
held409: a form's response came past its daily limit and is held: release it (POST /v1/forms/{form}/held/release, billed then as a response) to open it.
claimed409: another session holds the item's work claim. Read the claim to see whose; request a takeover with a reason if it needs attention.
claim_held409: someone else is handling this conversation.
claim_required409: Claim this conversation before replying, or send with claim "new".
claim_lost409: the named work claim is no longer held: it was released, taken over or handed off. Stop editing for it and read the claim again; an old claim never revives.
claim_reason_unknown400: Choose a reason from this inbox’s list.
claim_reasons_changed409: This inbox’s takeover reasons changed. Load the list and choose again.
claim_reason_text_not_allowed400: Only people can add a written reason. A written reason can only be added when you take over or force-release someone else's claim.
epoch_changed409: This inbox's key changed. Write the reason again.
claim_on_ticket409: Claim the ticket linked to this conversation. The response names the ticket board and may include the ticket.
not_holder403: the work claim is held by another session: only the token or sign-in that claimed it, with its secret, can check in, release or hand it off. It doesn't mean the claim was lost.
claim_active403: the claim doesn't need attention (its session is checking in, or waiting within its expected end), so only a member holding containers.delete (owners and admins by default) can force its release, giving a reason comment.
not_ready409: the task isn't Ready for agent now (not authorized, revoked, changed since it was authorized, or whoever authorized it can't any more).
on_hold409: the task or its parent is in a waiting status, so it can't be picked up.
delivered409: the task's work is delivered: it's in an active status after the board's first (such as Waiting for review or Ready to deploy), so it can't be picked up or marked Ready for agent until it's moved back to To do or In progress.
blocked409: a task blocking this one isn't done yet (blockers lists them), so it can't be picked up.
dependency_cycle409: the dependency would make a cycle: the other task is already blocked by this one, directly or through other tasks.
owner_required409: Ready for agent and pickup need the task to have an owner who is on the board (it has none, or they left): set its owner first.
connection_unavailable409: a provider connection the task needs isn't available (connections lists which, and how each comes back): nothing else is used instead.
connection_not_authorized403: the session isn't authorized to use a provider connection the task needs (connections lists which): ask the connection's managers to authorize this member or token.
plan_changed409: what publishing to an external issue would write changed since it was previewed (a task linked, a milestone recorded, the policy changed); nothing was written, and plan is the fresh plan to review.
confirmation_required401: the change needs a passkey confirmation of exactly it (design note 0013). The answer carries action (the description to confirm) and a short summary: send action to [Begin a confirmation](/auth/docs#confirmBegin), run the passkey prompt, [finish it](/auth/docs#confirmFinish) and retry the same request with the confirmation in x-k8hq-confirm. Asking with x-k8hq-confirm: ? gets this answer without the change being made.
confirmation_invalid403: the confirmation isn't valid for this session (another session's or person's, or not signed by K8 HQ): confirm again.
confirmation_expired409: the confirmation timed out (it lives 2 minutes): confirm again.
confirmation_mismatch409: the change isn't the one confirmed: the request, or what it changes, is different now. Show the current state and let the person confirm again; never retry silently.
confirmation_used409: the confirmation was already used (each confirms one change, once): confirm again.
needs_person403: only a person signed in to K8 HQ can make this change with a passkey confirmation, never an API token or an assistant.
key_changed409: K8 HQ's identity directory has a different encryption key for you than the one K8 HQ's mail servers pinned when they first sealed keys to you, so nothing was sealed to it. A directory change sends a security notice; contact K8 HQ support. If only this device has a different key while the directory matches the pin, no directory-change notice is sent.
key_unverified409 when first-pin enforcement is enabled: K8 HQ's mail servers haven't pinned your encryption key yet, and the request didn't carry x-k8hq-key-sha256 from a device that unlocked it. Open K8 HQ in the web app on your own device once (it sends it), or send the header yourself.
key_replaced403: your encryption key was replaced, and this needs your current key: ask someone who holds the inbox's keys to give your new key access.
container_access_lost403: your access changed before K8 HQ could give your key access to this container. Reload to check your access.
k8_notice_inboxK8 Messages cannot read a personal notice inbox.
k8_messages_disabledAn owner must allow K8 Messages for the organization before it can be turned on for an inbox.
k8_inbox_disabled403: K8 Messages is off for this inbox.
k8_model_unavailable503: K8 cannot use its model right now.
k8_output_invalid502: K8 could not make a valid summary.
k8_cap_reached429: The organization has reached today's K8 limit.
k8_member_cap_reached429: You have used your share of today's K8 limit.
k8_plan_invalid502: K8 could not make a valid message plan.
k8_ai_classify_disabled403: AI rule checks are off. Existing conditions can still be read or removed.
k8_ai_sending_not_allowed403: An active owner must agree to this exact AI rule sending replies, and the inbox must allow rules to send.
client_outdated426: K8 HQ has been updated. Reload this page.
snooze_not_in_inbox409: Only messages in Inbox can be snoozed.
snooze_limit409: You have 1,000 active snoozes in this inbox.
tags_coming_soonTags are coming soon for organizations with zero-access encryption.
folder_rules409: Rules file mail into this folder. Change them before turning the folder into a tag. The response lists only rules you can see.
undo_expiredUndo is available for 24 hours after a sender move finishes.
book_read_only409: the contact book is pending removal. Reading and export remain available.
not_eligible409: This received message cannot be used to unsubscribe, or the method was not allowed at receipt.
already_unsubscribed409: A request for this sender is pending or was made within the last 24 hours. The response includes record.
proof_mismatch422: The link does not match the proof kept for this exact message.
bad_url422: The link failed the URL checks.
sender_cap429: Three attempts to this sender in this inbox within 30 days.
organization_cap429: 100 one-click attempts an hour or 300 a day for this organization.
destination_cap429: Ten one-click attempts a minute to the same registrable domain across organizations. Retry after a minute.
Find a schema by nameBrowse schemas