K8 HQ

K8 — K8 HQ Sign-in API

K8 operations for K8 HQ Sign-in API. Requests, permissions and responses.

Version 1OpenAPI description (JSON)

Browse operation groups

Before making requests, read the authentication and request requirements.

K8, the built-in assistant: its settings and the delegated token it acts with.

Base URL

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

Endpoints

K8

Your K8 HQ Notices setting

GET/v1/account/k8-notices

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

Response body (JSON)

FieldTypeDescription
noticesAllowed requiredboolean

Responses

StatusBodyMeaning
200JSONOff unless you turn it on.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.

Change your K8 HQ Notices setting

PUT/v1/account/k8-notices

Only your own sign-in can change this setting. It starts off. Turning it on needs passkey confirmation of k8.notices_allowed; turning it off needs a recent passkey sign-in. Each read still needs your consent. K8 HQ reads only your selected notice messages or release notes and never marks them read. K8 answers are excluded.

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

Request body (JSON)

FieldTypeDescription
noticesAllowed requiredboolean

Response body (JSON)

FieldTypeDescription
ok requiredboolean

Responses

StatusBodyMeaning
200JSONThe setting changed.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm and a short summary.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
500application/problem+jsonA temporary problem (unavailable); retry.

Get a delegated token for K8

POST/v1/k8/token

Mints a short-lived token (15 minutes) for one of K8 HQ's assistants to act for the person in one organization: k8hq-k8-admin (K8 Admin, which helps set things up and may only read) or k8hq-k8-messages (K8 Messages, which reads messages; only where the organization allows it). The token is accepted only on its assistant's allowlist of calls, in that organization, while the person may still use K8 there. Only a person's own session can mint one.

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.

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). For {}: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a.

Request body (JSON)

FieldTypeDescription
audience requiredk8hq-k8-admin | k8hq-k8-messages
orgId requiredstringThe organization (org_...). Pattern: ^org_.
{"audience":"k8hq-k8-admin","orgId":"org_01J..."}

Response body (JSON)

FieldTypeDescription
expiresAt requiredstring
token requiredstringSend it as x-k8hq-token on the assistant's calls.

Responses

StatusBodyMeaning
200JSONThe token.
400application/problem+jsonNo organization, or an unknown audience (invalid).
401application/problem+jsonNo session, or it expired or was revoked (unauthenticated): refresh, or sign in again.
403application/problem+jsonK8 isn't available to them there, or K8 Messages is off (forbidden).
404application/problem+jsonThey aren't a member (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
500application/problem+jsonA temporary problem (unavailable); retry.

Get K8 settings

GET/v1/organizations/{orgId}/k8-settings

The organization's K8 settings, for any member.

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

Parameters

NameTypeDescription
orgId (path) requiredstringOrganization ID.

Response body (JSON)

FieldTypeDescription
boardsAllowed requiredbooleanK8 for Boards is allowed by the organization. Off by default; the server rollout must also be enabled.
contactsAllowed requiredbooleanK8 for Contacts is allowed by the organization. Off by default; the server rollout must also be enabled.
formsAllowed requiredbooleanK8 for Forms is allowed by the organization. Off by default; the server rollout must also be enabled.
healthAllowed requiredbooleanK8 for Health is allowed by the organization. Off by default; the server rollout must also be enabled.
membersUseK8 requiredbooleanMembers without k8.use may use K8 (on unless an owner turns it off).
messagesAllowed requiredbooleanK8 Messages, which reads messages, may be turned on for inboxes (off unless an owner turns it on).
noticesAllowed requiredbooleanMembers can let K8 read their notices. Off by default; each person must also turn on their own switch and confirm each request.

Responses

StatusBodyMeaning
200K8SettingsThe settings.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session, or it expired or was revoked (unauthenticated): refresh, or sign in again.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
404application/problem+jsonThey aren't a member (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
500application/problem+jsonA temporary problem (unavailable); retry.

Change K8 settings

PUT/v1/organizations/{orgId}/k8-settings

Sets both K8 settings; owners only (org.settings.change).

Replaces both K8 switches. Supply membersUseK8 and messagesAllowed; omitted switches retain the legacy behavior of becoming false.

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

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). For {}: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a.
orgId (path) requiredstringOrganization ID.

Request body (JSON)

FieldTypeDescription
membersUseK8 requiredboolean
messagesAllowed requiredboolean
{"membersUseK8":true,"messagesAllowed":false}

Response body (JSON)

FieldTypeDescription
ok requiredtrue

Responses

