K8 — K8 HQ Sign-in API
K8 operations for K8 HQ Sign-in API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
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 URL | For |
https://api.k8hq.com/auth | The 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)
| Field | Type | Description |
noticesAllowed required | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Off unless you turn it on. |
| 403 | application/problem+json | Not 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)
| Field | Type | Description |
noticesAllowed required | boolean | |
Response body (JSON)
| Field | Type | Description |
ok required | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The setting changed. |
| 400 | application/problem+json | The request is malformed or a field is invalid (invalid). |
| 401 | application/problem+json | No 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. |
| 403 | application/problem+json | Not allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's. |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The 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). |
| 500 | application/problem+json | A 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
| 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). For {}: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a. |
Request body (JSON)
| Field | Type | Description |
audience required | k8hq-k8-admin | k8hq-k8-messages | |
orgId required | string | The organization (org_...). Pattern: ^org_. |
{"audience":"k8hq-k8-admin","orgId":"org_01J..."}
Response body (JSON)
| Field | Type | Description |
expiresAt required | string | |
token required | string | Send it as x-k8hq-token on the assistant's calls. |
Responses
| Status | Body | Meaning |
| 200 | JSON | The token. |
| 400 | application/problem+json | No organization, or an unknown audience (invalid). |
| 401 | application/problem+json | No session, or it expired or was revoked (unauthenticated): refresh, or sign in again. |
| 403 | application/problem+json | K8 isn't available to them there, or K8 Messages is off (forbidden). |
| 404 | application/problem+json | They aren't a member (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 500 | application/problem+json | A 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
| Name | Type | Description |
orgId (path) required | string | Organization ID. |
Response body (JSON)
| Field | Type | Description |
boardsAllowed required | boolean | K8 for Boards is allowed by the organization. Off by default; the server rollout must also be enabled. |
contactsAllowed required | boolean | K8 for Contacts is allowed by the organization. Off by default; the server rollout must also be enabled. |
formsAllowed required | boolean | K8 for Forms is allowed by the organization. Off by default; the server rollout must also be enabled. |
healthAllowed required | boolean | K8 for Health is allowed by the organization. Off by default; the server rollout must also be enabled. |
membersUseK8 required | boolean | Members without k8.use may use K8 (on unless an owner turns it off). |
messagesAllowed required | boolean | K8 Messages, which reads messages, may be turned on for inboxes (off unless an owner turns it on). |
noticesAllowed required | boolean | Members can let K8 read their notices. Off by default; each person must also turn on their own switch and confirm each request. |
Responses
| Status | Body | Meaning |
| 200 | K8Settings | The settings. |
| 400 | application/problem+json | The request is malformed or a field is invalid (invalid). |
| 401 | application/problem+json | No session, or it expired or was revoked (unauthenticated): refresh, or sign in again. |
| 403 | application/problem+json | Not allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's. |
| 404 | application/problem+json | They aren't a member (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 500 | application/problem+json | A 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
| 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). For {}: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a. |
orgId (path) required | string | Organization ID. |
Request body (JSON)
| Field | Type | Description |
membersUseK8 required | boolean | |
messagesAllowed required | boolean | |
{"membersUseK8":true,"messagesAllowed":false}
Response body (JSON)
| Field | Type | Description |
ok required | true | |
Responses
| Status | Body | Meaning |
| 200 | Ok | Changed. |
| 400 | application/problem+json | The request is malformed or a field is invalid (invalid). |
| 401 | application/problem+json | No 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. |
| 403 | application/problem+json | Only owners change K8 settings (forbidden). |
| 404 | application/problem+json | They aren't a member (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The 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). |
| 500 | application/problem+json | A 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
| Name | Type | Description |
orgId (path) required | string | |
Request body (JSON)
| Field | Type | Description |
boardsAllowed required | boolean | |
Response body (JSON)
| Field | Type | Description |
ok required | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The setting changed. |
| 400 | application/problem+json | The request is malformed or a field is invalid (invalid). |
| 401 | application/problem+json | No 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. |
| 403 | application/problem+json | Not allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's. |
| 404 | application/problem+json | They aren't a member (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The 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). |
| 500 | application/problem+json | A 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
| Name | Type | Description |
orgId (path) required | string | |
Request body (JSON)
| Field | Type | Description |
healthAllowed required | boolean | |
Response body (JSON)
| Field | Type | Description |
ok required | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The setting changed. |
| 400 | application/problem+json | The request is malformed or a field is invalid (invalid). |
| 401 | application/problem+json | No 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. |
| 403 | application/problem+json | Not allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's. |
| 404 | application/problem+json | They aren't a member (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The 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). |
| 500 | application/problem+json | A 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
| Name | Type | Description |
orgId (path) required | string | |
Request body (JSON)
| Field | Type | Description |
noticesAllowed required | boolean | |
Response body (JSON)
| Field | Type | Description |
ok required | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The setting changed. |
| 400 | application/problem+json | The request is malformed or a field is invalid (invalid). |
| 401 | application/problem+json | No 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. |
| 403 | application/problem+json | Not allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's. |
| 404 | application/problem+json | They aren't a member (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The 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). |
| 500 | application/problem+json | A temporary problem (unavailable); retry. |