K8 HQ

Forms — K8 HQ Content API

Forms operations for K8 HQ Content API. Requests, permissions and responses.

Version 1OpenAPI description (JSON)

Browse operation groups

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 URLFor
https://api.k8hq.com/v1API tokens and the K8 HQ web app

Endpoints

Forms

Forms adding items to a board

GET/boards/{board}/forms

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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).

Response body (JSON)

FieldTypeDescription
forms requiredobject[]

Responses

StatusBodyMeaning
200JSONThe forms.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Stop a form adding items to a board

POST/boards/{board}/forms/{form}/stop

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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
form (path) requiredstring
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Response body (JSON)

FieldTypeDescription
stopped requiredboolean

Responses

StatusBodyMeaning
200JSONWhether it stopped anything (false: it wasn't sending to this board).
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA request with this Idempotency-Key is still running (in_progress).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Erase a response or a person's data

POST/erasure

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

NameTypeDescription
org (query)stringThe 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)

FieldTypeDescription
browserMatched requiredintegerItems deleted that the browser matched (tasks on zero-access boards).
copies requiredinteger
detached requiredinteger
foundSince requiredintegerEntries found now that weren't chosen: find again.
items requiredinteger
kept requiredobject[]Chosen items left because they have subitems.
otherMessages requiredobject[]Other messages on erased tickets that stay in each inbox; people can delete them there.
responses requiredinteger
searched requiredErasureSearched
skipped requiredintegerChosen entries no longer found, or changed meanwhile.

Responses

StatusBodyMeaning
200ErasureReceiptWhat was deleted.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonSign 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.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonThe 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).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Find what a response or a person made

POST/erasure/find

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

NameTypeDescription
org (query)stringThe 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)

FieldTypeDescription
addressstring
cursorstringFor 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.
formstringPattern: ^frm_.
responsestringPattern: ^msg_.

Response body (JSON)

FieldTypeDescription
copies requiredobject[]
detach requiredobject[]Tickets a copy joined but didn't open: erasing the copy takes it off the ticket, and the ticket stays.
items requiredobject[]
responses requiredobject[]
searched requiredErasureSearched
unchecked requiredobject[]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.
nextCursorstringMore 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.
uncheckedInboxesstring[]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.
uncheckedResponsesobject[]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

StatusBodyMeaning
200ErasureFoundWhat was found.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

List forms

GET/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

NameTypeDescription
org (query)stringThe 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)

FieldTypeDescription
forms requiredFormSummary[]

Responses

StatusBodyMeaning
200JSONThe forms.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Get a form

GET/forms/{form}

Its status, published definition, sealed draft, settings, folders and today's counts.

For the web app.

Parameters

NameTypeDescription
form (path) requiredstringForm ID (frm_…).

Response body (JSON)

FieldTypeDescription
deliveryInbox requiredobject | null
domains requiredstring[]The organization's verified domains: the form may be embedded on them and their subdomains.
draft requiredobject | null
epoch requiredinteger
epochPub requiredstringThe current epoch's public key: the draft is sealed to it.
folders requiredobjectThe form's folders' label IDs (use them with the inbox routes).
id requiredstringPattern: ^frm_.
live requiredFormDefinition | null
name requiredstring
notifyMe requiredbooleanWhether the person asking is told about new responses.
orgId requiredstring
responsePrice requiredstringA response's price in dollars (an exact decimal string): what releasing a held one costs.
runBy requiredstring | null
settings requiredobject
status requireddraft | live | paused | suspended
today requiredFormDay
url requiredstringIts 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 requiredintegerHow many times it was published (0: never).
createdAtstring
createdAttributionAttribution
embedUrlstringThe address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin).
pausedReasonstringWhy it's paused: person (a member).
publishedAtstring
publishedAttributionAttribution
suiteHPKESuite
updatedAttributionAttribution

Responses

StatusBodyMeaning
200FormThe form.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Read a manual add result

GET/forms/{form}/board-operations/{op}

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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
op (path) requiredstring

Response body (JSON)

FieldTypeDescription
board requiredstring
response requiredstring
state requiredpending | done | deleted | failed
codeinvalid_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
existingboolean
itemstring
numberinteger
opstringPattern: ^mop_.

Responses

