K8 HQ

Addresses — K8 HQ Content API

Addresses 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.

Add, name, move and remove inbox email addresses.

Base URL

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

Endpoints

Addresses

List the inbox's endpoints

GET/inboxes/{inbox}/endpoints

The addresses that route to the inbox: exact addresses (name+tag@ reaches name@ too) and the domain's catch-all, with status, whether the inbox may send as each (the choices for from), and refused-mail counts. Deleted addresses aren't listed. mySignature contains only the signed-in caller's saved signature, only on active sending addresses while memberSignatures is on; tokens, delegated sessions and members without send access do not receive it.

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

Parameters

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

Response body (JSON)

FieldTypeDescription
endpoints requiredEndpoint[]
signatureNote requiredstringSignatures are stored where K8 HQ can read them, because they're added to mail you send to other people. Don't put anything private in a signature. Returned for every inbox. The app shows this note for zero-access inboxes.

Responses

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

Add an address

POST/inboxes/{inbox}/endpoints

Routes an address, or the domain's catch-all (*@domain), to the inbox. Only under a domain verified in the organization; a deleted address of the organization can be added again. Needs a passkey confirmation of exactly this change (x-k8hq-confirm: address.change, design note 0013): send x-k8hq-confirm with it.

For API tokens with endpoints:write and 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
address requiredstring

Response body (JSON)

FieldTypeDescription
address requiredstringAs written (case kept).
blocked requiredintegerMail refused while it was disabled (counted in bulk, a few minutes behind).
channel requiredemail
id requiredstringept_…
kind requiredaddress | catch_allcatch_all (*@domain) receives mail for every other address at the domain: receive only, to Spam by default, rate-limited.
maySend requiredbooleanWhether the inbox may send as it (never a catch-all or a disabled address).
status requiredactive | disabledA disabled address refuses mail exactly like one that doesn't exist, and never reaches a catch-all.
memberSignaturesbooleanWhether members may use their own signature for this address. Off keeps saved signatures but leaves mySignature out of the endpoints list.
mySignatureSignatureThe signed-in person's own signature, only while they may send from this active address and memberSignatures is on. Tokens and delegated sessions never receive it.
namestringThe sender name, if set: the name in the From header of mail K8 HQ sends as this address for the inbox (automatic replies), and what the web app suggests when writing from it. Mail apps send their own. Absent when not set; catch-alls never have one.
signatureSignature

Responses

StatusBodyMeaning
201EndpointAdded.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonSign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm.
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+jsonNot allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonThe address already routes to an inbox (conflict), or the same Idempotency-Key is running (in_progress), the address was freed in the last 7 days and only an owner may put it on another inbox (conflict).
422application/problem+jsonThe domain isn't verified in this organization (rejected).
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).

Disable or enable an address

PATCH/inboxes/{inbox}/endpoints/{endpoint}

Needs a passkey confirmation of exactly this change (x-k8hq-confirm: address.change, design note 0013): send x-k8hq-confirm with it.

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

Parameters

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

Request body (JSON)

FieldTypeDescription
status requiredactive | disabled
{"status":"disabled"}

Response body (JSON)

FieldTypeDescription
address requiredstringAs written (case kept).
blocked requiredintegerMail refused while it was disabled (counted in bulk, a few minutes behind).
channel requiredemail
id requiredstringept_…
kind requiredaddress | catch_allcatch_all (*@domain) receives mail for every other address at the domain: receive only, to Spam by default, rate-limited.
maySend requiredbooleanWhether the inbox may send as it (never a catch-all or a disabled address).
status requiredactive | disabledA disabled address refuses mail exactly like one that doesn't exist, and never reaches a catch-all.
memberSignaturesbooleanWhether members may use their own signature for this address. Off keeps saved signatures but leaves mySignature out of the endpoints list.
mySignatureSignatureThe signed-in person's own signature, only while they may send from this active address and memberSignatures is on. Tokens and delegated sessions never receive it.
namestringThe sender name, if set: the name in the From header of mail K8 HQ sends as this address for the inbox (automatic replies), and what the web app suggests when writing from it. Mail apps send their own. Absent when not set; catch-alls never have one.
signatureSignature

Responses

StatusBodyMeaning
200EndpointThe address.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonSign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm.
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+jsonNot allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
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).

Delete an address

DELETE/inboxes/{inbox}/endpoints/{endpoint}

The address leaves the inbox but keeps refusing mail (like one that doesn't exist) until the organization adds it again. Needs a passkey confirmation of exactly this change (x-k8hq-confirm: address.change, design note 0013): send x-k8hq-confirm with it.

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

Parameters

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

Responses

StatusBodyMeaning
204Deleted.
401application/problem+jsonSign in required (unauthenticated), or confirm this change with your passkey (confirmation_required, or step_up_required with action until confirmations are enforced): the answer carries the action to confirm.
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+jsonNot allowed (forbidden); or the confirmation isn't this session's (confirmation_invalid), or an API token or assistant asked (needs_person).
404application/problem+jsonNot found, or not yours (not_found).
409application/problem+jsonThe confirmation is for a different change, or what it changes is different now (confirmation_mismatch), was already used (confirmation_used) or timed out (confirmation_expired).
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).

