K8 HQ

Ticket messages — K8 HQ Content API

Ticket messages 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.

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

Endpoints

Ticket messages

List a ticket's messages

GET/boards/{board}/items/{item}/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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).
cursor (query)stringThe nextCursor of the previous page.

Response body (JSON)

FieldTypeDescription
inbox requiredstringThe board's inbox: open each message there.
messages requiredTicketMessage[]
cursorstring

Responses

StatusBodyMeaning
200JSONThe ticket's messages, oldest first (200 a page).
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 a ticket's satisfaction answers

GET/boards/{board}/items/{item}/ratings

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

NameTypeDescription
board (path) requiredstringBoard ID (brd_…).
item (path) requiredstringItem ID (itm_…).

Response body (JSON)

FieldTypeDescription
ratings requiredSurveyAnswer[]

Responses

StatusBodyMeaning
200JSONThe answers.
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).

Say you're replying

POST/boards/{board}/items/{item}/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

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

Response body (JSON)

FieldTypeDescription
assignees requiredstring[]
bytes requiredinteger
comments requiredinteger
createdAt requiredstring
createdBy requiredstring
head requiredintegerIts current version's number.
headEpoch requiredinteger
headWdek requiredstring
id requiredstring
kind requiredtask | ticket
labels requiredstring[]
links requiredinteger
number requiredinteger
order requiredstringIts fractional index in its column.
priority requiredlow | normal | high | urgent
status requiredstring
titleCt requiredstringThe head version's sealed title part (seal ID <item>|v<head>).
updatedAt requiredstring
updatedBy requiredstring
version requiredintegerThe record's version: If-Match for its fields.
assessmentsAssessmentSummaryIts 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.
childrenintegerAll direct child identities, including Trash.
connectionsstring[]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.
createdAttributionAttributionWhat authorized its creation. Absent on items created before it was kept.
doneAtstringWhen 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.
duestring
firstReplyAtstringWhen the ticket's first reply went out.
firstReplyBystringThe member (mem_) whose reply from the board was the ticket's first; absent for a reply from a mail app.
formRefobjectOn 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.
inputNeededobject"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.
lastInboundAtstringA ticket: when the requester or a verified participant last wrote.
lastMessagestringA ticket: its newest message (msg_) in the linked inbox.
lastOutboundAtstringA ticket: when a reply last went out.
lastOutboundBystringA ticket: the member whose reply from the board went out last (none for a reply from a mail app).
mergedstring[]Tickets merged into this one (itm_): its timeline shows their messages and notes.
mergedIntostringA ticket merged into another (itm_): its new mail lands there.
messagesintegerA ticket: how many messages it has.
missedobjectWhen 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.
openQuestionsintegerIts questions still waiting for an answer.
ownerstringA task's owner (mem_): the member accountable for it, set explicitly (never its creator or assignees by default). Missing: none.
parentstringSame-board parent ID; absent is top level. Tasks only; at most 3 levels: item, subitem, sub-subitem.
participantsstring[]A ticket: other addresses on it. An address also listed in unverified is still unverified, including after a merge.
purgingstringPermanent deletion is in progress; hierarchy actions are unavailable.
questionsintegerQuestions asked on it, withdrawn ones included.
ratingobjectTickets: the customer's latest satisfaction answer (the latest solve rated). Its comment stays sealed.
readyBoardReadiness
replyingobjectA ticket: who has the reply box open (member to since); entries older than 10 minutes don't count.
requesterstringA ticket: the address that opened it (lower case).
resolveBoardTarget
respondBoardTarget
sendingobjectA ticket: a reply from the board is going out (its claim, until it's in or 2 minutes pass).
solvesintegerHow many times the ticket moved into a done status (Solved).
sourceperson | import | token | email | formHow 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.
tagsstring[]The organization tags on it (tag_ IDs, sorted); absent when it has none.
titlestringTokens only: the head version's title, opened by K8 HQ's servers (metered boards.decrypted).
trashGroupstringThe family Trash operation this item belongs to, if any.
trashedAtstring
unreadablebooleanTokens only: the title's seal didn't open (damaged, or bound to another item).
unverifiedstring[]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.
unverifiedReasonsobjectA 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.
updatedAttributionAttributionWhat authorized its latest change. Absent on items last changed before it was kept.

Responses

StatusBodyMeaning
200BoardItemThe ticket.
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).