StatusBodyMeaning
200FormBoardAddResultThe operation and its outcome.
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
404FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
409FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
422application/problem+jsonThe destination board's privacy does not match the form's (privacy pairing), so the add is refused.
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.

Save a form's draft

PUT/forms/{form}/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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
If-Match (header) requiredstringThe draft version you edited (a number; quoted is fine): the form's draft.version, 0 before its first save.
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
epoch requiredinteger
object requiredstring
wdek requiredstring

Response body (JSON)

FieldTypeDescription
savedAt requiredstring
version requiredinteger

Responses

StatusBodyMeaning
200JSONThe saved draft's version.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA 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).
410application/problem+jsonThe organization is closed.
412application/problem+jsonIf-Match named an older version (version_mismatch).
413application/problem+jsonThe draft is over 32 KB (too_large).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Release held responses

POST/forms/{form}/held/release

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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
allboolean
messageIdsstring[]

Response body (JSON)

FieldTypeDescription
more requiredboolean
released requiredinteger

Responses

StatusBodyMeaning
200JSONHow many were released.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA 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).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Pause a form

POST/forms/{form}/pause

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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Response body (JSON)

FieldTypeDescription
deliveryInbox requiredobject | null
domains requiredstring[]The organization's verified domains: the form may be embedded on them and their subdomains.
draft requiredobject | null
epoch requiredinteger
epochPub requiredstringThe current epoch's public key: the draft is sealed to it.
folders requiredobjectThe form's folders' label IDs (use them with the inbox routes).
id requiredstringPattern: ^frm_.
live requiredFormDefinition | null
name requiredstring
notifyMe requiredbooleanWhether the person asking is told about new responses.
orgId requiredstring
responsePrice requiredstringA response's price in dollars (an exact decimal string): what releasing a held one costs.
runBy requiredstring | null
settings requiredobject
status requireddraft | live | paused | suspended
today requiredFormDay
url requiredstringIts 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 requiredintegerHow many times it was published (0: never).
createdAtstring
createdAttributionAttribution
embedUrlstringThe address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin).
pausedReasonstringWhy it's paused: person (a member).
publishedAtstring
publishedAttributionAttribution
suiteHPKESuite
updatedAttributionAttribution

Responses

StatusBodyMeaning
200FormThe form.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA 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).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Publish a form

POST/forms/{form}/publish

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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
definition requiredFormDefinition

Response body (JSON)

FieldTypeDescription
deliveryInbox requiredobject | null
domains requiredstring[]The organization's verified domains: the form may be embedded on them and their subdomains.
draft requiredobject | null
epoch requiredinteger
epochPub requiredstringThe current epoch's public key: the draft is sealed to it.
folders requiredobjectThe form's folders' label IDs (use them with the inbox routes).
id requiredstringPattern: ^frm_.
live requiredFormDefinition | null
name requiredstring
notifyMe requiredbooleanWhether the person asking is told about new responses.
orgId requiredstring
responsePrice requiredstringA response's price in dollars (an exact decimal string): what releasing a held one costs.
runBy requiredstring | null
settings requiredobject
status requireddraft | live | paused | suspended
today requiredFormDay
url requiredstringIts 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 requiredintegerHow many times it was published (0: never).
createdAtstring
createdAttributionAttribution
embedUrlstringThe address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin).
pausedReasonstringWhy it's paused: person (a member).
publishedAtstring
publishedAttributionAttribution
suiteHPKESuite
updatedAttributionAttribution

Responses

StatusBodyMeaning
200FormThe form.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonNo credit (out_of_credit), or the organization is read-only (read_only): publishing needs credit.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA 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).
410application/problem+jsonThe organization is closed.
422application/problem+jsonRefused (rejected): detail says why, and fields what's wrong with each field, by field ID.
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Add responses to boards

POST/forms/{form}/responses/board

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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
responses requiredFormBoardBulkEntry[]

Response body (JSON)

FieldTypeDescription
results requiredFormBoardAddResult[]

Responses

StatusBodyMeaning
200JSONOne result per entry.
400FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
404FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
409FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
413application/problem+jsonThe JSON request exceeds 400 KiB for a single add or 8 MiB for bulk.
422FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.

Add a response to a board

POST/forms/{form}/responses/{response}/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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
response (path) requiredstring
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
board requiredstringPattern: ^brd_.
againstringThe item deleted forever. Only replaces that item’s durable response link; a live item is returned as it stands. Pattern: ^itm_.
itemobject

