Forms — K8 HQ Content API
Forms operations for K8 HQ Content API. Requests, permissions and responses.
Before making requests, read the authentication and request requirements.
Build, publish, pause and manage forms, and their responses' retention.
Forms (design note 0019): a builder whose draft is sealed in the browser, a published definition shown on a public page at k8hq.page, and responses stored like mail (sealed at arrival, read through the inbox routes with the form's ID). People signed in to the web app only: tokens and assistants get 404. Forms are created in setup.
Base URL
| Base URL | For |
|---|---|
https://api.k8hq.com/v1 | API tokens and the K8 HQ web app |
Endpoints
- Forms adding items to a board
- Stop a form adding items to a board
- Erase a response or a person's data
- Find what a response or a person made
- List forms
- Get a form
- Read a manual add result
- Save a form's draft
- Release held responses
- Pause a form
- Publish a form
- Add responses to boards
- Add a response to a board
- Resume a form
- Count what a shorter retention deletes
- Change a form's settings
Forms
Forms adding items to a board
The forms whose responses go to this board (on or paused), with who set each up. For anyone on the board; it doesn't need access to the forms. A form removed, or sending elsewhere, isn't listed.
For API tokens with boards:read and the web app.
Parameters
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
forms required | object[] |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The forms. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Stop a form adding items to a board
Turns the form's board setting off for this board: stopped, so no more items come from it (a response already on its way adds nothing), and for a ticket board the form's inbox copy into the board's inbox is turned off too. The form's members are told. Anyone who can edit the board (not only view or comment), signed in, whether or not they're on the form; not a token. No passkey: it only narrows who sees responses. Only a new save by someone who can edit both the form and the board turns it back on. Metered as a form edit.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
form (path) required | string | |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
stopped required | boolean |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | Whether it stopped anything (false: it wasn't sending to this board). |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with this Idempotency-Key is still running (in_progress). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Erase a response or a person's data
Checks chosen entries again and deletes them forever: board items (to Trash, then deleted with all their versions, comments, history, attachments and index rows), the copies (taken off any ticket they only joined), then the responses. Items with subitems are kept and listed. Copies in storage versions and backups are removed within about 6 weeks; an organization restore doesn't bring erased items back. People only, with containers.delete and a passkey confirmation of this erasure (erasure: the response, or a hash of the address, and the counts chosen). Each item deleted counts as boards.purged. Recorded in the audit log as org.erasure.completed, with counts only. A browser-confirmed response or form copy brings its response, the copies of that response, and the items made from it into the same erasure. On the first page, a fresh find checks what is offered. On cursor pages, only chosen entries and their related records are read again; the server checks current form settings, organization and form-copy provenance. Pass the cursor used to find that page, not its nextCursor.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
org (query) | string | The organization (org_). Required for a person signed in to the web app (any organization they're a member of); a token always answers for its own organization. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
browserMatched required | integer | Items deleted that the browser matched (tasks on zero-access boards). |
copies required | integer | |
detached required | integer | |
foundSince required | integer | Entries found now that weren't chosen: find again. |
items required | integer | |
kept required | object[] | Chosen items left because they have subitems. |
otherMessages required | object[] | Other messages on erased tickets that stay in each inbox; people can delete them there. |
responses required | integer | |
searched required | ErasureSearched | |
skipped required | integer | Chosen entries no longer found, or changed meanwhile. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | ErasureReceipt | What was deleted. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | Sign in required (unauthenticated), or confirm this erasure with your passkey (confirmation_required): the answer carries the action to confirm, which names the response (or a hash of the address) and how many responses, copies and items were chosen. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The confirmation is for a different erasure, or what was chosen is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Find what a response or a person made
Finds, across the organization, a form's response or one person's responses (by an email address) and everything made from them: copies in inboxes, and board items with every version, including items whose response or form is gone. Matching uses where each item came from. A task is checked only if a form made it, and only its first version is read; a hand-written task or an address added in a later edit never matches. A copy whose Reply-To names another address is not matched by body text. Changes nothing. People only, with containers.delete. Records read count as boards.listed and search.metadata_loads, versions opened as boards.decrypted. A person search finds responses by Reply-To and offers responses on forms without a reply-to field, and on zero-access forms, for the browser to open and match locally. Compatible inboxes also use the server body index, with whole addresses checked in decoded body text. Zero-access inboxes and incomplete body searches are offered for the browser to search. Unchecked responses and inboxes share pages of at most 100 entries; use nextCursor to continue. Later pages return only unchecked lists and leave inbox searches to the browser. The first page of a person search is recorded in the audit log as org.erasure.searched, with counts only.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
org (query) | string | The organization (org_). Required for a person signed in to the web app (any organization they're a member of); a token always answers for its own organization. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
address | string | |
cursor | string | For a person search, the cursor used to find the page of unchecked responses and inboxes being checked or erased. Omit it for the first page. Use the same cursor when erasing browser matches from that page. |
form | string | Pattern: ^frm_. |
response | string | Pattern: ^msg_. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
copies required | object[] | |
detach required | object[] | Tickets a copy joined but didn't open: erasing the copy takes it off the ticket, and the ticket stays. |
items required | object[] | |
responses required | object[] | |
searched required | ErasureSearched | |
unchecked required | object[] | Tasks a form made on zero-access boards, which K8 HQ can't read: the person's browser opens each one's first version and matches the address there, then names the matches in items. |
nextCursor | string | More unchecked responses or inboxes remain. Pass this cursor with the same address to find the next page. Later pages return only unchecked lists and leave inbox searches to the browser; they do not repeat the server search or its audit event. |
uncheckedInboxes | string[] | Inbox IDs for the browser to search. On the first page these are zero-access inboxes and inboxes whose server body search is unavailable or incomplete. Later pages leave all remaining inboxes to the browser. Name confirmed form copies in copies when erasing. The server checks current form-copy provenance and page eligibility. |
uncheckedResponses | object[] | Responses on forms with no reply-to field, and on zero-access forms. Open each response in the browser using its form and response IDs, match the address locally, and name confirmed matches in responses when erasing. Each page holds at most 100 unchecked responses and inboxes together. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | ErasureFound | What was found. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
List forms
The organization's forms the person is a member of, with today's counts and how many responses are in New. People only.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
org (query) | string | The organization (org_). Required for a person signed in to the web app (any organization they're a member of); a token always answers for its own organization. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
forms required | FormSummary[] |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The forms. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Get a form
Its status, published definition, sealed draft, settings, folders and today's counts.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
deliveryInbox required | object | null | |
domains required | string[] | The organization's verified domains: the form may be embedded on them and their subdomains. |
draft required | object | null | |
epoch required | integer | |
epochPub required | string | The current epoch's public key: the draft is sealed to it. |
folders required | object | The form's folders' label IDs (use them with the inbox routes). |
id required | string | Pattern: ^frm_. |
live required | FormDefinition | null | |
name required | string | |
notifyMe required | boolean | Whether the person asking is told about new responses. |
orgId required | string | |
responsePrice required | string | A response's price in dollars (an exact decimal string): what releasing a held one costs. |
runBy required | string | null | |
settings required | object | |
status required | draft | live | paused | suspended | |
today required | FormDay | |
url required | string | Its link to share: on the organization's pages address (https://<slug>.k8hq.page/f/...) when organization pages are on and it has one, else https://k8hq.page/f/... (which works either way). |
version required | integer | How many times it was published (0: never). |
createdAt | string | |
createdAttribution | Attribution | |
embedUrl | string | The address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin). |
pausedReason | string | Why it's paused: person (a member). |
publishedAt | string | |
publishedAttribution | Attribution | |
suite | HPKESuite | |
updatedAttribution | Attribution |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | Form | The form. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Read a manual add result
Requires current edit access to the form and destination. Pending ticket operations finish through the event handler; repeat until done or failed.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
op (path) required | string |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
board required | string | |
response required | string | |
state required | pending | done | deleted | failed | |
code | invalid_request | not_found | forbidden | service_disabled | privacy_pairing | response_held | response_unavailable | conflict | sealed_item_required | save_limit | copy_unavailable | copy_deleted | epoch_changed | invalid_item | unavailable | changed | paused | full | full_open | boards_off | |
existing | boolean | |
item | string | |
number | integer | |
op | string | Pattern: ^mop_. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | FormBoardAddResult | The operation and its outcome. |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 404 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 409 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 422 | application/problem+json | The destination board's privacy does not match the form's (privacy pairing), so the add is refused. |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
Save a form's draft
Replaces the draft, sealed in the browser to the form's epoch key (seal v2, a framed object of the parts meta and def under a fresh key, seal ID <form>|def|v<n> for the new version n), if it's still at the version in If-Match. K8 HQ's servers check its framing only and never open it. At most every 10 seconds per form (429 with Retry-After). Metered forms.edits.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
If-Match (header) required | string | The draft version you edited (a number; quoted is fine): the form's draft.version, 0 before its first save. |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
epoch required | integer | |
object required | string | |
wdek required | string |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
savedAt required | string | |
version required | integer |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The saved draft's version. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or the form isn't in a state that allows this (conflict: resuming a form that isn't paused by a member, publishing a suspended one). |
| 410 | application/problem+json | The organization is closed. |
| 412 | application/problem+json | If-Match named an older version (version_mismatch). |
| 413 | application/problem+json | The draft is over 32 KB (too_large). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Release held responses
Moves responses that came past the daily limit from Held to New, where they can be opened: each is billed once then, as a response (forms.submissions). Up to 100 a request: messageIds, or all (repeat while more). Deleting held responses instead is free (delete-forever or empty on the Held folder).
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
all | boolean | |
messageIds | string[] |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
more required | boolean | |
released required | integer |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | How many were released. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or the form isn't in a state that allows this (conflict: resuming a form that isn't paused by a member, publishing a suspended one). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Pause a form
Stops a live form taking responses: its page says it isn't taking responses right now, within a minute. Metered forms.edits.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
deliveryInbox required | object | null | |
domains required | string[] | The organization's verified domains: the form may be embedded on them and their subdomains. |
draft required | object | null | |
epoch required | integer | |
epochPub required | string | The current epoch's public key: the draft is sealed to it. |
folders required | object | The form's folders' label IDs (use them with the inbox routes). |
id required | string | Pattern: ^frm_. |
live required | FormDefinition | null | |
name required | string | |
notifyMe required | boolean | Whether the person asking is told about new responses. |
orgId required | string | |
responsePrice required | string | A response's price in dollars (an exact decimal string): what releasing a held one costs. |
runBy required | string | null | |
settings required | object | |
status required | draft | live | paused | suspended | |
today required | FormDay | |
url required | string | Its link to share: on the organization's pages address (https://<slug>.k8hq.page/f/...) when organization pages are on and it has one, else https://k8hq.page/f/... (which works either way). |
version required | integer | How many times it was published (0: never). |
createdAt | string | |
createdAttribution | Attribution | |
embedUrl | string | The address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin). |
pausedReason | string | Why it's paused: person (a member). |
publishedAt | string | |
publishedAttribution | Attribution | |
suite | HPKESuite | |
updatedAttribution | Attribution |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | Form | The form. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or the form isn't in a state that allows this (conflict: resuming a form that isn't paused by a member, publishing a suspended one). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Publish a form
Publishes the definition (plaintext: it's a publication) and makes the form live; its page shows it within a minute (it's cached at the edge for 60 seconds). The version before stays accepted for 24 hours, so a page left open still sends. Needs a recent passkey, credit, and a verified domain in the organization (its page says who runs it); an organization whose payer is still new may have 3 live forms, 100 after. Publishing a form a member paused resumes it. Metered forms.edits.
For the web app. 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 |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
definition required | FormDefinition |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
deliveryInbox required | object | null | |
domains required | string[] | The organization's verified domains: the form may be embedded on them and their subdomains. |
draft required | object | null | |
epoch required | integer | |
epochPub required | string | The current epoch's public key: the draft is sealed to it. |
folders required | object | The form's folders' label IDs (use them with the inbox routes). |
id required | string | Pattern: ^frm_. |
live required | FormDefinition | null | |
name required | string | |
notifyMe required | boolean | Whether the person asking is told about new responses. |
orgId required | string | |
responsePrice required | string | A response's price in dollars (an exact decimal string): what releasing a held one costs. |
runBy required | string | null | |
settings required | object | |
status required | draft | live | paused | suspended | |
today required | FormDay | |
url required | string | Its link to share: on the organization's pages address (https://<slug>.k8hq.page/f/...) when organization pages are on and it has one, else https://k8hq.page/f/... (which works either way). |
version required | integer | How many times it was published (0: never). |
createdAt | string | |
createdAttribution | Attribution | |
embedUrl | string | The address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin). |
pausedReason | string | Why it's paused: person (a member). |
publishedAt | string | |
publishedAttribution | Attribution | |
suite | HPKESuite | |
updatedAttribution | Attribution |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | Form | The form. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | No credit (out_of_credit), or the organization is read-only (read_only): publishing needs credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or the form isn't in a state that allows this (conflict: resuming a form that isn't paused by a member, publishing a suspended one). |
| 410 | application/problem+json | The organization is closed. |
| 422 | application/problem+json | Refused (rejected): detail says why, and fields what's wrong with each field, by field ID. |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Add responses to boards
Up to 20 independent adds and 8 MiB in all. The same authority and pairing checks apply separately to every entry. Results are in request order; a refusal or failure leaves other results intact. Poll each pending op. Idempotency-Key replays the entire ordered result.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
responses required | FormBoardBulkEntry[] |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
results required | FormBoardAddResult[] |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | One result per entry. |
| 400 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 404 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 409 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 413 | application/problem+json | The JSON request exceeds 400 KiB for a single add or 8 MiB for bulk. |
| 422 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
Add a response to a board
Requires a person with fresh edit access to the form and board (ticket boards: their inbox), in the same organization. Comment and view-only roles cannot add. Privacy pairing is checked for every attempt. Spam and Held must be rescued or released first. Resolve-first returns an existing item and repairs its response link without a new charge. A ticket operation runs through the durable manual event; poll its op for the outcome. Idempotency-Key replays the request result, including pending.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
response (path) required | string | |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
board required | string | Pattern: ^brd_. |
again | string | The item deleted forever. Only replaces that item’s durable response link; a live item is returned as it stands. Pattern: ^itm_. |
item | object |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
board required | string | |
response required | string | |
state required | pending | done | deleted | failed | |
code | invalid_request | not_found | forbidden | service_disabled | privacy_pairing | response_held | response_unavailable | conflict | sealed_item_required | save_limit | copy_unavailable | copy_deleted | epoch_changed | invalid_item | unavailable | changed | paused | full | full_open | boards_off | |
existing | boolean | |
item | string | |
number | integer | |
op | string | Pattern: ^mop_. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | FormBoardAddResult | Added, already added, or deleted forever. |
| 202 | FormBoardAddResult | Ticket add queued. |
| 400 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 404 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 409 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 413 | application/problem+json | The JSON request exceeds 400 KiB for a single add or 8 MiB for bulk. |
| 422 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | FormBoardAddResult, application/problem+json | A response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem. |
Resume a form
Puts a form a member paused back live. Needs a recent passkey. Metered forms.edits.
For the web app. 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 |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
deliveryInbox required | object | null | |
domains required | string[] | The organization's verified domains: the form may be embedded on them and their subdomains. |
draft required | object | null | |
epoch required | integer | |
epochPub required | string | The current epoch's public key: the draft is sealed to it. |
folders required | object | The form's folders' label IDs (use them with the inbox routes). |
id required | string | Pattern: ^frm_. |
live required | FormDefinition | null | |
name required | string | |
notifyMe required | boolean | Whether the person asking is told about new responses. |
orgId required | string | |
responsePrice required | string | A response's price in dollars (an exact decimal string): what releasing a held one costs. |
runBy required | string | null | |
settings required | object | |
status required | draft | live | paused | suspended | |
today required | FormDay | |
url required | string | Its link to share: on the organization's pages address (https://<slug>.k8hq.page/f/...) when organization pages are on and it has one, else https://k8hq.page/f/... (which works either way). |
version required | integer | How many times it was published (0: never). |
createdAt | string | |
createdAttribution | Attribution | |
embedUrl | string | The address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin). |
pausedReason | string | Why it's paused: person (a member). |
publishedAt | string | |
publishedAttribution | Attribution | |
suite | HPKESuite | |
updatedAttribution | Attribution |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | Form | The form. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or the form isn't in a state that allows this (conflict: resuming a form that isn't paused by a member, publishing a suspended one). |
| 410 | application/problem+json | The organization is closed. |
| 422 | application/problem+json | Refused (rejected): the organization has no verified domain, or already has as many live forms as it may (detail says which). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Count what a shorter retention deletes
How many of the form's responses in New, Done and Spam were received more than days days ago: what the daily sweep deletes for good once retention is set to days (design note 0019 section 11). Read only; the web app shows the number before the change.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
days (query) required | integer | 30, 90 or 365. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
count required | integer | Responses that would be deleted. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The count. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |
Change a form's settings
Its name; its daily limit (dailyCap: 10 to 100,000, or 0 for none; responses past it are held, unbilled, until someone releases them); sharedNetwork (up to 200 responses an hour from one address, not 30); deliveryInbox (for a new choice, an inbox the caller can edit, of the form's organization, not a personal notice inbox or the DMARC reports inbox; empty for none); notifyMe (new-response notices for the caller); replyToField and subjectField (a field of the published form: email; short answer or one choice); embed, embedAny and embedOrigins (where the form may be embedded). Raising the limit above 500, turning it off, turning sharedNetwork on, choosing a delivery inbox and turning on a reply-to or subject field need a recent passkey. Metered forms.edits when something changed. board (forms to boards): see that field. Only people who can edit the form can change these settings. A save that sets a board, a mapping, or an inbox that makes tickets on a board answers 403 service_disabled while the organization has Boards off, before any passkey prompt.
For the web app. 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 |
|---|---|---|
form (path) required | string | Form ID (frm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
|---|---|---|
board | string | Send responses to a board (brd_), or empty for "Don't send to a board". Choosing one needs a person with a recent passkey who can edit the form and the board (for a ticket board, its inbox), on a board of the form's organization, after the form is published; a zero-access form can't send to a board K8 HQ can read. A ticket board's inbox then gets the inbox copy (a different deliveryInbox is refused while it's on). Turning it off needs no passkey and turns that copy off too. An inbox copy into a ticket board's inbox is refused unless that board is chosen here. |
dailyCap | integer | |
deliveryInbox | string | The inbox to copy responses to, or empty to turn copying off. Choosing an inbox requires permission to edit it. |
embed | boolean | |
embedAny | boolean | |
embedOrigins | string[] | |
mapping | object | What each response's item gets on the board (forms to boards): fixed assignees, a priority and a due date. Saved with board, or on its own while a board is chosen (needs a person with a recent passkey who can edit the board). Each assignee must be able to edit the board (not only view or comment); each item checks them again and skips anyone who can't, with a history line. A board changed without a mapping drops the old one; "Don't send to a board" drops it too. |
name | string | |
notifyMe | boolean | |
replyToField | string | |
sharedNetwork | boolean | |
subjectField | string |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
deliveryInbox required | object | null | |
domains required | string[] | The organization's verified domains: the form may be embedded on them and their subdomains. |
draft required | object | null | |
epoch required | integer | |
epochPub required | string | The current epoch's public key: the draft is sealed to it. |
folders required | object | The form's folders' label IDs (use them with the inbox routes). |
id required | string | Pattern: ^frm_. |
live required | FormDefinition | null | |
name required | string | |
notifyMe required | boolean | Whether the person asking is told about new responses. |
orgId required | string | |
responsePrice required | string | A response's price in dollars (an exact decimal string): what releasing a held one costs. |
runBy required | string | null | |
settings required | object | |
status required | draft | live | paused | suspended | |
today required | FormDay | |
url required | string | Its link to share: on the organization's pages address (https://<slug>.k8hq.page/f/...) when organization pages are on and it has one, else https://k8hq.page/f/... (which works either way). |
version required | integer | How many times it was published (0: never). |
createdAt | string | |
createdAttribution | Attribution | |
embedUrl | string | The address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin). |
pausedReason | string | Why it's paused: person (a member). |
publishedAt | string | |
publishedAttribution | Attribution | |
suite | HPKESuite | |
updatedAttribution | Attribution |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | Form | The form. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 403 | application/problem+json | The token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | A request with the same Idempotency-Key is still running (in_progress), or access or the form's board setting changed. Reload the form before trying again (conflict). |
| 410 | application/problem+json | The organization is closed. |
| 422 | application/problem+json | The inbox can't take a form's responses, or the reply-to or subject field isn't one of the published form's fields of the right kind. |
| 426 | application/problem+json | K8 HQ has been updated. Reload this page. |
| 429 | application/problem+json | Too many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response. |
| 503 | application/problem+json | Temporary failure; try again (unavailable). |