Policies — K8 HQ Sign-in API
Policies operations for K8 HQ Sign-in API. Requests, permissions and responses.
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 URL | For |
|---|---|
https://api.k8hq.com/auth | The K8 HQ web app, and programs acting with a person's session |
Endpoints
Policies
Policy versions to accept
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)
| Field | Type | Description |
|---|---|---|
accepted required | object[] | |
first required | boolean | No version accepted yet. |
needed required | PolicyVersion[] |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | What's needed, and what's recorded. |
| 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. |
| 405 | application/problem+json | Method not allowed; Allow lists supported methods. |
| 500 | application/problem+json | A temporary problem (unavailable); retry. |
List policy versions
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)
| Field | Type | Description |
|---|---|---|
current required | PolicyVersion[] | |
published required | PolicyVersion[] | |
upcoming required | PolicyVersion[] |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The versions. |
| 405 | application/problem+json | Method not allowed; Allow lists supported methods. |
| 500 | application/problem+json | A temporary problem (unavailable); retry. |
Accept policy versions
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
| 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 |
|---|---|---|
accepted required | Accepted |
{"accepted":{"terms":"2026-11-20"}}
Response body (JSON)
| Field | Type | Description |
|---|---|---|
needed required | PolicyVersion[] |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | Recorded; needed is what's still left to accept. |
| 400 | application/problem+json | Nothing named (policy_acceptance_required), or malformed (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. |
| 409 | application/problem+json | A version that isn't current or published, or an unknown document (policy_outdated). |
| 500 | application/problem+json | A temporary problem (unavailable); retry. |