K8 HQ

Sign-up invitations — K8 HQ Sign-in API

Sign-up invitations 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.

Make and revoke invitations that let someone new create a K8 HQ account.

Base URL

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

Endpoints

Sign-up invitations

List my sign-up invitations

GET/v1/account/signup-invites

The sign-up invitations the person made, newest first, with how many they may have and how many are left. Each is a single-use link that expires after 14 days; unused ones that are revoked or expire stop counting.

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

Response body (JSON)

FieldTypeDescription
invites requiredSignupInvite[]
left requiredintegerHow many more they may make now.
limit requiredintegerHow many pending or accepted invitations they may have (3 unless K8 HQ raised it).

Responses

StatusBodyMeaning
200JSONTheir invitations.
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.
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
500application/problem+jsonA temporary problem (unavailable); retry.

Make a sign-up invitation

POST/v1/account/signup-invites

Makes a sign-up invitation. Share the link https://app.k8hq.com/#invite=<secret>; the secret is in this answer only. The person is told when it's used.

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.
{}

Response body (JSON)

FieldTypeDescription
invite requiredSignupInvite
secret requiredstringPattern: ^k8hq_sinv_.

Responses

StatusBodyMeaning
200JSONThe invitation and, this once, its secret.
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.
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonNone left (no_invites_left), or another is being made at the same moment (conflict).
500application/problem+jsonA temporary problem (unavailable); retry.

Revoke a sign-up invitation

DELETE/v1/account/signup-invites/{id}

Ends an unused invitation; it no longer counts against the limit.

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.
id (path) requiredstringResource ID.

Response body (JSON)

FieldTypeDescription
ok requiredtrue

Responses

StatusBodyMeaning
200OkRevoked.
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.
405application/problem+jsonMethod not allowed. The Allow header lists supported methods.
409application/problem+jsonIt was already used or revoked (conflict).
500application/problem+jsonA temporary problem (unavailable); retry.