Move an address to another inbox

POST/inboxes/{inbox}/endpoints/{endpoint}/move

Routes the address to another inbox of the organization in one step, so no mail to it is refused meanwhile: a message arriving during the move lands in one of the two inboxes. It keeps its ID, status and sender name; the other inbox may send as it from now on and this one can't. Mail it received before stays in this inbox. A mail app signed in as the address keeps this inbox open until it signs in again; then it opens the other inbox, if its token and its member may use that inbox (a token limited to inboxes that don't include it can't sign in as the address any more). Refused if that inbox forwards to this address or either inbox receives the organization's DMARC reports (409), if it's a personal notice inbox (400), or in another organization (400); a catch-all moves only with a token. API tokens with endpoints:write, and people signed in to the web app who are in both inboxes and hold inbox.addresses.manage on both. Recorded as endpoint.moved in the other inbox's events and endpoint.moved_out in this one's.

For a person's session, needs a passkey confirmation of this change (x-k8hq-confirm: address.change). Until confirmations are enforced, a passkey sign-in in the last five minutes also works.

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

Parameters

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

Request body (JSON)

FieldTypeDescription
inbox requiredstringThe inbox (ibx_) to move the address to.
{"inbox":"ibx_01JC0000000000000000000000"}

Response body (JSON)

FieldTypeDescription
address requiredstringAs written (case kept).
blocked requiredintegerMail refused while it was disabled (counted in bulk, a few minutes behind).
channel requiredemail
id requiredstringept_…
kind requiredaddress | catch_allcatch_all (*@domain) receives mail for every other address at the domain: receive only, to Spam by default, rate-limited.
maySend requiredbooleanWhether the inbox may send as it (never a catch-all or a disabled address).
status requiredactive | disabledA disabled address refuses mail exactly like one that doesn't exist, and never reaches a catch-all.
memberSignaturesbooleanWhether members may use their own signature for this address. Off keeps saved signatures but leaves mySignature out of the endpoints list.
mySignatureSignatureThe signed-in person's own signature, only while they may send from this active address and memberSignatures is on. Tokens and delegated sessions never receive it.
namestringThe sender name, if set: the name in the From header of mail K8 HQ sends as this address for the inbox (automatic replies), and what the web app suggests when writing from it. Mail apps send their own. Absent when not set; catch-alls never have one.
signatureSignature

Responses

StatusBodyMeaning
200EndpointThe address, now on the other inbox.
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+jsonThe address changed meanwhile (moved or removed), the other inbox forwards to it, either inbox receives DMARC reports, or the same request is still in progress.
422application/problem+jsonThe address's domain isn't verified in the organization, or is being removed.
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).

Set an address's sender name

PUT/inboxes/{inbox}/endpoints/{endpoint}/name

The name shown with the address in mail K8 HQ sends as it for the inbox (automatic replies), and what the web app fills in when someone writes from it, so several addresses of one inbox can each send under their own name. Mail apps (IMAP and SMTP) send their own From name; K8 HQ doesn't change it. 1 to 100 characters without control characters (spaces are collapsed); null or "" removes it. Not for catch-alls (400). The organization's owners and admins (inbox.settings.change), signed in to the web app with a passkey used in the last 5 minutes (401 step_up_required otherwise). Each change is recorded (endpoint.name_changed); the name itself stays out of events.

For the web app.

Parameters

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

Request body (JSON)

FieldTypeDescription
name requiredstring | null
{"name":"Acme Support"}

Response body (JSON)

FieldTypeDescription
address requiredstringAs written (case kept).
blocked requiredintegerMail refused while it was disabled (counted in bulk, a few minutes behind).
channel requiredemail
id requiredstringept_…
kind requiredaddress | catch_allcatch_all (*@domain) receives mail for every other address at the domain: receive only, to Spam by default, rate-limited.
maySend requiredbooleanWhether the inbox may send as it (never a catch-all or a disabled address).
status requiredactive | disabledA disabled address refuses mail exactly like one that doesn't exist, and never reaches a catch-all.
memberSignaturesbooleanWhether members may use their own signature for this address. Off keeps saved signatures but leaves mySignature out of the endpoints list.
mySignatureSignatureThe signed-in person's own signature, only while they may send from this active address and memberSignatures is on. Tokens and delegated sessions never receive it.
namestringThe sender name, if set: the name in the From header of mail K8 HQ sends as this address for the inbox (automatic replies), and what the web app suggests when writing from it. Mail apps send their own. Absent when not set; catch-alls never have one.
signatureSignature

Responses

StatusBodyMeaning
200EndpointThe address.
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).

List inbox members and missing display names

GET/inboxes/{inbox}/members

For owners and admins with inbox.settings.change, signed in as a person. Lists current members who can use this inbox, their display names, and the count and list of senders without a name. Supports the signature placeholder warning; guests and suspended or expired grants do not count. ownSignature lists endpoint IDs with a saved personal signature for each member, without its content.

For the web app.

Parameters

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

Response body (JSON)

FieldTypeDescription
members requiredobject[]
withoutDisplayName requiredobject[]
withoutDisplayNameCount requiredinteger

Responses

StatusBodyMeaning
200JSONMembers and the missing-name warning.
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).