K8 HQ

Policies — K8 HQ Sign-in API

Policies 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.

See which terms and policy versions the person still has to accept, and accept them.

Base URL

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

Endpoints

Policies

Policy versions to accept

GET/v1/account/policy-status

The current versions the person hasn't accepted yet (a newer version took effect since they last accepted one), and the versions they've accepted. Not available to an assistant's delegated token. first is true when the person has accepted no version yet (an account from before acceptance was recorded): ask them to review and accept, rather than saying the policies were updated.

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

Response body (JSON)

FieldTypeDescription
accepted requiredobject[]
first requiredbooleanNo version accepted yet.
needed requiredPolicyVersion[]

Responses

StatusBodyMeaning
200JSONWhat's needed, and what's recorded.
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.
405application/problem+jsonMethod not allowed; Allow lists supported methods.
500application/problem+jsonA temporary problem (unavailable); retry.

List policy versions

GET/v1/policies

The current versions of K8 HQ's Terms of Service and Privacy Policy, any published ones that haven't taken effect yet (everyone is told 30 days ahead), and every version ever published, each with its text's hash. No sign-in needed. Sign-up sends the current ones in accepted.

No sign-in needed.

Response body (JSON)

FieldTypeDescription
current requiredPolicyVersion[]
published requiredPolicyVersion[]
upcoming requiredPolicyVersion[]

Responses

StatusBodyMeaning
200JSONThe versions.
405application/problem+jsonMethod not allowed; Allow lists supported methods.
500application/problem+jsonA temporary problem (unavailable); retry.

Accept policy versions

POST/v1/policies/accept

Records that the person accepts these versions, with the time, IP address and browser. Each acceptance is recorded once and never changed; accepting a version again changes nothing. Not available to an assistant's delegated token.

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
accepted requiredAccepted
{"accepted":{"terms":"2026-11-20"}}

Response body (JSON)

FieldTypeDescription
needed requiredPolicyVersion[]

Responses

StatusBodyMeaning
200JSONRecorded; needed is what's still left to accept.
400application/problem+jsonNothing named (policy_acceptance_required), or malformed (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.
409application/problem+jsonA version that isn't current or published, or an unknown document (policy_outdated).
500application/problem+jsonA temporary problem (unavailable); retry.