Conversation claims — K8 HQ Content API
Conversation claims operations for K8 HQ Content API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
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 URL | For |
https://api.k8hq.com/v1 | API 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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
Response body (JSON)
| Field | Type | Description |
reasons required | object[] | |
revision required | integer | |
Responses
| Status | Body | Meaning |
| 200 | InboxClaimReasons | The list of takeover reasons and its revision. |
| 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 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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
reasons required | object[] | |
revision required | integer | |
Response body (JSON)
| Field | Type | Description |
reasons required | object[] | |
revision required | integer | |
Responses
| Status | Body | Meaning |
| 200 | InboxClaimReasons | The updated list, including retired reasons, and its new revision. |
| 400 | application/problem+json | The list is invalid or this is a personal notice inbox. |
| 401 | application/problem+json | Sign in or confirm with your passkey (step_up_required). |
| 402 | application/problem+json | The organization is read-only (read_only). Reading and exports still work. |
| 403 | application/problem+json | You need permission to change this inbox’s settings. Access tokens and apps receive needs_person. |
| 404 | application/problem+json | Not found, or not yours (not_found). |
| 409 | application/problem+json | The list changed (claim_reasons_changed), or a request with the same 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 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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
cursor (query) | string | The cursor from the previous page. |
attention (query) | any | Use true or 1 to show only claims that need attention. Applies only if you can reply in the inbox. |
Response body (JSON)
| Field | Type | Description |
claims required | InboxClaim[] | |
cursor | string | |
Responses
| Status | Body | Meaning |
| 200 | InboxClaims | One page of conversation claims. |
| 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). |
| 409 | application/problem+json | The inbox uses tickets. The response includes the ticket board. |
| 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 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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
thr (path) required | string | The conversation's ID is its thread ID. |
Responses
| Status | Body | Meaning |
| 200 | InboxClaim | The conversation claim. |
| 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). |
| 409 | application/problem+json | If the inbox uses tickets, the response includes the ticket board and, when you can reply and a ticket is found, the ticket item. |
| 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
thr (path) required | string | The conversation's ID is its thread ID. |
Request body (JSON)
| Field | Type | Description |
secret | string | For 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
| Status | Body | Meaning |
| 200 | InboxClaim | The conversation claim. |
| 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. Reading and exports still work. |
| 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 | Someone 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. |
| 413 | application/problem+json | The request is too large. |
| 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
thr (path) required | string | The conversation's ID is its thread ID. |
Request body (JSON)
| Field | Type | Description |
claim required | string | The ID of the claim you last read. |
days | integer | |
secret | string | For 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. |
waiting | boolean | |
Responses
| Status | Body | Meaning |
| 200 | InboxClaim | The conversation claim. |
| 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. Reading and exports still work. |
| 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 | The 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. |
| 413 | application/problem+json | The request is too large. |
| 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
thr (path) required | string | The conversation's ID is its thread ID. |
Request body (JSON)
| Field | Type | Description |
accept required | boolean | |
claim required | string | The ID of the claim you last read. |
comment required | string | Pattern: ^[a-z][a-z_]{0,31}$. |
requestAt required | string | The time from the pending request. |
requestId | string | Optional ID from the pending request. |
secret | string | For 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
| Status | Body | Meaning |
| 200 | InboxClaim | The conversation claim. |
| 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. Reading and exports still work. |
| 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 | The 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. |
| 413 | application/problem+json | The request is too large. |
| 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
thr (path) required | string | The conversation's ID is its thread ID. |
Request body (JSON)
| Field | Type | Description |
claim required | string | The ID of the claim you last read. |
force | boolean | |
reasonCode | string | An active reason code from this inbox’s takeover reason list. Pattern: ^[a-z][a-z_]{0,31}$. |
reasonEpoch | integer | The version of the inbox key used to seal the written reason. |
reasonSealed | string | The written reason sealed to the inbox key, 1 to 2048 bytes encoded as base64url without padding. Pattern: ^[A-Za-z0-9_-]+$. |
secret | string | For 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
| Status | Body | Meaning |
| 200 | InboxClaim | The 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. |
| 400 | application/problem+json | Check 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. |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only. Reading and exports still work. |
| 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 | The 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. |
| 413 | application/problem+json | The request is too large. |
| 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
thr (path) required | string | The conversation's ID is its thread ID. |
Request body (JSON)
| Field | Type | Description |
claim required | string | The ID of the claim you last read. |
reasonCode required | string | An active reason code from this inbox’s takeover reason list. Pattern: ^[a-z][a-z_]{0,31}$. |
reasonEpoch | integer | The version of the inbox key used to seal the written reason. |
reasonSealed | string | The written reason sealed to the inbox key, 1 to 2048 bytes encoded as base64url without padding. Pattern: ^[A-Za-z0-9_-]+$. |
secret | string | For 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
| Status | Body | Meaning |
| 200 | InboxClaim | The 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. |
| 202 | InboxClaim | The current holder can hand over or keep the claim. |
| 400 | application/problem+json | Check 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. |
| 401 | application/problem+json | No token, or it expired: sign in again (unauthenticated). |
| 402 | application/problem+json | The organization is read-only. Reading and exports still work. |
| 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 | The 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. |
| 413 | application/problem+json | The request is too large. |
| 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). |