Say you've stopped replying

DELETE/boards/{board}/items/{item}/replying

Closing the reply box (sending clears it too).

For the web app.

Parameters

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

Response body (JSON)

FieldTypeDescription
assignees requiredstring[]
bytes requiredinteger
comments requiredinteger
createdAt requiredstring
createdBy requiredstring
head requiredintegerIts current version's number.
headEpoch requiredinteger
headWdek requiredstring
id requiredstring
kind requiredtask | ticket
labels requiredstring[]
links requiredinteger
number requiredinteger
order requiredstringIts fractional index in its column.
priority requiredlow | normal | high | urgent
status requiredstring
titleCt requiredstringThe head version's sealed title part (seal ID <item>|v<head>).
updatedAt requiredstring
updatedBy requiredstring
version requiredintegerThe record's version: If-Match for its fields.
assessmentsAssessmentSummaryIts 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.
childrenintegerAll direct child identities, including Trash.
connectionsstring[]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.
createdAttributionAttributionWhat authorized its creation. Absent on items created before it was kept.
doneAtstringWhen 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.
duestring
firstReplyAtstringWhen the ticket's first reply went out.
firstReplyBystringThe member (mem_) whose reply from the board was the ticket's first; absent for a reply from a mail app.
formRefobjectOn 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.
inputNeededobject"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.
lastInboundAtstringA ticket: when the requester or a verified participant last wrote.
lastMessagestringA ticket: its newest message (msg_) in the linked inbox.
lastOutboundAtstringA ticket: when a reply last went out.
lastOutboundBystringA ticket: the member whose reply from the board went out last (none for a reply from a mail app).
mergedstring[]Tickets merged into this one (itm_): its timeline shows their messages and notes.
mergedIntostringA ticket merged into another (itm_): its new mail lands there.
messagesintegerA ticket: how many messages it has.
missedobjectWhen 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.
openQuestionsintegerIts questions still waiting for an answer.
ownerstringA task's owner (mem_): the member accountable for it, set explicitly (never its creator or assignees by default). Missing: none.
parentstringSame-board parent ID; absent is top level. Tasks only; at most 3 levels: item, subitem, sub-subitem.
participantsstring[]A ticket: other addresses on it. An address also listed in unverified is still unverified, including after a merge.
purgingstringPermanent deletion is in progress; hierarchy actions are unavailable.
questionsintegerQuestions asked on it, withdrawn ones included.
ratingobjectTickets: the customer's latest satisfaction answer (the latest solve rated). Its comment stays sealed.
readyBoardReadiness
replyingobjectA ticket: who has the reply box open (member to since); entries older than 10 minutes don't count.
requesterstringA ticket: the address that opened it (lower case).
resolveBoardTarget
respondBoardTarget
sendingobjectA ticket: a reply from the board is going out (its claim, until it's in or 2 minutes pass).
solvesintegerHow many times the ticket moved into a done status (Solved).
sourceperson | import | token | email | formHow 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.
tagsstring[]The organization tags on it (tag_ IDs, sorted); absent when it has none.
titlestringTokens only: the head version's title, opened by K8 HQ's servers (metered boards.decrypted).
trashGroupstringThe family Trash operation this item belongs to, if any.
trashedAtstring
unreadablebooleanTokens only: the title's seal didn't open (damaged, or bound to another item).
unverifiedstring[]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.
unverifiedReasonsobjectA 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.
updatedAttributionAttributionWhat authorized its latest change. Absent on items last changed before it was kept.

Responses

StatusBodyMeaning
200BoardItemThe ticket.
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).