StatusBodyMeaning
200OkChanged.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm and a short summary.
403application/problem+jsonOnly owners change K8 settings (forbidden).
404application/problem+jsonThey aren't a member (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
500application/problem+jsonA temporary problem (unavailable); retry.

Change K8 for Boards

PUT/v1/organizations/{orgId}/k8-settings/boards

An owner or admin changes only boardsAllowed. Needs your own sign-in. Turning it on needs a passkey confirmation of this change; other changes need passkey sign-in within five minutes. Keeps the other K8 settings. You can change this setting while K8 for Boards is unavailable. Turning it on does not make K8 for Boards available or let K8 read a board without your permission for that request.

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

Parameters

NameTypeDescription
orgId (path) requiredstring

Request body (JSON)

FieldTypeDescription
boardsAllowed requiredboolean

Response body (JSON)

FieldTypeDescription
ok requiredboolean

Responses

StatusBodyMeaning
200JSONThe setting changed.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm and a short summary.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
404application/problem+jsonThey aren't a member (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
500application/problem+jsonA temporary problem (unavailable); retry.

Change K8 for Contacts

PUT/v1/organizations/{orgId}/k8-settings/contacts

An owner or admin changes only contactsAllowed. Needs your own sign-in. Turning it on needs a passkey confirmation of this change; other changes need passkey sign-in within five minutes. Keeps the other K8 settings. You can change this setting while K8 for Contacts is unavailable. Turning it on does not make K8 for Contacts available or let K8 read contacts without your permission for that request.

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

Parameters

NameTypeDescription
orgId (path) requiredstring

Request body (JSON)

FieldTypeDescription
contactsAllowed requiredboolean

Response body (JSON)

FieldTypeDescription
ok requiredboolean

Responses

StatusBodyMeaning
200JSONThe setting changed.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm and a short summary.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
404application/problem+jsonThey aren't a member (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
500application/problem+jsonA temporary problem (unavailable); retry.

Change K8 for Forms

PUT/v1/organizations/{orgId}/k8-settings/forms

An owner or admin changes only formsAllowed. Needs your own sign-in. Turning it on needs a passkey confirmation of this change; other changes need passkey sign-in within five minutes. Keeps the other K8 settings. You can change this setting while K8 for Forms is unavailable. Turning it on does not make K8 for Forms available or let K8 read forms without your permission for that request.

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

Parameters

NameTypeDescription
orgId (path) requiredstring

Request body (JSON)

FieldTypeDescription
formsAllowed requiredboolean

Response body (JSON)

FieldTypeDescription
ok requiredboolean

Responses

StatusBodyMeaning
200JSONThe setting changed.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm and a short summary.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
404application/problem+jsonThey aren't a member (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
500application/problem+jsonA temporary problem (unavailable); retry.

Change K8 for Health

PUT/v1/organizations/{orgId}/k8-settings/health

An owner or admin changes only healthAllowed. Needs your own sign-in. Turning it on needs a passkey confirmation of this change; other changes need passkey sign-in within five minutes. Keeps the other K8 settings. You can change this setting while K8 for Health is unavailable. Turning it on does not make K8 for Health available or let K8 read health without your permission for that request.

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

Parameters

NameTypeDescription
orgId (path) requiredstring

Request body (JSON)

FieldTypeDescription
healthAllowed requiredboolean

Response body (JSON)

FieldTypeDescription
ok requiredboolean

Responses

StatusBodyMeaning
200JSONThe setting changed.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm and a short summary.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
404application/problem+jsonThey aren't a member (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
500application/problem+jsonA temporary problem (unavailable); retry.

Change K8 for Notices

PUT/v1/organizations/{orgId}/k8-settings/notices

An owner or admin changes only noticesAllowed. Needs your own sign-in. Turning it on needs a passkey confirmation of this change; other changes need passkey sign-in within five minutes. Keeps the other K8 settings. Members can let K8 read their notices. Each person must also turn on their own Notices switch and confirm each request. This setting starts off and can be changed while K8 HQ for Notices is unavailable. AI use counts toward this organization’s K8 HQ usage.

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

Parameters

NameTypeDescription
orgId (path) requiredstring

Request body (JSON)

FieldTypeDescription
noticesAllowed requiredboolean

Response body (JSON)

FieldTypeDescription
ok requiredboolean

Responses

StatusBodyMeaning
200JSONThe setting changed.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm and a short summary.
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
404application/problem+jsonThey aren't a member (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
500application/problem+jsonA temporary problem (unavailable); retry.