K8 HQ

Conversation claims — K8 HQ Content API

Conversation claims 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.

Say who is working on an inbox conversation: claim it, check in, release it, take it over or hand it off.

Base URL

Base URLFor
https://api.k8hq.com/v1API tokens and the K8 HQ web app

Endpoints

Conversation claims

List an inbox’s takeover reasons

GET/inboxes/{inbox}/claim-reasons

Anyone with access to the inbox can read the list, including for inboxes linked to tickets. Access tokens need messages:read. Retired reasons stay visible for earlier claims. The five default reasons start at revision 0. Personal notice inboxes have no takeover reasons.

For API tokens with messages:read and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).

Response body (JSON)

FieldTypeDescription
reasons requiredobject[]
revision requiredinteger

Responses

StatusBodyMeaning
200InboxClaimReasonsThe list of takeover reasons and its revision.
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 an inbox’s takeover reasons

PUT/inboxes/{inbox}/claim-reasons

You need permission to change settings for this inbox (inbox.settings.change) and a passkey used in the last 5 minutes. Give the revision you read and up to 12 active reasons, in the order you want them shown. Include the code other. Codes must start with a lowercase letter and contain only lowercase letters and underscores. Labels must be 1 to 60 characters after trimming spaces and cannot contain control characters. Leaving a reason out retires it and keeps its last label for earlier claims. Include it again to use it again. The list can hold up to 24 reasons in all. The activity record includes the new revision.

For the web app.

Parameters

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

Request body (JSON)

FieldTypeDescription
reasons requiredobject[]
revision requiredinteger

Response body (JSON)

FieldTypeDescription
reasons requiredobject[]
revision requiredinteger

Responses

StatusBodyMeaning
200InboxClaimReasonsThe updated list, including retired reasons, and its new revision.
400application/problem+jsonThe list is invalid or this is a personal notice inbox.
401application/problem+jsonSign in or confirm with your passkey (step_up_required).
402application/problem+jsonThe organization is read-only (read_only). Reading and exports still work.
403application/problem+jsonYou need permission to change this inbox’s settings. Access tokens and apps receive needs_person.
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonThe list changed (claim_reasons_changed), or a request with the same 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).

List conversation claims

GET/inboxes/{inbox}/claims

Lists held claims in one shared inbox. Only callers who can reply see claim details. Other readers see which conversations are being handled. The list leaves out written reasons. A signed-in person who can reply can read a written reason by opening the individual claim.

For API tokens with messages:read and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).
cursor (query)stringThe cursor from the previous page.
attention (query)anyUse true or 1 to show only claims that need attention. Applies only if you can reply in the inbox.

Response body (JSON)

FieldTypeDescription
claims requiredInboxClaim[]
cursorstring

Responses

StatusBodyMeaning
200InboxClaimsOne page of conversation claims.
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).
409application/problem+jsonThe inbox uses tickets. The response includes the ticket board.
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 conversation claim

GET/inboxes/{inbox}/conversations/{thr}/claim

Anyone with access to the inbox can read whether the conversation is being handled. Only callers who can reply see the holder, times and reasons. The response shows reason codes in comment. Only signed-in people who can reply receive the sealed written reason. If the inbox uses tickets, you can still read an existing conversation claim.

For API tokens with messages:read and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).
thr (path) requiredstringThe conversation's ID is its thread ID.

Responses

StatusBodyMeaning
200InboxClaimThe conversation claim.
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).
409application/problem+jsonIf the inbox uses tickets, the response includes the ticket board and, when you can reply and a ticket is found, the ticket item.
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).

Claim a conversation

POST/inboxes/{inbox}/conversations/{thr}/claim

Claim a conversation for yourself. Other sessions signed in as you share your claim. An access token holds a separate claim. You need permission to reply in this inbox. An access token must belong to a member of the organization.

For API tokens with messages:write and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).
thr (path) requiredstringThe conversation's ID is its thread ID.

Request body (JSON)

FieldTypeDescription
secretstringFor an access token, use 32 to 128 random bytes encoded as base64url without padding. Keep this secret for later changes. A signed-in person can omit it.

Responses

StatusBodyMeaning
200InboxClaimThe conversation claim.
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. Reading and exports still work.
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+jsonSomeone else holds the claim, or the inbox uses tickets. When someone else holds it, the response includes the claim. If the inbox uses tickets, the response includes the ticket board and, when you can reply and a ticket is found, the ticket item.
413application/problem+jsonThe request is 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).

Check in on a conversation claim

POST/inboxes/{inbox}/conversations/{thr}/claim/check-in

An access token can check in to keep its claim from needing attention. Set waiting to true when waiting for someone, and use days to say how long. A person’s claim stays until it is released or taken over. You need permission to reply in this inbox. An access token must belong to a member of the organization.

For API tokens with messages:write and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).
thr (path) requiredstringThe conversation's ID is its thread ID.

Request body (JSON)

FieldTypeDescription
claim requiredstringThe ID of the claim you last read.
daysinteger
secretstringFor an access token, use 32 to 128 random bytes encoded as base64url without padding. Keep this secret for later changes. A signed-in person can omit it.
waitingboolean

Responses

StatusBodyMeaning
200InboxClaimThe conversation claim.
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. Reading and exports still work.
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 claim has changed, a signed-in person tried to check in, or the inbox uses tickets. If the inbox uses tickets, the response includes the ticket board and, when you can reply and a ticket is found, the ticket item.
413application/problem+jsonThe request is 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).