Response body (JSON)

FieldTypeDescription
board requiredstring
response requiredstring
state requiredpending | done | deleted | failed
codeinvalid_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
existingboolean
itemstring
numberinteger
opstringPattern: ^mop_.

Responses

StatusBodyMeaning
200FormBoardAddResultAdded, already added, or deleted forever.
202FormBoardAddResultTicket add queued.
400FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
404FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
409FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
413application/problem+jsonThe JSON request exceeds 400 KiB for a single add or 8 MiB for bulk.
422FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503FormBoardAddResult, application/problem+jsonA response-specific refusal uses FormBoardAddResult. Authentication, form admission and request errors use Problem.

Resume a form

POST/forms/{form}/resume

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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Response body (JSON)

FieldTypeDescription
deliveryInbox requiredobject | null
domains requiredstring[]The organization's verified domains: the form may be embedded on them and their subdomains.
draft requiredobject | null
epoch requiredinteger
epochPub requiredstringThe current epoch's public key: the draft is sealed to it.
folders requiredobjectThe form's folders' label IDs (use them with the inbox routes).
id requiredstringPattern: ^frm_.
live requiredFormDefinition | null
name requiredstring
notifyMe requiredbooleanWhether the person asking is told about new responses.
orgId requiredstring
responsePrice requiredstringA response's price in dollars (an exact decimal string): what releasing a held one costs.
runBy requiredstring | null
settings requiredobject
status requireddraft | live | paused | suspended
today requiredFormDay
url requiredstringIts 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 requiredintegerHow many times it was published (0: never).
createdAtstring
createdAttributionAttribution
embedUrlstringThe address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin).
pausedReasonstringWhy it's paused: person (a member).
publishedAtstring
publishedAttributionAttribution
suiteHPKESuite
updatedAttributionAttribution

Responses

StatusBodyMeaning
200FormThe form.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA 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).
410application/problem+jsonThe organization is closed.
422application/problem+jsonRefused (rejected): the organization has no verified domain, or already has as many live forms as it may (detail says which).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Count what a shorter retention deletes

GET/forms/{form}/retention-preview

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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
days (query) requiredinteger30, 90 or 365.

Response body (JSON)

FieldTypeDescription
count requiredintegerResponses that would be deleted.

Responses

StatusBodyMeaning
200JSONThe count.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).

Change a form's settings

PATCH/forms/{form}/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

NameTypeDescription
form (path) requiredstringForm ID (frm_…).
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Request body (JSON)

FieldTypeDescription
boardstringSend 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.
dailyCapinteger
deliveryInboxstringThe inbox to copy responses to, or empty to turn copying off. Choosing an inbox requires permission to edit it.
embedboolean
embedAnyboolean
embedOriginsstring[]
mappingobjectWhat 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.
namestring
notifyMeboolean
replyToFieldstring
sharedNetworkboolean
subjectFieldstring

Response body (JSON)

FieldTypeDescription
deliveryInbox requiredobject | null
domains requiredstring[]The organization's verified domains: the form may be embedded on them and their subdomains.
draft requiredobject | null
epoch requiredinteger
epochPub requiredstringThe current epoch's public key: the draft is sealed to it.
folders requiredobjectThe form's folders' label IDs (use them with the inbox routes).
id requiredstringPattern: ^frm_.
live requiredFormDefinition | null
name requiredstring
notifyMe requiredbooleanWhether the person asking is told about new responses.
orgId requiredstring
responsePrice requiredstringA response's price in dollars (an exact decimal string): what releasing a held one costs.
runBy requiredstring | null
settings requiredobject
status requireddraft | live | paused | suspended
today requiredFormDay
url requiredstringIts 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 requiredintegerHow many times it was published (0: never).
createdAtstring
createdAttributionAttribution
embedUrlstringThe address an embed's iframe uses: always https://k8hq.page/f/... (the sizing script accepts only that origin).
pausedReasonstringWhy it's paused: person (a member).
publishedAtstring
publishedAttributionAttribution
suiteHPKESuite
updatedAttributionAttribution

Responses

StatusBodyMeaning
200FormThe form.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe 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.
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonA 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).
410application/problem+jsonThe organization is closed.
422application/problem+jsonThe 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.
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo 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.
503application/problem+jsonTemporary failure; try again (unavailable).