K8 HQ Content API
Read and send messages, and read and publish events, in the K8 HQ containers you have access to.
Operation groups
Containers
List every container you may use, of every kind, with your role in it.
1 operation
Inboxes
List and read your inboxes, rename them and change their settings, and get the keys to open their mail.
6 operations
Messages
List, search and read messages in an inbox, change their flags, and move or label them.
16 operations
Conversation claims
Say who is working on an inbox conversation: claim it, check in, release it, take it over or hand it off.
9 operations
Contacts
Sync, add, change and delete contacts in a book, and look addresses up.
8 operations
Calendar
Open your K8 HQ calendar. List, add, change or delete events, or download a copy.
6 operations
Content
Read a message decrypted: its parsed content, its source and its attachments. Every read is recorded in the inbox's audit log.
3 operations
Sending
Send mail from an inbox, save or discard drafts, and list senders to unsubscribe from.
11 operations
Events
Read the organization's events, and register and publish your own event types.
4 operations
Rules
Automate what happens to mail: create, test and manage rules, and start from templates.
11 operations
Billing
The organization's usage, charges, credit balance and payments, and mail held back for credit.
6 operations
Service
Service health and the public forwarding-confirmation pages.
3 operations
Organizations
What each organization permission and role allows, and the organization's search-by-meaning settings.
7 operations
Tags
Your organization's tags: list, create, change and delete them, get the keys that open them, tag messages, and list what has a tag.
12 operations
Tag keywords
Show tags in mail apps that support IMAP keywords, such as Thunderbird.
5 operations
Suppressions
Addresses the organization's mail won't be sent to because mail to them bounced or was marked as spam, and taking an address off the list.
2 operations
DMARC
Who sends mail as your domains and whether it passes, from DMARC reports, with K8's summaries.
7 operations
Boards
Read a task or ticket board, its members and your permissions on it.
11 operations
Board settings
Change board settings and workflow, move labels to tags, and choose your board notices.
6 operations
Help desk
A ticket board's saved replies, automations and satisfaction survey switch.
14 operations
Forms
Build, publish, pause and manage forms, and their responses' retention.
16 operations
Addresses
Add, name, move and remove inbox email addresses.
7 operations
Signatures
Address signatures, their images, and each person's own signature for an address.
10 operations
Folders and recovery
Manage folders, recover removed messages, and move a sender’s existing mail with Undo.
15 operations
Forwarding
Manage inbox forwarding destinations.
4 operations
Imports and exports
Import, export and monitor mailbox transfer jobs.
10 operations
Search settings
Configure semantic search for an inbox.
2 operations
Board items
List, add, change, link and delete items on a board, with their versions and history.
15 operations
Board comments
Read and write comments on board items.
4 operations
Ticket messages
The mail linked to a ticket, and saying who is replying.
5 operations
Board claims
Say who is working on a task: claim, check in, release, take over or hand off.
8 operations
Board questions
Ask a board member a structured question on an item, and answer it.
6 operations
Board readiness
Mark tasks Ready for agent, set task owners and escalation contacts, and let agents pick tasks up.
12 operations
Board rubrics
The rubrics that assessments score a task's work against, and their versions.
5 operations
Board assessments
Request, draft, submit and discuss assessments of a task's work.
14 operations
Board intake
Bring issues from chosen external repositories onto a task board, and keep them in sync.
9 operations
Board intake links
Act on external issues: defer, dismiss, make a task from one, or link tasks to them.
5 operations
Board publication
Write a task's progress back to its linked external issues, under the board's publication policy.
8 operations
Connections
Connect K8 HQ to outside providers such as GitHub, and choose who and which agents may act through each connection.
16 operations
Support
Write to K8 HQ Support from the web app: the request becomes a ticket for K8 HQ's support team, who reply by email.
1 operation
Find an operation by name
- List your containers —
GET /containers - List your inboxes —
GET /inboxes - Get an inbox —
GET /inboxes/{inbox} - Get the inbox's keys —
GET /inboxes/{inbox}/keys - Rename an inbox —
PUT /inboxes/{inbox}/name - Get the inbox's settings —
GET /inboxes/{inbox}/settings - Change the inbox's settings —
PATCH /inboxes/{inbox}/settings - List a label's messages —
GET /inboxes/{inbox}/labels/{label}/messages - Get a message —
GET /inboxes/{inbox}/messages/{msg} - Teach the spam filter about a message —
POST /inboxes/{inbox}/messages/{msg}/feedback - Change a message's flags —
PATCH /inboxes/{inbox}/messages/{msg}/flags - Move or label a message —
PATCH /inboxes/{inbox}/messages/{msg}/labels - Get a message's encrypted content —
GET /inboxes/{inbox}/messages/{msg}/raw - Snooze a message —
PUT /inboxes/{inbox}/messages/{msg}/snooze - Unsnooze a message —
DELETE /inboxes/{inbox}/messages/{msg}/snooze - Read a K8 Messages summary —
GET /inboxes/{inbox}/messages/{msg}/summary - Ask a question about one message —
POST /inboxes/{inbox}/messages/{msg}/summary/question - Get a message's conversation —
GET /inboxes/{inbox}/messages/{msg}/thread - Search an inbox's messages —
POST /inboxes/{inbox}/search - Send mail through a connected app —
POST /inboxes/{inbox}/send - List your snoozed messages —
GET /inboxes/{inbox}/snoozes - List a conversation's messages —
GET /inboxes/{inbox}/threads/{thread}/messages - Select message IDs for K8 Messages —
POST /k8/messages/select - List an inbox’s takeover reasons —
GET /inboxes/{inbox}/claim-reasons - Change an inbox’s takeover reasons —
PUT /inboxes/{inbox}/claim-reasons - List conversation claims —
GET /inboxes/{inbox}/claims - Read a conversation claim —
GET /inboxes/{inbox}/conversations/{thr}/claim - Claim a conversation —
POST /inboxes/{inbox}/conversations/{thr}/claim - Check in on a conversation claim —
POST /inboxes/{inbox}/conversations/{thr}/claim/check-in - Answer a request to take over a claim —
POST /inboxes/{inbox}/conversations/{thr}/claim/handoff - Release a conversation claim —
POST /inboxes/{inbox}/conversations/{thr}/claim/release - Take over a conversation claim —
POST /inboxes/{inbox}/conversations/{thr}/claim/takeover - Sync a book's contacts —
GET /books/{book}/contacts - Add a contact —
POST /books/{book}/contacts - Change up to 100 contacts —
POST /books/{book}/contacts/batch - Get a contact —
GET /books/{book}/contacts/{contact} - Change a contact —
PATCH /books/{book}/contacts/{contact} - Delete a contact —
DELETE /books/{book}/contacts/{contact} - A contact's messages —
GET /books/{book}/contacts/{contact}/messages - Look addresses up —
POST /contacts/resolve - List events in a date range —
GET /calendars/{calendar}/entries - Add a timed event —
POST /calendars/{calendar}/entries - Edit a timed event —
PATCH /calendars/{calendar}/entries/{entry} - Delete an event —
DELETE /calendars/{calendar}/entries/{entry} - Download a calendar —
GET /calendars/{calendar}/export - Open your calendar —
POST /organizations/{org}/calendar - Get an attachment (decrypted) —
GET /inboxes/{inbox}/messages/{msg}/attachments/{n} - Read a message (decrypted) —
GET /inboxes/{inbox}/messages/{msg}/content - Get a message's source (decrypted) —
GET /inboxes/{inbox}/messages/{msg}/source - Save a draft —
PUT /inboxes/{inbox}/drafts/{draft} - Discard a draft —
DELETE /inboxes/{inbox}/drafts/{draft} - Send a message —
POST /inboxes/{inbox}/messages - Get delivery status for a sent message —
GET /inboxes/{inbox}/messages/{msg}/delivery - List scheduled mail —
GET /inboxes/{inbox}/outbox - Read a scheduled message —
GET /inboxes/{inbox}/outbox/{outbox} - Change a send time —
PATCH /inboxes/{inbox}/outbox/{outbox} - Cancel a scheduled message —
DELETE /inboxes/{inbox}/outbox/{outbox} - List newsletter senders —
GET /inboxes/{inbox}/subscriptions - Read a sender's unsubscribe result —
GET /inboxes/{inbox}/unsubscribes - Ask a sender to stop mail to this inbox —
POST /inboxes/{inbox}/unsubscribes - List event types —
GET /event-types - Register an event type —
POST /event-types - Read the organization's events —
GET /events - Publish an event —
POST /events - List rule actions —
GET /rule-actions - List starter templates —
GET /rule-templates - List rules —
GET /rules - Create a rule —
POST /rules - Test a rule against history —
POST /rules/test - Check a rule —
POST /rules/validate - Get a rule —
GET /rules/{rule} - Change a rule —
PATCH /rules/{rule} - Delete a rule —
DELETE /rules/{rule} - Export a rule's template —
GET /rules/{rule}/template - Test a saved rule against history —
POST /rules/{rule}/test - Get the credit balance —
GET /billing/balance - List card payments —
GET /billing/payments - Get the nonpayment standing —
GET /billing/standing - Get usage and charges —
GET /billing/usage - Get the mail waiting for credit —
GET /held - Read current prices —
GET /pricing - Forwarding confirmation page —
GET /forwards/confirm - Confirm forwarding —
POST /forwards/confirm - Check the service —
GET /health - List members' key fingerprints —
GET /key-fingerprints - List K8 HQ staff access —
GET /operator-access - Get the organization's pages address —
GET /org/pages - Set or change the organization's pages address —
PUT /org/pages - List organization permissions —
GET /permissions - Get the organization's search by meaning settings —
GET /semantic-settings - Change the organization's search by meaning settings —
PUT /semantic-settings - Tag or untag a message —
PATCH /inboxes/{inbox}/messages/{msg}/tags - List tags used in an inbox —
GET /inboxes/{inbox}/tags/in-use - List sealed organization tags —
GET /tags - Create a sealed organization tag —
POST /tags - Get the tag-set epoch keys —
GET /tags/keys - List organization tag names —
GET /tags/names - Create an organization tag by name —
POST /tags/names - Update one sealed organization tag —
PUT /tags/{tag} - Delete one unused organization tag —
DELETE /tags/{tag} - Follow a tag's deletion or merge —
GET /tags/{tag}/removal - Delete a tag in use, or merge it into another —
POST /tags/{tag}/removal - List what has an organization tag —
GET /tags/{tag}/results - List plain keywords on messages —
GET /tags/keywords - Refresh mail-app keyword counts —
POST /tags/keywords - Show a tag in mail apps, change its keyword, or stop showing it —
PUT /tags/{tag}/keyword - Follow a keyword conversion —
GET /tags/{tag}/keyword/convert - Convert a plain keyword into a tag —
POST /tags/{tag}/keyword/convert - List the organization's suppressed addresses —
GET /suppressions - Remove an address that bounced —
DELETE /suppressions/{address} - DMARC reports: domains and settings —
GET /dmarc - List a domain's DMARC reports —
GET /dmarc/domains/{domain}/reports - Get a DMARC report's sources —
GET /dmarc/domains/{domain}/reports/{report} - Summarize a DMARC report with K8 —
POST /dmarc/domains/{domain}/reports/{report}/summary - Download a DMARC report's XML —
GET /dmarc/domains/{domain}/reports/{report}/xml - Summarize a domain's DMARC reports over 7 or 30 days —
POST /dmarc/domains/{domain}/summary - Turn K8's line in DMARC alerts on or off —
PATCH /dmarc/settings - Get mail and board attention counts —
GET /attention - Get your daily board usage —
GET /boards/usage - Get a board —
GET /boards/{board} - Mark an unverified sender known —
POST /boards/{board}/items/{item}/known - Merge a ticket into another —
POST /boards/{board}/items/{item}/merge - Split a merged ticket out again —
POST /boards/{board}/items/{item}/unmerge - Get a board's epoch keys —
GET /boards/{board}/keys - List a board's members —
GET /boards/{board}/members - Your permissions on a board —
GET /boards/{board}/permissions - Search a board —
POST /boards/{board}/search - List my items —
GET /items/mine - Get my board notice settings —
GET /board-notices - Set my board notice settings —
PUT /board-notices - Replace a board's config —
PUT /boards/{board}/config - Choose which statuses end work claims —
PATCH /boards/{board}/config - Move a board's labels to organization tags —
POST /boards/{board}/labels/move - Change a board's settings —
PATCH /boards/{board}/settings - Read a ticket board's automatic acknowledgement —
GET /boards/{board}/acknowledgement - Turn a ticket board's automatic acknowledgement on or off, or change its text —
PUT /boards/{board}/acknowledgement - Read board automations —
GET /boards/{board}/helpdesk - Save board automations —
PUT /boards/{board}/helpdesk - Read a ticket board's portal switch —
GET /boards/{board}/portal - Turn a ticket board's portal on or off —
PUT /boards/{board}/portal - Block or unblock a portal address —
POST /boards/{board}/portal/block - Read a customer's portal access —
GET /boards/{board}/portal/customer - Change a ticket board's portal text —
PUT /boards/{board}/portal/settings - List saved replies —
GET /boards/{board}/saved-replies - Save a shared reply —
PUT /boards/{board}/saved-replies/{reply} - Delete a shared reply —
DELETE /boards/{board}/saved-replies/{reply} - Read a ticket board's satisfaction survey switch —
GET /boards/{board}/survey - Turn a ticket board's satisfaction survey on or off —
PUT /boards/{board}/survey - Forms adding items to a board —
GET /boards/{board}/forms - Stop a form adding items to a board —
POST /boards/{board}/forms/{form}/stop - Erase a response or a person's data —
POST /erasure - Find what a response or a person made —
POST /erasure/find - List forms —
GET /forms - Get a form —
GET /forms/{form} - Read a manual add result —
GET /forms/{form}/board-operations/{op} - Save a form's draft —
PUT /forms/{form}/draft - Release held responses —
POST /forms/{form}/held/release - Pause a form —
POST /forms/{form}/pause - Publish a form —
POST /forms/{form}/publish - Add responses to boards —
POST /forms/{form}/responses/board - Add a response to a board —
POST /forms/{form}/responses/{response}/board - Resume a form —
POST /forms/{form}/resume - Count what a shorter retention deletes —
GET /forms/{form}/retention-preview - Change a form's settings —
PATCH /forms/{form}/settings - List the inbox's endpoints —
GET /inboxes/{inbox}/endpoints - Add an address —
POST /inboxes/{inbox}/endpoints - Disable or enable an address —
PATCH /inboxes/{inbox}/endpoints/{endpoint} - Delete an address —
DELETE /inboxes/{inbox}/endpoints/{endpoint} - Move an address to another inbox —
POST /inboxes/{inbox}/endpoints/{endpoint}/move - Set an address's sender name —
PUT /inboxes/{inbox}/endpoints/{endpoint}/name - List inbox members and missing display names —
GET /inboxes/{inbox}/members - Allow members to use their own signature —
PUT /inboxes/{inbox}/endpoints/{endpoint}/member-signatures - Set my signature for an address —
PUT /inboxes/{inbox}/endpoints/{endpoint}/my-signature - Remove my signature for an address —
DELETE /inboxes/{inbox}/endpoints/{endpoint}/my-signature - Set or remove an address's signature —
PUT /inboxes/{inbox}/endpoints/{endpoint}/signature - Remove an address's signature —
DELETE /inboxes/{inbox}/endpoints/{endpoint}/signature - Upload a signature image —
POST /inboxes/{inbox}/signature-images - Read a signature image —
GET /inboxes/{inbox}/signature-images/{image} - Upload my signature image —
POST /my-signature-images - Read my signature image —
GET /my-signature-images/{image} - List my signatures —
GET /my-signatures - List labels —
GET /inboxes/{inbox}/labels - Create a label —
POST /inboxes/{inbox}/labels - Rename a label —
PATCH /inboxes/{inbox}/labels/{label} - Delete a label —
DELETE /inboxes/{inbox}/labels/{label} - Delete messages forever —
POST /inboxes/{inbox}/labels/{label}/delete-forever - Empty Trash or Spam —
POST /inboxes/{inbox}/labels/{label}/empty - Get an emptying's progress —
GET /inboxes/{inbox}/labels/{label}/empty/{job} - Turn a folder into a tag —
POST /inboxes/{inbox}/labels/{label}/tag - Follow a folder turning into a tag —
GET /inboxes/{inbox}/labels/{label}/tag/{job} - List recoverable deleted messages —
GET /inboxes/{inbox}/recoverable - Recover deleted messages —
POST /inboxes/{inbox}/recoverable/recover - Find a sender's latest move —
GET /inboxes/{inbox}/sender-moves - Move a sender's existing mail —
POST /inboxes/{inbox}/sender-moves - Check a sender move —
GET /inboxes/{inbox}/sender-moves/{job} - Undo a sender move —
POST /inboxes/{inbox}/sender-moves/{job}/undo - List forwards —
GET /inboxes/{inbox}/forwards - Forward new mail —
POST /inboxes/{inbox}/forwards - Stop a forward —
DELETE /inboxes/{inbox}/forwards/{fwd} - Resume a paused forward —
POST /inboxes/{inbox}/forwards/{fwd}/resume - Export mail (mbox) —
POST /inboxes/{inbox}/exports - Download an app export in chunks —
GET /inboxes/{inbox}/exports/{job}/download - Download an export —
POST /inboxes/{inbox}/exports/{job}/download - Upload mail to import (mbox) —
POST /inboxes/{inbox}/imports - Cancel an import before it starts —
POST /inboxes/{inbox}/imports/{upload}/cancel - Get URLs for parts of an upload —
POST /inboxes/{inbox}/imports/{upload}/parts - Count an uploaded import's messages —
POST /inboxes/{inbox}/imports/{upload}/scan - Start a counted import —
POST /inboxes/{inbox}/imports/{upload}/start - List my imports and exports —
GET /inboxes/{inbox}/transfers - Get an import or export —
GET /inboxes/{inbox}/transfers/{job} - Get the mailbox's search by meaning —
GET /inboxes/{inbox}/semantic - Turn the mailbox's search by meaning on or off —
PUT /inboxes/{inbox}/semantic - List a task board's dependencies —
GET /boards/{board}/dependencies - List or sync a board's items —
GET /boards/{board}/items - Add an item —
POST /boards/{board}/items - Get an item —
GET /boards/{board}/items/{item} - Change an item's fields —
PATCH /boards/{board}/items/{item} - Delete an item forever —
DELETE /boards/{board}/items/{item} - Save an item's title and description —
PUT /boards/{board}/items/{item}/content - Delete a confirmed item family forever —
POST /boards/{board}/items/{item}/delete - List an item's history —
GET /boards/{board}/items/{item}/history - Link two items, or add a dependency —
POST /boards/{board}/items/{item}/links - Remove a link or dependency —
DELETE /boards/{board}/items/{item}/links/{other} - Restore an item from Trash —
POST /boards/{board}/items/{item}/restore - Move an item to Trash —
POST /boards/{board}/items/{item}/trash - List an item's versions —
GET /boards/{board}/items/{item}/versions - Get one version —
GET /boards/{board}/items/{item}/versions/{n} - List an item's comments —
GET /boards/{board}/items/{item}/comments - Comment on an item —
POST /boards/{board}/items/{item}/comments - Edit a comment —
PUT /boards/{board}/items/{item}/comments/{cmt} - Delete a comment —
DELETE /boards/{board}/items/{item}/comments/{cmt} - Get the links a solving reply carries —
POST /boards/{board}/items/{item}/customer-links - List a ticket's messages —
GET /boards/{board}/items/{item}/messages - List a ticket's satisfaction answers —
GET /boards/{board}/items/{item}/ratings - Say you're replying —
POST /boards/{board}/items/{item}/replying - Say you've stopped replying —
DELETE /boards/{board}/items/{item}/replying - List a board's held claims —
GET /boards/{board}/claims - Read an item's claim —
GET /boards/{board}/items/{item}/claim - Claim an item —
POST /boards/{board}/items/{item}/claim - Check in on a claim —
POST /boards/{board}/items/{item}/claim/check-in - Hand off or decline —
POST /boards/{board}/items/{item}/claim/handoff - Release a claim —
POST /boards/{board}/items/{item}/claim/release - Resume work on a claim —
POST /boards/{board}/items/{item}/claim/resume - Take over a claim —
POST /boards/{board}/items/{item}/claim/takeover - Answer questions on an item —
POST /boards/{board}/items/{item}/answers - List an item's questions —
GET /boards/{board}/items/{item}/questions - Ask a question on an item —
POST /boards/{board}/items/{item}/questions - Change a question —
PATCH /boards/{board}/items/{item}/questions/{qst} - A question's history —
GET /boards/{board}/items/{item}/questions/{qst}/history - Withdraw a question —
POST /boards/{board}/items/{item}/questions/{qst}/withdraw - Read a board's escalation contact —
GET /boards/{board}/escalation-contact - Set a board's escalation contact —
PUT /boards/{board}/escalation-contact - Read the connections a task needs —
GET /boards/{board}/items/{item}/connections - Set the connections a task needs —
PUT /boards/{board}/items/{item}/connections - Read a task's escalation target —
GET /boards/{board}/items/{item}/escalation-target - Set a task's owner —
PUT /boards/{board}/items/{item}/owner - Pick up a task Ready for agent —
POST /boards/{board}/items/{item}/pickup - Mark a task Ready for agent —
POST /boards/{board}/items/{item}/ready - Revoke Ready for agent —
DELETE /boards/{board}/items/{item}/ready - List tasks Ready for agent —
GET /boards/{board}/ready - Read a board's readiness delegates —
GET /boards/{board}/ready-delegates - Choose a board's readiness delegates —
PUT /boards/{board}/ready-delegates - List a board's rubrics —
GET /boards/{board}/rubrics - Add a custom rubric —
POST /boards/{board}/rubrics - List a rubric's versions —
GET /boards/{board}/rubrics/{rubric}/versions - Make a rubric's next version —
POST /boards/{board}/rubrics/{rubric}/versions - Read a rubric version —
GET /boards/{board}/rubrics/{rubric}/versions/{n} - List an item's assessment requests —
GET /boards/{board}/items/{item}/assessment-requests - Request an assessment —
POST /boards/{board}/items/{item}/assessment-requests - Change an assessment request —
PATCH /boards/{board}/items/{item}/assessment-requests/{arq} - Say you contributed —
POST /boards/{board}/items/{item}/assessment-requests/{arq}/contributors - Read a request's earlier revisions —
GET /boards/{board}/items/{item}/assessment-requests/{arq}/history - List an item's assessments —
GET /boards/{board}/items/{item}/assessments - Begin an assessment —
POST /boards/{board}/items/{item}/assessments - Read an assessment —
GET /boards/{board}/items/{item}/assessments/{asm} - Discard a draft —
DELETE /boards/{board}/items/{item}/assessments/{asm} - Save a draft —
PUT /boards/{board}/items/{item}/assessments/{asm}/draft - Get a draft's key —
GET /boards/{board}/items/{item}/assessments/{asm}/key - Read an assessment's discussion —
GET /boards/{board}/items/{item}/assessments/{asm}/notes - Discuss an assessment —
POST /boards/{board}/items/{item}/assessments/{asm}/notes - Submit a draft —
POST /boards/{board}/items/{item}/assessments/{asm}/submit - List a board's external issues —
GET /boards/{board}/intake - Read an external issue —
GET /boards/{board}/intake/issues/{issue} - Read a board's intake settings —
GET /boards/{board}/intake/settings - Turn background intake sync on or off —
PUT /boards/{board}/intake/settings - List a board's intake sources —
GET /boards/{board}/intake/sources - Add an intake source —
POST /boards/{board}/intake/sources - Remove an intake source —
DELETE /boards/{board}/intake/sources/{source} - Sync an intake source —
POST /boards/{board}/intake/sources/{source}/sync - Link a task to an external issue —
POST /boards/{board}/intake/issues/{issue}/links - Unlink a task from an external issue —
DELETE /boards/{board}/intake/issues/{issue}/links/{item} - Create a task from an external issue —
POST /boards/{board}/intake/issues/{issue}/tasks - Defer, dismiss or reopen an external issue —
PUT /boards/{board}/intake/issues/{issue}/triage - List a task's external issues —
GET /boards/{board}/items/{item}/external-issues - Preview what publishing an issue would write —
GET /boards/{board}/intake/issues/{issue}/publication - Publish to an external issue —
POST /boards/{board}/intake/issues/{issue}/publish - Reply on an external issue —
POST /boards/{board}/intake/issues/{issue}/replies - Read a board's publication policy —
GET /boards/{board}/intake/publication - Set a board's publication policy —
PUT /boards/{board}/intake/publication - List a task's milestones —
GET /boards/{board}/items/{item}/milestones - Record a task's milestone —
PUT /boards/{board}/items/{item}/milestones/{milestone} - Retract a task's milestone —
DELETE /boards/{board}/items/{item}/milestones/{milestone} - List the providers you can connect —
GET /connection-providers - List connections —
GET /connections - Add a connection —
POST /connections - Read a connection —
GET /connections/{connection} - Change a connection —
PATCH /connections/{connection} - Delete a connection —
DELETE /connections/{connection} - Finish connecting a connection —
POST /connections/{connection}/connect - Finish connecting with the repositories chosen —
POST /connections/{connection}/connect/bind - Start connecting a connection to its provider —
POST /connections/{connection}/connect/start - Set a connection's credential —
PUT /connections/{connection}/credential - Revoke a connection's credential —
DELETE /connections/{connection}/credential - Retire a rotated-out credential —
POST /connections/{connection}/credential/retire - Rotate a connection's credential —
POST /connections/{connection}/credential/rotate - List who may use a connection —
GET /connections/{connection}/uses - Take away use of a connection —
DELETE /connections/{connection}/uses/{use} - Write to K8 HQ support —
POST /support-requests
Using this API
One API at https://api.k8hq.com/v1, two ways in:
- Access tokens (scripts, AI agents, integrations) send
Authorization: Bearer k8hq_.... Make them in Settings → Organization → Access in the web app (Script or integration, or Advanced). A token belongs to one organization and acts for a member with that member's current access, never more; it can be narrowed to some containers and can expire. Its scopes say where it works (apifor this API;imapandsmtpfor mail apps, which this API refuses) and what it may do, each<resource>:<verb>:messages:read,messages:write,messages:send,content:read,events:read,rules:read,contacts:read,contacts:write,boards:read,boards:write(task boards, read and written in plaintext through K8 HQ's servers) for any member,connections:readandconnections:use(provider connections the token is explicitly authorized to use: reading them, and K8 HQ acting through them; never their credentials) for any member;tags:read(every organization tag's name and colour, opened by K8 HQ's servers in organizations without zero-access encryption) for any member;tags:createis an explicit create-only scope an owner or admin grants with a passkey when making a token;billing:read,org:read,audit:readfor the organization's admins and owners;events:write,endpoints:writefor owners;rules:writeonly from K8 HQ staff for now. Organization-level scopes follow the member's current role. Each token has daily limits (50,000 requests, 2 GB downloaded, 500 recipients). If it goes over the request or download limit, or reaches the recipient limit, it is paused until midnight UTC and the organization's owners are told. While it is paused, requests return 429rate_limited. - The K8 HQ web app sends a session from signing in with a passkey (
x-k8hq-token).
Containers. Mail, contacts, boards and form responses live in containers with their own access. GET /containers lists yours, with the kind and your role. Each kind has its own paths (/inboxes/..., /books/..., /boards/..., /forms/...); form responses use selected inbox routes with the form's ID (see each operation's supported container kinds). Create containers through the Setup API, subject to your permissions and the organization's enabled services. Forms operations require a signed-in person's session; API tokens and assistants cannot use them. Boards are unavailable to assistants; API tokens need boards:read to list task boards. Attached ticket boards are listed only for signed-in people. An inbox holds every channel: email today, later SMS and chat, each message marked with its channel.
Privacy. Each container is readable (K8 HQ's servers can open it, so content can be read decrypted with content:read, and every such read is recorded in the audit log) or zero_access (ciphertext only, opened with keys sealed to the user's own key).
Conventions.
- Lists take
cursorandlimitand returnnextCursorwhile there's more. Cursors are opaque. - Every write accepts
Idempotency-Key(up to 255 characters): a retry within 24 hours gets the first response back, markedIdempotent-Replayed: true, instead of acting twice. - Records that change carry an
ETag. Send it back asIf-Matchto change only that version (412version_mismatchotherwise), or asIf-None-Matchto get 304 when nothing changed. Prefer: dry-runon a send runs the checks without sending.- Responses that never change (
/raw) may be kept by the browser; shared caches never store responses that require sign-in. Public pricing may be cached for five minutes.
Errors are RFC 9457 problem details (application/problem+json) with a stable code: invalid, unauthenticated, forbidden, scope_missing, zero_access, not_found, conflict, in_progress, version_mismatch, too_large, rejected, rate_limited, unavailable, sync_reset (410: sync again from the start). Containers you have no access to, and records that aren't in the container, return 404 not_found.
Browser compatibility. After the web client cutover, browser requests need K8hq-Client: web/<build>; storage=4 with a build at least the configured minimum and storage version 4 or later. Older clients receive 426 client_outdated and must reload K8 HQ. Browser delegations also keep the client version declared when they were issued; delegations issued without a compatible version must be replaced.
Board roles. Can view and comment (comment) may read a task board, add comments and answer questions addressed to the signed-in person. Every other board write returns 403, including edits to their own comments. Full access is owner. Organization permissions never override this board role. Assignment excludes members with Can view and comment access. A Guest organization role grants no organization permissions; board member pickers use the board member list.
Base URL
| Base URL | For |
|---|---|
https://api.k8hq.com/v1 | API tokens and the K8 HQ web app |
curl -H "Authorization: Bearer $K8HQ_TOKEN" https://api.k8hq.com/v1/inboxes
Error reference
Error codes
Errors are RFC 9457 problem details (application/problem+json) whose type links here. Branch on code; detail is for people and may change.
| Code | Meaning |
|---|---|
invalid | 400: the request is malformed or failed validation; detail says what to fix. |
unauthenticated | 401: no credential, or it expired or was revoked. Tokens: make a new one; the web app: sign in again. |
forbidden | 403: the credential is valid but may not do this (the member's role or permissions). |
scope_missing | 403: the API token lacks the scope the operation needs; the operation's access line names it. |
zero_access | 403 or 409: the container needs sealed content. Read ciphertext and keys instead. |
not_found | 404: no such record, or one you may not see (containers you have no access to answer the same way). |
conflict | 409: the request conflicts with the current state, such as a name already in use. |
in_progress | 409: a request with the same Idempotency-Key is still running; retry shortly for its answer. For outbox cancellation, the message is already being sent and cannot be stopped. |
version_mismatch | 412: the record changed since you read it (If-Match); read it again and retry. |
precondition_required | 428: send the calendar entry's ETag in If-Match. |
calendar_closed | 409: the calendar is being removed or can't be read. |
org_closed | 410: the organization is being deleted. |
too_large | 413: the body or message is over the size limit. |
rejected | 422: understood but refused, such as a limit reached or a recipient refused. |
rate_limited | 429: a limit was reached (a token's daily limits reset at midnight UTC). |
unavailable | 503: a temporary problem on K8 HQ's side; retry with backoff. |
sync_reset | 410: the sync token is unknown or too old; sync again from the start. |
step_up_required | 401: the action needs a passkey used in the last few minutes. Confirm with Start a passkey confirmation on the Sign-in API, then retry with the new access token. |
k8_unavailable | 403: K8 isn't available to the caller in this organization (members' use of K8 is off, or the person is suspended). |
mcp_binding_unavailable | 503: the AI connector gateway's signed request couldn't be verified right now (a key rotation or a changed request). Connected AI answers that K8 HQ is busy; try again in a minute. |
approval_required | 403: this connection needs approval for that, and approval isn't available yet. |
out_of_credit | 402: the organization is out of credit for something that costs money (such as a K8 summary); add credit in Billing. |
service_disabled | 403: this service is off for the organization. Availability of reading and export depends on the service. |
read_only | 402: the organization has been out of credit for 60 days, so it's read-only: reading, exports and searches work, changes don't. Adding credit in Billing turns everything back on. |
clock_wrong | 422: an ID the browser made (an item's, a comment's) is dated more than a day from K8 HQ's clock: set the device's clock and try again. |
ticket_changed | 409: a reply's ticket changed since the reply was written (a new message, another reply, or someone else sending now); the body's reason and item say what. Send again with force (Send anyway), or review. |
held | 409: a form's response came past its daily limit and is held: release it (POST /v1/forms/{form}/held/release, billed then as a response) to open it. |
claimed | 409: another session holds the item's work claim. Read the claim to see whose; request a takeover with a reason if it needs attention. |
claim_held | 409: someone else is handling this conversation. |
claim_required | 409: Claim this conversation before replying, or send with claim "new". |
claim_lost | 409: the named work claim is no longer held: it was released, taken over or handed off. Stop editing for it and read the claim again; an old claim never revives. |
claim_reason_unknown | 400: Choose a reason from this inbox’s list. |
claim_reasons_changed | 409: This inbox’s takeover reasons changed. Load the list and choose again. |
claim_reason_text_not_allowed | 400: Only people can add a written reason. A written reason can only be added when you take over or force-release someone else's claim. |
epoch_changed | 409: This inbox's key changed. Write the reason again. |
claim_on_ticket | 409: Claim the ticket linked to this conversation. The response names the ticket board and may include the ticket. |
not_holder | 403: the work claim is held by another session: only the token or sign-in that claimed it, with its secret, can check in, release or hand it off. It doesn't mean the claim was lost. |
claim_active | 403: the claim doesn't need attention (its session is checking in, or waiting within its expected end), so only a member holding containers.delete (owners and admins by default) can force its release, giving a reason comment. |
not_ready | 409: the task isn't Ready for agent now (not authorized, revoked, changed since it was authorized, or whoever authorized it can't any more). |
on_hold | 409: the task or its parent is in a waiting status, so it can't be picked up. |
delivered | 409: the task's work is delivered: it's in an active status after the board's first (such as Waiting for review or Ready to deploy), so it can't be picked up or marked Ready for agent until it's moved back to To do or In progress. |
blocked | 409: a task blocking this one isn't done yet (blockers lists them), so it can't be picked up. |
dependency_cycle | 409: the dependency would make a cycle: the other task is already blocked by this one, directly or through other tasks. |
owner_required | 409: Ready for agent and pickup need the task to have an owner who is on the board (it has none, or they left): set its owner first. |
connection_unavailable | 409: a provider connection the task needs isn't available (connections lists which, and how each comes back): nothing else is used instead. |
connection_not_authorized | 403: the session isn't authorized to use a provider connection the task needs (connections lists which): ask the connection's managers to authorize this member or token. |
plan_changed | 409: what publishing to an external issue would write changed since it was previewed (a task linked, a milestone recorded, the policy changed); nothing was written, and plan is the fresh plan to review. |
confirmation_required | 401: the change needs a passkey confirmation of exactly it (design note 0013). The answer carries action (the description to confirm) and a short summary: send action to [Begin a confirmation](/auth/docs#confirmBegin), run the passkey prompt, [finish it](/auth/docs#confirmFinish) and retry the same request with the confirmation in x-k8hq-confirm. Asking with x-k8hq-confirm: ? gets this answer without the change being made. |
confirmation_invalid | 403: the confirmation isn't valid for this session (another session's or person's, or not signed by K8 HQ): confirm again. |
confirmation_expired | 409: the confirmation timed out (it lives 2 minutes): confirm again. |
confirmation_mismatch | 409: the change isn't the one confirmed: the request, or what it changes, is different now. Show the current state and let the person confirm again; never retry silently. |
confirmation_used | 409: the confirmation was already used (each confirms one change, once): confirm again. |
needs_person | 403: only a person signed in to K8 HQ can make this change with a passkey confirmation, never an API token or an assistant. |
key_changed | 409: K8 HQ's identity directory has a different encryption key for you than the one K8 HQ's mail servers pinned when they first sealed keys to you, so nothing was sealed to it. A directory change sends a security notice; contact K8 HQ support. If only this device has a different key while the directory matches the pin, no directory-change notice is sent. |
key_unverified | 409 when first-pin enforcement is enabled: K8 HQ's mail servers haven't pinned your encryption key yet, and the request didn't carry x-k8hq-key-sha256 from a device that unlocked it. Open K8 HQ in the web app on your own device once (it sends it), or send the header yourself. |
key_replaced | 403: your encryption key was replaced, and this needs your current key: ask someone who holds the inbox's keys to give your new key access. |
container_access_lost | 403: your access changed before K8 HQ could give your key access to this container. Reload to check your access. |
k8_notice_inbox | K8 Messages cannot read a personal notice inbox. |
k8_messages_disabled | An owner must allow K8 Messages for the organization before it can be turned on for an inbox. |
k8_inbox_disabled | 403: K8 Messages is off for this inbox. |
k8_model_unavailable | 503: K8 cannot use its model right now. |
k8_output_invalid | 502: K8 could not make a valid summary. |
k8_cap_reached | 429: The organization has reached today's K8 limit. |
k8_member_cap_reached | 429: You have used your share of today's K8 limit. |
k8_plan_invalid | 502: K8 could not make a valid message plan. |
k8_ai_classify_disabled | 403: AI rule checks are off. Existing conditions can still be read or removed. |
k8_ai_sending_not_allowed | 403: An active owner must agree to this exact AI rule sending replies, and the inbox must allow rules to send. |
client_outdated | 426: K8 HQ has been updated. Reload this page. |
snooze_not_in_inbox | 409: Only messages in Inbox can be snoozed. |
snooze_limit | 409: You have 1,000 active snoozes in this inbox. |
tags_coming_soon | Tags are coming soon for organizations with zero-access encryption. |
folder_rules | 409: Rules file mail into this folder. Change them before turning the folder into a tag. The response lists only rules you can see. |
undo_expired | Undo is available for 24 hours after a sender move finishes. |
book_read_only | 409: the contact book is pending removal. Reading and export remain available. |
not_eligible | 409: This received message cannot be used to unsubscribe, or the method was not allowed at receipt. |
already_unsubscribed | 409: A request for this sender is pending or was made within the last 24 hours. The response includes record. |
proof_mismatch | 422: The link does not match the proof kept for this exact message. |
bad_url | 422: The link failed the URL checks. |
consent_required | 403: A zero-access inbox needs consent: zero-access-url before K8 HQ may use its link. |
sender_cap | 429: Three attempts to this sender in this inbox within 30 days. |
organization_cap | 429: 100 one-click attempts an hour or 300 a day for this organization. |
destination_cap | 429: Ten one-click attempts a minute to the same registrable domain across organizations. Retry after a minute. |
Find a schema by name
- AIClassifyCondition
- AckSetting
- Assessment
- AssessmentBody
- AssessmentNote
- AssessmentRequest
- AssessmentRequestRevision
- AssessmentSummary
- Attachment
- Attribution
- BillingBalance
- BillingPayments
- BillingStanding
- BillingUsage
- Board
- BoardAnswer
- BoardAnswerContent
- BoardBlocker
- BoardClaim
- BoardClaimEnd
- BoardClaimHolder
- BoardComment
- BoardConfig
- BoardConnectionBlock
- BoardDependency
- BoardEscalationContact
- BoardEscalationTarget
- BoardFamilyInput
- BoardHelpdesk
- BoardHistoryRow
- BoardItem
- BoardItemVersion
- BoardLabel
- BoardLink
- BoardQuestion
- BoardQuestionContent
- BoardQuestionRevision
- BoardReadiness
- BoardReadyDelegates
- BoardReadyEntry
- BoardRecipe
- BoardStatus
- BoardSummary
- BoardTakeoverRequest
- BoardTarget
- BoardTargets
- BoardUsage
- BoardUsageKind
- BoardVersion
- Calendar
- CalendarEntry
- CalendarEntryInput
- CalendarEntryResult
- Connection
- ConnectionAccess
- ConnectionCredential
- ConnectionFault
- ConnectionList
- ConnectionPending
- ConnectionProvider
- ConnectionProviderList
- ConnectionResource
- ConnectionRevocation
- ConnectionUse
- ConnectionUseList
- Contact
- ContactInput
- Container
- Content
- Contributor
- CriterionFeedback
- DmarcOverview
- DmarcPeriodSummary
- DmarcReport
- DmarcReportDetail
- DmarcReports
- DmarcSettings
- DmarcSource
- DmarcSummary
- DraftKey
- EmptyFolderJob
- Endpoint
- ErasureFound
- ErasureReceipt
- ErasureSearched
- ErasureSource
- Event
- EventType
- Flag
- Flags
- FolderTagStatus
- Form
- FormBoardAdd
- FormBoardAddResult
- FormBoardBulkEntry
- FormDay
- FormDefinition
- FormSummary
- Forward
- HPKESuite
- HeldMail
- Inbox
- InboxClaim
- InboxClaimDetails
- InboxClaimEnd
- InboxClaimHolder
- InboxClaimOnTicketProblem
- InboxClaimReasons
- InboxClaimRequest
- InboxClaimStatus
- InboxClaimedProblem
- InboxClaims
- InboxSettings
- IntakeIssue
- IntakeSettings
- IntakeSource
- K8MessagePlan
- K8MessageSummary
- K8QuestionResponse
- K8QuestionResult
- K8SummaryResponse
- Label
- MessageDelivery
- MessageSummary
- MilestoneFact
- MySignature
- NewEventType
- OrgPages
- OrgSemanticSettings
- OrganizationTag
- OrganizationTagInput
- OrganizationTagKeywordConversionStatus
- OrganizationTagRemoval
- OrganizationTagRemovalStatus
- OrganizationTagUpdate
- OrganizationTags
- OtherInboxClaimConflict
- OutboxItem
- OutboxSealed
- OutwardWrite
- Participant
- Permission
- PortalSetting
- Principal
- Privacy
- Problem
- PublicationPlan
- PublicationPolicy
- RecoverableMessage
- Reported
- ReturnedMessage
- Rubric
- RubricCriterion
- RubricCriterionText
- RubricRef
- RubricText
- Rule
- RuleAction
- RuleActionType
- RuleInput
- RuleTest
- SavedDraft
- SavedReply
- Sealed
- SemanticEstimate
- SemanticPrices
- SemanticSettings
- SemanticStatus
- SenderMove
- Sent
- Signature
- SignatureImage
- Snooze
- SnoozedMessage
- Snoozes
- Spam
- Subject
- Subscription
- SubscriptionNewest
- SubscriptionPage
- SubscriptionUnsubscribeRecord
- Suppression
- Suppressions
- SurveyAnswer
- SurveySetting
- Template
- ThreadMessages
- TicketMessage
- Transfer
- UnsubscribeProblem
- UnsubscribeRecord
- UnsubscribeResponse
- Upload
- WebFlag