K8 HQ

Notices — K8 HQ Sign-in API

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

The person's account notices: list them, mark them read, follow their links and delete them.

Base URL

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

Endpoints

Notices

Mark notices read

PATCH/v1/account/notices

Archives the named notices (up to 100), or all of them (all) a bounded step at a time: while more is true, call again with nextCursor.

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
allboolean
cursorstringWith all: nextCursor from the previous step.
noticesNoticeRef[]Up to 100.
{"notices":[{"id":"evt_01J...","seq":"00000000000000000042"}]}

Response body (JSON)

FieldTypeDescription
more requiredbooleanThere's more to do: call again with nextCursor.
ok requiredtrue
nextCursorstring

Responses

StatusBodyMeaning
200JSONArchived.
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+jsonA named notice isn't one of theirs (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
500application/problem+jsonA temporary problem (unavailable); retry.

Delete notices

DELETE/v1/account/notices

Removes archived notices from Notices for good: the named ones, or every archived one (archivedAll, a bounded step at a time like archiving). The events stay in the account's audit record until the account is deleted. Needs a recent passkey, so a stolen session can't hide the notice about what it did.

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.

Request body (JSON)

FieldTypeDescription
archivedAllboolean
cursorstringWith archivedAll: nextCursor from the previous step.
noticesNoticeRef[]Up to 100, all archived.
{"archivedAll":true}

Response body (JSON)

FieldTypeDescription
more requiredbooleanThere's more to do: call again with nextCursor.
ok requiredtrue
nextCursorstring

Responses

StatusBodyMeaning
200JSONDeleted.
400application/problem+jsonThe request is malformed or a field is invalid (invalid).
401application/problem+jsonNo session or it expired (unauthenticated), or its passkey confirmation is more than 5 minutes old (step_up_required).
403application/problem+jsonNot allowed (forbidden): an assistant's delegated token, or a browser origin other than the web app's.
404application/problem+jsonA named notice isn't one of theirs (not_found).
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonA named notice isn't archived; open it first (conflict).
500application/problem+jsonA temporary problem (unavailable); retry.

List account notices

POST/v1/notices

The person's account notices (design note 0012), newest first: passkeys added or removed, sign-ins from new networks, tokens used from new networks, invitations used, removal from an organization. Only the person sees them; there are no parameters naming anyone. unread counts the unarchived ones on this page.

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
cursorstringnextCursor from the previous page. Pattern: ^[0-9]{20}$.
limitintegerUp to 100; 50 by default.
{"limit":50}

Response body (JSON)

FieldTypeDescription
notices requiredNotice[]
unread requiredinteger
nextCursorstringPresent while there are more.

Responses

StatusBodyMeaning
200JSONA page of notices.
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.
500application/problem+jsonA temporary problem (unavailable); retry.