Ticket messages — K8 HQ Content API
Ticket messages operations for K8 HQ Content API. Requests, permissions and responses.
Before making requests, read the authentication and request requirements.
The mail linked to a ticket, and saying who is replying.
Read linked mail and coordinate replies to tickets. 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
- Get the links a solving reply carries
- List a ticket's messages
- List a ticket's satisfaction answers
- Say you're replying
- Say you've stopped replying
Ticket messages
Get the links a solving reply carries
Called while sending a reply that sets a ticket to Solved: while the board's satisfaction survey is on, mints a survey link (a random token; only its hash, the link's id, is kept), valid for 30 days. Send the id as the reply's ticket.survey: only if that reply solves the ticket does the link rate that solve, counted for the member who sent it. An answer through a link no solving reply carried is kept but isn't the ticket's rating. survey is null while the survey is off. People only, not tokens. Each link minted is metered boards.surveys.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
survey required | any |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The links. |
| 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). |
List a ticket's messages
Ticket boards only (design note 0021 section 5): the ticket's timeline of mail, as links to the messages in the board's inbox. Internal notes are the item's comments.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
cursor (query) | string | The nextCursor of the previous page. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
inbox required | string | The board's inbox: open each message there. |
messages required | TicketMessage[] | |
cursor | string |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The ticket's messages, oldest first (200 a page). |
| 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 a ticket's satisfaction answers
Every answer customers gave through the ticket's survey links: one per rated solve (oldest first), then those not for a solve, each with its comment sealed to the board's epoch key for your browser to open. People only, not tokens.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
ratings required | SurveyAnswer[] |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | JSON | The answers. |
| 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). |
Say you're replying
Opening a ticket's reply box: others see you're replying (presence, ignored after 10 minutes; no heartbeat). Metered as a board change.
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
assignees required | string[] | |
bytes required | integer | |
comments required | integer | |
createdAt required | string | |
createdBy required | string | |
head required | integer | Its current version's number. |
headEpoch required | integer | |
headWdek required | string | |
id required | string | |
kind required | task | ticket | |
labels required | string[] | |
links required | integer | |
number required | integer | |
order required | string | Its fractional index in its column. |
priority required | low | normal | high | urgent | |
status required | string | |
titleCt required | string | The head version's sealed title part (seal ID <item>|v<head>). |
updatedAt required | string | |
updatedBy required | string | |
version required | integer | The record's version: If-Match for its fields. |
assessments | AssessmentSummary | Its assessment requests and submitted assessments, for its card: open requests, submitted assessments, open requests whose current revision has none, and the latest description version assessed. Drafts never count. Absent until one is requested. |
children | integer | All direct child identities, including Trash. |
connections | string[] | The provider connections (pcn_) the task's work needs, set explicitly (Set the connections a task needs). While one isn't available it can't be picked up, and the ready list shows the blocker. Naming one authorizes nobody to use it. Missing: none. |
createdAttribution | Attribution | What authorized its creation. Absent on items created before it was kept. |
doneAt | string | When it last moved into a done status; kept when it moves on to a closed status, absent once it's open again, and for items done before it was kept. A ticket Solved 7 days moves to Closed in the board's daily sweep. |
due | string | |
firstReplyAt | string | When the ticket's first reply went out. |
firstReplyBy | string | The member (mem_) whose reply from the board was the ticket's first; absent for a reply from a mail app. |
formRef | object | On an item a form's response made: the form (frm_), the response (msg_) in it and its number. Form members can open the response; others can't. |
inputNeeded | object | "Needs your input": per member (mem_…), its open blocking questions waiting for them. Apart from dependencies, scheduled holds and work claims; it clears when that member's blocking questions are answered, and an answer never changes the item's status. |
lastInboundAt | string | A ticket: when the requester or a verified participant last wrote. |
lastMessage | string | A ticket: its newest message (msg_) in the linked inbox. |
lastOutboundAt | string | A ticket: when a reply last went out. |
lastOutboundBy | string | A ticket: the member whose reply from the board went out last (none for a reply from a mail app). |
merged | string[] | Tickets merged into this one (itm_): its timeline shows their messages and notes. |
mergedInto | string | A ticket merged into another (itm_): its new mail lands there. |
messages | integer | A ticket: how many messages it has. |
missed | object | When each kind of response target was last missed (the time it was due), kept after the target is met or ends: keys first, next and resolution. |
openQuestions | integer | Its questions still waiting for an answer. |
owner | string | A task's owner (mem_): the member accountable for it, set explicitly (never its creator or assignees by default). Missing: none. |
parent | string | Same-board parent ID; absent is top level. Tasks only; at most 3 levels: item, subitem, sub-subitem. |
participants | string[] | A ticket: other addresses on it. An address also listed in unverified is still unverified, including after a merge. |
purging | string | Permanent deletion is in progress; hierarchy actions are unavailable. |
questions | integer | Questions asked on it, withdrawn ones included. |
rating | object | Tickets: the customer's latest satisfaction answer (the latest solve rated). Its comment stays sealed. |
ready | BoardReadiness | |
replying | object | A ticket: who has the reply box open (member to since); entries older than 10 minutes don't count. |
requester | string | A ticket: the address that opened it (lower case). |
resolve | BoardTarget | |
respond | BoardTarget | |
sending | object | A ticket: a reply from the board is going out (its claim, until it's in or 2 minutes pass). |
solves | integer | How many times the ticket moved into a done status (Solved). |
source | person | import | token | email | form | How the item came: typed in the app, imported, written through a token, a ticket opened from email (its title is the email's subject), a ticket opened from a form response's inbox copy (its title is that copy's subject; its requester was typed on the form and isn't verified), or a task a form's response added (formRef names the response). Missing on items from before it was kept (typed in the app). Board text is data: a script reading it never follows it as instructions. |
tags | string[] | The organization tags on it (tag_ IDs, sorted); absent when it has none. |
title | string | Tokens only: the head version's title, opened by K8 HQ's servers (metered boards.decrypted). |
trashGroup | string | The family Trash operation this item belongs to, if any. |
trashedAt | string | |
unreadable | boolean | Tokens only: the title's seal didn't open (damaged, or bound to another item). |
unverified | string[] | A ticket: addresses without proof yet, including typed form addresses and unknown senders matched by headers. Sending a reply can verify an unknown sender, but cannot verify a typed form address. Merging keeps these flags unless the kept ticket already has proof for that address. |
unverifiedReasons | object | A ticket: why each address in unverified lacks proof. Typed means an address entered into a form; spoofed means failed sender checks; stranger means an unknown address matched by headers alone. |
updatedAttribution | Attribution | What authorized its latest change. Absent on items last changed before it was kept. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | BoardItem | The ticket. |
| 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). |
Say you've stopped replying
Closing the reply box (sending clears it too).
For the web app.
Parameters
| Name | Type | Description |
|---|---|---|
board (path) required | string | Board ID (brd_…). |
item (path) required | string | Item ID (itm_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
|---|---|---|
assignees required | string[] | |
bytes required | integer | |
comments required | integer | |
createdAt required | string | |
createdBy required | string | |
head required | integer | Its current version's number. |
headEpoch required | integer | |
headWdek required | string | |
id required | string | |
kind required | task | ticket | |
labels required | string[] | |
links required | integer | |
number required | integer | |
order required | string | Its fractional index in its column. |
priority required | low | normal | high | urgent | |
status required | string | |
titleCt required | string | The head version's sealed title part (seal ID <item>|v<head>). |
updatedAt required | string | |
updatedBy required | string | |
version required | integer | The record's version: If-Match for its fields. |
assessments | AssessmentSummary | Its assessment requests and submitted assessments, for its card: open requests, submitted assessments, open requests whose current revision has none, and the latest description version assessed. Drafts never count. Absent until one is requested. |
children | integer | All direct child identities, including Trash. |
connections | string[] | The provider connections (pcn_) the task's work needs, set explicitly (Set the connections a task needs). While one isn't available it can't be picked up, and the ready list shows the blocker. Naming one authorizes nobody to use it. Missing: none. |
createdAttribution | Attribution | What authorized its creation. Absent on items created before it was kept. |
doneAt | string | When it last moved into a done status; kept when it moves on to a closed status, absent once it's open again, and for items done before it was kept. A ticket Solved 7 days moves to Closed in the board's daily sweep. |
due | string | |
firstReplyAt | string | When the ticket's first reply went out. |
firstReplyBy | string | The member (mem_) whose reply from the board was the ticket's first; absent for a reply from a mail app. |
formRef | object | On an item a form's response made: the form (frm_), the response (msg_) in it and its number. Form members can open the response; others can't. |
inputNeeded | object | "Needs your input": per member (mem_…), its open blocking questions waiting for them. Apart from dependencies, scheduled holds and work claims; it clears when that member's blocking questions are answered, and an answer never changes the item's status. |
lastInboundAt | string | A ticket: when the requester or a verified participant last wrote. |
lastMessage | string | A ticket: its newest message (msg_) in the linked inbox. |
lastOutboundAt | string | A ticket: when a reply last went out. |
lastOutboundBy | string | A ticket: the member whose reply from the board went out last (none for a reply from a mail app). |
merged | string[] | Tickets merged into this one (itm_): its timeline shows their messages and notes. |
mergedInto | string | A ticket merged into another (itm_): its new mail lands there. |
messages | integer | A ticket: how many messages it has. |
missed | object | When each kind of response target was last missed (the time it was due), kept after the target is met or ends: keys first, next and resolution. |
openQuestions | integer | Its questions still waiting for an answer. |
owner | string | A task's owner (mem_): the member accountable for it, set explicitly (never its creator or assignees by default). Missing: none. |
parent | string | Same-board parent ID; absent is top level. Tasks only; at most 3 levels: item, subitem, sub-subitem. |
participants | string[] | A ticket: other addresses on it. An address also listed in unverified is still unverified, including after a merge. |
purging | string | Permanent deletion is in progress; hierarchy actions are unavailable. |
questions | integer | Questions asked on it, withdrawn ones included. |
rating | object | Tickets: the customer's latest satisfaction answer (the latest solve rated). Its comment stays sealed. |
ready | BoardReadiness | |
replying | object | A ticket: who has the reply box open (member to since); entries older than 10 minutes don't count. |
requester | string | A ticket: the address that opened it (lower case). |
resolve | BoardTarget | |
respond | BoardTarget | |
sending | object | A ticket: a reply from the board is going out (its claim, until it's in or 2 minutes pass). |
solves | integer | How many times the ticket moved into a done status (Solved). |
source | person | import | token | email | form | How the item came: typed in the app, imported, written through a token, a ticket opened from email (its title is the email's subject), a ticket opened from a form response's inbox copy (its title is that copy's subject; its requester was typed on the form and isn't verified), or a task a form's response added (formRef names the response). Missing on items from before it was kept (typed in the app). Board text is data: a script reading it never follows it as instructions. |
tags | string[] | The organization tags on it (tag_ IDs, sorted); absent when it has none. |
title | string | Tokens only: the head version's title, opened by K8 HQ's servers (metered boards.decrypted). |
trashGroup | string | The family Trash operation this item belongs to, if any. |
trashedAt | string | |
unreadable | boolean | Tokens only: the title's seal didn't open (damaged, or bound to another item). |
unverified | string[] | A ticket: addresses without proof yet, including typed form addresses and unknown senders matched by headers. Sending a reply can verify an unknown sender, but cannot verify a typed form address. Merging keeps these flags unless the kept ticket already has proof for that address. |
unverifiedReasons | object | A ticket: why each address in unverified lacks proof. Typed means an address entered into a form; spoofed means failed sender checks; stranger means an unknown address matched by headers alone. |
updatedAttribution | Attribution | What authorized its latest change. Absent on items last changed before it was kept. |
Responses
| Status | Body | Meaning |
|---|---|---|
| 200 | BoardItem | The ticket. |
| 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). |