Help desk — K8 HQ Content API
Help desk operations for K8 HQ Content API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
Before making requests, read the authentication and request requirements.
A ticket board's saved replies, automations and satisfaction survey switch.
Saved replies are sealed in the browser like other board text. Automations assign new tickets in turn and notify people when tickets are done. The survey switch decides whether a reply that solves a ticket may ask the customer for a rating. See board setup, encryption and synchronization before making requests.
Base URL
| Base URL | For |
https://api.k8hq.com/v1 | API tokens and the K8 HQ web app |
Endpoints
Help desk
Read a ticket board's automatic acknowledgement
GET/boards/{board}/acknowledgement
The acknowledgement's switch and text (the defaults until saved), who it sends for, the last one sent and today's counts, whether the caller may change it or turn it on, whether the inbox allows automatic mail, whether the organization is new (acknowledgements count toward its daily sending limit), and active mail rules on the inbox that also reply automatically. People only.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Response body (JSON)
| Field | Type | Description |
body required | string | |
on required | boolean | |
subject required | string | |
version required | integer | The help desk settings record's version (0: never saved). |
automaticMail | boolean | |
boundAt | string | |
by | string | The member it sends for (mem_). |
canEdit | boolean | |
defaults | object | |
lastSent | object | |
maySend | boolean | |
newAccount | boolean | |
pausedWhy | string | owner_left or no_sending: it turned itself off because that member lost access or rules.sending. |
placeholders | string[] | |
refusedToday | integer | Not sent today because of a cap or the sending pipeline. |
replyRules | object[] | |
sentToday | integer | |
Responses
| Status | Body | Meaning |
| 200 | AckSetting | The acknowledgement setting. |
| 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). |
Turn a ticket board's automatic acknowledgement on or off, or change its text
PUT/boards/{board}/acknowledgement
While it's on, each new ticket opened by email gets an automatic reply with its number, from the address the customer wrote to, sent by the cell through the outbound pipeline (probation, the credit gate, the outbound scan) as sys_helpdesk on behalf of the member who turned it on. Never to automated mail, spam, mail that failed sender checks, form copies, follow-ups or mail moved out of Spam; once per ticket; at most 3 a day per requester and 500 a day per board; marked Auto-Submitted: auto-replied. Whoever may change the board's automations may save it, signed in to the web app; tokens can't. Turning it on, or changing its text while it's on, also needs rules.sending on the board's inbox, the inbox's automatic-mail setting (rulesMaySend, else 409) and a passkey confirmation of exactly that text at the version read (x-k8hq-confirm: board.autoreply, design note 0013). Turning it off needs none. If-Match is the help desk settings version read (412 if it changed). Placeholders: {ticket.number}, {ticket.subject}, {board.name}, {portal.link_line} (body only). A change is metered as a board change and emits board.settings.changed naming ack.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
If-Match (header) required | string | The help desk settings version read, initially 0. |
Request body (JSON)
| Field | Type | Description |
body required | string | |
on required | boolean | |
subject required | string | |
{"body":"Hi,\n\nThanks for getting in touch. We've received your message and opened request {ticket.number}. We'll reply as soon as we can.\n\n{board.name}\n","on":true,"subject":"Re: {ticket.subject} [{ticket.number}]"}
Response body (JSON)
| Field | Type | Description |
body required | string | |
on required | boolean | |
subject required | string | |
version required | integer | The help desk settings record's version (0: never saved). |
automaticMail | boolean | |
boundAt | string | |
by | string | The member it sends for (mem_). |
canEdit | boolean | |
defaults | object | |
lastSent | object | |
maySend | boolean | |
newAccount | boolean | |
pausedWhy | string | owner_left or no_sending: it turned itself off because that member lost access or rules.sending. |
placeholders | string[] | |
refusedToday | integer | Not sent today because of a cap or the sending pipeline. |
replyRules | object[] | |
sentToday | integer | |
Responses
| Status | Body | Meaning |
| 200 | AckSetting | The acknowledgement setting. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | Sign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm. |
| 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 | Not allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | Automatic mail is off for the board's inbox (rejected), or the confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired). |
| 412 | application/problem+json | The setting changed since it was read (version_mismatch): confirm again. |
| 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 board automations
GET/boards/{board}/helpdesk
For a person signed in with board access. Settings live separately from the board record. Paused recipes explain why they stopped. No token access.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | |
Response body (JSON)
| Field | Type | Description |
recipes required | BoardRecipe[] | |
schemaVersion required | integer | |
version required | integer | |
canEdit | boolean | Returned on GET. True when you have full board access and can change these settings. |
Responses
| Status | Body | Meaning |
| 200 | BoardHelpdesk | Versioned help desk recipe settings. |
| 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). |
| 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). |
Save board automations
PUT/boards/{board}/helpdesk
For a person signed in who can change this board’s settings (the board owner grant, or the linked inbox owner grant for tickets). If-Match is the settings version, initially 0. At most 20 assign-by-tag lines and one notify-done recipe on either board kind, plus one assign-new recipe on a ticket board. The first matching tag line wins; replace allows it to change an existing assignment. Turning a recipe on binds it to the current member until it is turned off. Saving other settings keeps that member. Every run checks their full access again and pauses if they leave or lose it. Full members only for assignees and notice targets. Recipe changes never trigger recipes. Saves and automatic assignments count as boards.changes; each stored notice counts as boards.notices. Requires Idempotency-Key. No token access.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
If-Match (header) required | string | The settings version, initially 0. |
Request body (JSON)
| Field | Type | Description |
recipes required | BoardRecipe[] | |
Response body (JSON)
| Field | Type | Description |
recipes required | BoardRecipe[] | |
schemaVersion required | integer | |
version required | integer | |
canEdit | boolean | Returned on GET. True when you have full board access and can change these settings. |
Responses
| Status | Body | Meaning |
| 200 | BoardHelpdesk | Versioned help desk recipe settings. |
| 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. |
| 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). |
| 412 | application/problem+json | The settings version changed. Read it again before saving. |
| 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 ticket board's portal switch
GET/boards/{board}/portal
People only. The portal has its own host, portal.k8hq.page. Only verified known addresses receive single-use sign-in links through the sending pipeline. Sessions last 30 days. Turning the portal off revokes its sessions.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Response body (JSON)
| Field | Type | Description |
by required | string | |
form required | string | The form the portal's New request button opens (a frm_ ID), or empty: customers are asked to email the board's inbox. Offered only while the form is published and its ticket route to this board is on. |
gen required | integer | |
linkLines required | boolean | Whether acknowledgements fill {portal.link_line} with the request's link while the portal is on (the web app also adds it to replies). On unless turned off. |
names required | object | What customers see for each status category: todo, active, waiting, done and closed, always all five (the defaults Received, In progress, Waiting for you, Solved and Closed where the board hasn't named one). Plaintext: the cell renders them on the portal. |
on required | boolean | |
version required | integer | |
welcome required | string | A line at the top of the portal's sign-in and request pages; empty for none. Plaintext. |
paused | string | While it's on, why sign-in links can't go out: owner_left, no_sending or automatic_mail_off. Only on a read. |
Responses
| Status | Body | Meaning |
| 200 | PortalSetting | The portal switch and session generation. |
| 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). |
Turn a ticket board's portal on or off
PUT/boards/{board}/portal
People only. The portal has its own host, portal.k8hq.page. Only verified known addresses receive single-use sign-in links through the sending pipeline. Sessions last 30 days. Turning the portal off revokes its sessions. Requires boards.portal, full board access and If-Match. Enabling also requires rules.sending on the inbox, automatic mail on, a verified domain and a bound board.portal passkey confirmation. Existing tickets are backfilled using verified sender checks before sign-in is enabled.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
If-Match (header) required | string | The setting version read. |
Request body (JSON)
| Field | Type | Description |
on required | boolean | |
{"on":true}
Response body (JSON)
| Field | Type | Description |
by required | string | |
form required | string | The form the portal's New request button opens (a frm_ ID), or empty: customers are asked to email the board's inbox. Offered only while the form is published and its ticket route to this board is on. |
gen required | integer | |
linkLines required | boolean | Whether acknowledgements fill {portal.link_line} with the request's link while the portal is on (the web app also adds it to replies). On unless turned off. |
names required | object | What customers see for each status category: todo, active, waiting, done and closed, always all five (the defaults Received, In progress, Waiting for you, Solved and Closed where the board hasn't named one). Plaintext: the cell renders them on the portal. |
on required | boolean | |
version required | integer | |
welcome required | string | A line at the top of the portal's sign-in and request pages; empty for none. Plaintext. |
paused | string | While it's on, why sign-in links can't go out: owner_left, no_sending or automatic_mail_off. Only on a read. |
Responses
| Status | Body | Meaning |
| 200 | PortalSetting | The portal switch and session generation. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | Sign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm. |
| 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 | Not allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired). |
| 412 | application/problem+json | The setting changed since it was read (version_mismatch): confirm again. |
| 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). |
Block or unblock a portal address
POST/boards/{board}/portal/block
People with full access to the ticket board can block a customer address, ending its sessions and stopping sign-in mail. Unblocking permits new sign-ins. The sign-in page never reveals the block.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
address required | string | |
blocked required | boolean | |
Response body (JSON)
| Field | Type | Description |
blocked required | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The portal switch and session generation. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | Sign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm. |
| 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 | Not allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired). |
| 412 | application/problem+json | The setting changed since it was read (version_mismatch): confirm again. |
| 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 customer's portal access
GET/boards/{board}/portal/customer
People only, for those who may block addresses from the portal. Says whether the address is blocked and when it last signed in to this board's portal. Reads one record; nothing is sent.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
address (query) required | string | The customer's email address. |
Response body (JSON)
| Field | Type | Description |
blocked required | boolean | |
lastSignInAt | string | When it last signed in; absent if it never has. |
Responses
| Status | Body | Meaning |
| 200 | JSON | The address's portal access. |
| 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 ticket board's portal text
PUT/boards/{board}/portal/settings
People only. Sets the status names customers see (each 1 to 30 characters on one line; an empty name goes back to the default), the welcome line (at most 300 characters on one line, or empty) and whether acknowledgements carry the request's portal link. All three are plaintext the cell renders. Changing the names, welcome line or link lines always needs a passkey confirmation bound to exactly that text at the version read (x-k8hq-confirm: board.portal with textHash, design note 0013); changing only form doesn't, as the switch's checks and the form's route cover it. It doesn't change the switch or end sessions. Requires boards.portal, full board access and If-Match (the setting version read; 412 if it changed). Metered as a board change; emits board.settings.changed naming portal. form chooses what the portal's New request opens: a published form whose responses make tickets on this board (checked freshly: you need access to the form and an edit role on the board's inbox), or empty for email.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
If-Match (header) required | string | The setting version read. |
Request body (JSON)
| Field | Type | Description |
linkLines required | boolean | |
names required | object | Names by status category (todo, active, waiting, done, closed); a category left out or empty uses the default. |
welcome required | string | |
form | string | Optional. A published form whose responses make tickets on this board and that you can open, or empty for email; left out, it stays as it is. Otherwise 422. |
{"linkLines":true,"names":{"waiting":"Your turn"},"welcome":"We answer within one working day."}
Response body (JSON)
| Field | Type | Description |
by required | string | |
form required | string | The form the portal's New request button opens (a frm_ ID), or empty: customers are asked to email the board's inbox. Offered only while the form is published and its ticket route to this board is on. |
gen required | integer | |
linkLines required | boolean | Whether acknowledgements fill {portal.link_line} with the request's link while the portal is on (the web app also adds it to replies). On unless turned off. |
names required | object | What customers see for each status category: todo, active, waiting, done and closed, always all five (the defaults Received, In progress, Waiting for you, Solved and Closed where the board hasn't named one). Plaintext: the cell renders them on the portal. |
on required | boolean | |
version required | integer | |
welcome required | string | A line at the top of the portal's sign-in and request pages; empty for none. Plaintext. |
paused | string | While it's on, why sign-in links can't go out: owner_left, no_sending or automatic_mail_off. Only on a read. |
Responses
| Status | Body | Meaning |
| 200 | PortalSetting | The portal setting, with its new version. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | Sign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm. |
| 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 | Not allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired). |
| 412 | application/problem+json | The setting changed since it was read (version_mismatch): confirm again. |
| 422 | application/problem+json | The form can't be offered (rejected): it isn't published, doesn't make tickets on this board, or you can't open it. |
| 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 saved replies
GET/boards/{board}/saved-replies
People with access to a ticket board may list its shared saved replies, including view-and-comment members. Access comes from its inbox. Task boards return 400. Pages hold at most 50 records; follow cursor until absent. Keep the first page syncToken and use GET /boards/{board}/items?since=... for savedReplies and deletedSavedReplies. When also listing items, capture the board token before either list and sync from that token after both lists finish. The server returns sealed bytes only, including for zero-access boards. Metered boards.listed per record.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
cursor (query) | string | The nextCursor of the previous page. |
Response body (JSON)
| Field | Type | Description |
savedReplies required | SavedReply[] | |
syncToken required | string | |
cursor | string | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Saved replies and the board sync token. |
| 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). |
Save a shared reply
PUT/boards/{board}/saved-replies/{reply}
Full ticket board members may create or replace a saved reply. Task boards return 400. People only; no passkey needed. Send If-Match: 0 to create using a fresh browser-minted srp_ ID, or the current version to replace it. At most 200 per board. Seal a fresh DEK to the board epoch key with seal ID <brd>|sr|<srp>|v<n>, where n is the next version. Frame two v2 parts: meta (JSON with name, at most 80 characters, within 491 bytes; the browser checks the character count) and body (composer text, at most 8 KB). The complete framed object is at most 16 KB. Names and text never reach K8 HQ as plaintext. Metered boards.saved_replies once per successful save.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
reply (path) required | string | |
If-Match (header) required | string | The version you changed (a number; quoted is fine): the item's version for fields, its head for its text, the config's version for the config. |
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 |
bytes required | integer | |
epoch required | integer | |
id required | string | Pattern: ^srp_[0-9A-HJKMNP-TV-Z]{26}$. |
object required | string | |
savedAt required | string | |
savedBy required | string | |
schemaVersion required | 1 | |
version required | integer | |
wdek required | string | |
Responses
| Status | Body | Meaning |
| 200 | SavedReply | The saved reply at its new 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 item isn't in the state this needs (conflict: in Trash, not in Trash, linked already). |
| 412 | application/problem+json | If-Match named an older version (version_mismatch); item, when present, is the item as it is now. |
| 413 | application/problem+json | The sealed object exceeds 16 KB, the meta part exceeds 491 bytes of text, or the body exceeds 8 KB of text (plus seal overhead). |
| 422 | application/problem+json | The board already has 200 saved replies, or a new ID has the wrong clock time. |
| 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). |
Delete a shared reply
DELETE/boards/{board}/saved-replies/{reply}
Full ticket board members only, signed in to K8 HQ. Task boards return 400. If-Match must name the current version. The deletion appears in board sync as deletedSavedReplies. Metered boards.saved_replies once per successful delete.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
reply (path) required | string | |
If-Match (header) required | string | The version you changed (a number; quoted is fine): the item's version for fields, its head for its text, the config's version for the config. |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Responses
| Status | Body | Meaning |
| 204 | | Deleted. |
| 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 item isn't in the state this needs (conflict: in Trash, not in Trash, linked already). |
| 412 | application/problem+json | If-Match named an older version (version_mismatch); item, when present, is the item as it is now. |
| 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 ticket board's satisfaction survey switch
GET/boards/{board}/survey
Whether replies that solve tickets may carry a satisfaction survey, and the setting's version. People only.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Response body (JSON)
| Field | Type | Description |
on required | boolean | |
version required | integer | The help desk settings record's version (0: never saved). |
Responses
| Status | Body | Meaning |
| 200 | SurveySetting | The survey switch. |
| 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). |
Turn a ticket board's satisfaction survey on or off
PUT/boards/{board}/survey
While it's on, a reply that solves a ticket may carry a satisfaction survey (Great, Okay, Not good) that the customer answers on a K8 HQ page (k8hq.page). Any member of the board may change it, signed in to the web app; tokens can't. Turning it on needs a passkey confirmation of exactly this change for the setting as read (x-k8hq-confirm: board.survey, design note 0013), and is made only if the setting is still at that version: 412 if it changed meanwhile (confirm again). Turning it off needs none. A change is metered as a board change and emits board.settings.changed naming survey.
For the web app.
Parameters
| Name | Type | Description |
board (path) required | string | Board ID (brd_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
on required | boolean | |
{"on":true}
Response body (JSON)
| Field | Type | Description |
on required | boolean | |
version required | integer | The help desk settings record's version (0: never saved). |
Responses
| Status | Body | Meaning |
| 200 | SurveySetting | The survey switch. |
| 400 | application/problem+json | The request is malformed (invalid). |
| 401 | application/problem+json | Sign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm. |
| 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 | Not allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person). |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired). |
| 412 | application/problem+json | The setting changed since it was read (version_mismatch): confirm again. |
| 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). |