Answer a request to take over a claim

POST/inboxes/{inbox}/conversations/{thr}/claim/handoff

The current holder sends the request ID, its time and the reason code from the request’s comment. Use the reason from the request even if it has since been retired. Choose true to hand over the claim or false to keep it. You need permission to reply in this inbox. An access token must belong to a member of the organization.

For API tokens with messages:write and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).
thr (path) requiredstringThe conversation's ID is its thread ID.

Request body (JSON)

FieldTypeDescription
accept requiredboolean
claim requiredstringThe ID of the claim you last read.
comment requiredstringPattern: ^[a-z][a-z_]{0,31}$.
requestAt requiredstringThe time from the pending request.
requestIdstringOptional ID from the pending request.
secretstringFor an access token, use 32 to 128 random bytes encoded as base64url without padding. Keep this secret for later changes. A signed-in person can omit it.

Responses

StatusBodyMeaning
200InboxClaimThe conversation claim.
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. Reading and exports still work.
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 claim or request has changed, or the inbox uses tickets. If the inbox uses tickets, the response includes the ticket board and, when you can reply and a ticket is found, the ticket item.
413application/problem+jsonThe request is 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 a conversation claim

POST/inboxes/{inbox}/conversations/{thr}/claim/release

The holder can release the claim. Use force with a reason to release another holder’s claim. Releasing another holder’s active claim requires signing in with permission to delete inboxes. An existing conversation claim can still be released if the inbox uses tickets. You need permission to reply in this inbox. An access token must belong to a member of the organization. A signed-in person can add a written reason when force-releasing someone else’s claim in an inbox without tickets.

For API tokens with messages:write and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).
thr (path) requiredstringThe conversation's ID is its thread ID.

Request body (JSON)

FieldTypeDescription
claim requiredstringThe ID of the claim you last read.
forceboolean
reasonCodestringAn active reason code from this inbox’s takeover reason list. Pattern: ^[a-z][a-z_]{0,31}$.
reasonEpochintegerThe version of the inbox key used to seal the written reason.
reasonSealedstringThe written reason sealed to the inbox key, 1 to 2048 bytes encoded as base64url without padding. Pattern: ^[A-Za-z0-9_-]+$.
secretstringFor an access token, use 32 to 128 random bytes encoded as base64url without padding. Keep this secret for later changes. A signed-in person can omit it.

Responses

StatusBodyMeaning
200InboxClaimThe conversation claim. Open the individual claim to read a written reason. If you sent a written reason, the response includes its key version only if that reason was saved.
400application/problem+jsonCheck the details you gave for this conversation claim. If a valid code is missing from the inbox’s active list, the code is claim_reason_unknown. If this action cannot include a written reason, the code is claim_reason_text_not_allowed.
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only. Reading and exports still work.
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 claim has changed, or there is no conversation claim and the inbox uses tickets. If the inbox uses tickets, the response includes the ticket board and, when you can reply and a ticket is found, the ticket item. If the inbox’s takeover reasons changed during the request, the code is claim_reasons_changed. Read the list again. If the inbox key changed, the code is epoch_changed. Write the reason again and send it with a new idempotency key.
413application/problem+jsonThe request is 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).

Take over a conversation claim

POST/inboxes/{inbox}/conversations/{thr}/claim/takeover

Give a reason from the list. A signed-in person takes over immediately. An access token takes over a claim that needs attention and otherwise asks the current holder. Reuse the same Idempotency-Key when retrying a takeover. You need permission to reply in this inbox. An access token must belong to a member of the organization. A signed-in person can add a written reason when taking over.

For API tokens with messages:write and the web app.

Parameters

NameTypeDescription
inbox (path) requiredstringInbox ID (ibx_…).
thr (path) requiredstringThe conversation's ID is its thread ID.

Request body (JSON)

FieldTypeDescription
claim requiredstringThe ID of the claim you last read.
reasonCode requiredstringAn active reason code from this inbox’s takeover reason list. Pattern: ^[a-z][a-z_]{0,31}$.
reasonEpochintegerThe version of the inbox key used to seal the written reason.
reasonSealedstringThe written reason sealed to the inbox key, 1 to 2048 bytes encoded as base64url without padding. Pattern: ^[A-Za-z0-9_-]+$.
secretstringFor an access token, use 32 to 128 random bytes encoded as base64url without padding. Keep this secret for later changes. A signed-in person can omit it.

Responses

StatusBodyMeaning
200InboxClaimThe conversation claim. Open the individual claim to read a written reason. If you sent a written reason, the response includes its key version only if that reason was saved.
202InboxClaimThe current holder can hand over or keep the claim.
400application/problem+jsonCheck the details you gave for this conversation claim. If a valid code is missing from the inbox’s active list, the code is claim_reason_unknown. If this action cannot include a written reason, the code is claim_reason_text_not_allowed.
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
402application/problem+jsonThe organization is read-only. Reading and exports still work.
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 claim or request has changed, or the inbox uses tickets. If the inbox uses tickets, the response includes the ticket board and, when you can reply and a ticket is found, the ticket item. If the inbox’s takeover reasons changed during the request, the code is claim_reasons_changed. Read the list again. If the inbox key changed, the code is epoch_changed. Write the reason again and send it with a new idempotency key.
413application/problem+jsonThe request is 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).