K8 HQ

Signatures — K8 HQ Content API

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

Address signatures, their images, and each person's own signature for an address.

Base URL

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

Endpoints

Signatures

Allow members to use their own signature

PUT/inboxes/{inbox}/endpoints/{endpoint}/member-signatures

People with inbox.settings.change and a passkey used in the last five minutes, checked before idempotency replay. Applies to an address only. The default is true. False keeps personal signatures but leaves them out of the endpoints list. Writes inbox.settings.changed with setting memberSignatures and no signature content.

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
memberSignatures requiredboolean

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

Set my signature for an address

PUT/inboxes/{inbox}/endpoints/{endpoint}/my-signature

People only: never an API token or a delegated session. Only the caller's own signature, on an active address they can send from with current inbox access. Personal inboxes and catch-alls are excluded. No recent passkey is needed. When memberSignatures is false, PUT returns 409 with "<address> always uses its own signature (set by your admins)". Uses the address signature sanitizer, image, size, width and alt text rules. An image must belong to the caller or be readable through this inbox. No organization audit event is written. Removal falls back to the address signature. API requests and bytes and record and image storage use the existing meters.

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.

Response body (JSON)

FieldTypeDescription
address requiredstring
endpointId requiredstring
hasAddressSignature requiredboolean
inboxId requiredstring
inboxName requiredstring
memberSignatures requiredboolean
mine requiredany
personal requiredboolean
zeroAccess requiredboolean

Responses

StatusBodyMeaning
200MySignatureYour sending address and cleaned signature, with mine null after removal.
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 always uses its own signature, or a request with this idempotency key is still in progress.
413application/problem+jsonThe request body exceeds 128 KB.
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).

Remove my signature for an address

DELETE/inboxes/{inbox}/endpoints/{endpoint}/my-signature

People only: never an API token or a delegated session. Only the caller's own signature, on an active address they can send from with current inbox access. Personal inboxes and catch-alls are excluded. No recent passkey is needed. Uses the address signature sanitizer, image, size, width and alt text rules. An image must belong to the caller or be readable through this inbox. No organization audit event is written. Removal falls back to the address signature. API requests and bytes and record and image storage use the existing meters.

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.

Responses

StatusBodyMeaning
204Your signature removed.
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).

Set or remove an address's signature

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

Owners and admins with inbox.settings.change, signed in as a person with a passkey used in the last five minutes. Permission and passkey checks run before idempotency replay. Tokens and delegated callers are refused. Stores cleaned HTML and generates text; never trusts client text. Allowed elements: p div br b strong i em u s a[href] ul ol li span[style] img[src alt width height]. Links allow only http, https, mailto and tel. Only spans may have style, and only font-size: small, large or x-large. Images must use cid:k8hq-sig; remote images are removed. At most one image, whose dimensions and alt text come from the image reference. At most 10 KB of cleaned HTML and 2 KB of generated text. The literal {sender name} is preserved. null removes the signature. Writes inbox.settings.changed with setting signature and no signature content. Records and image bytes use storage.records.mb_day and storage.content.mb_day; API requests and transfer bytes use existing API meters.

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.

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).
413application/problem+jsonThe request body exceeds 128 KB.
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).

Remove an address's signature

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

Owners and admins with inbox.settings.change, signed in as a person with a passkey used in the last five minutes. Permission and passkey checks run before idempotency replay. Tokens and delegated callers are refused. Stores cleaned HTML and generates text; never trusts client text. Allowed elements: p div br b strong i em u s a[href] ul ol li span[style] img[src alt width height]. Links allow only http, https, mailto and tel. Only spans may have style, and only font-size: small, large or x-large. Images must use cid:k8hq-sig; remote images are removed. At most one image, whose dimensions and alt text come from the image reference. At most 10 KB of cleaned HTML and 2 KB of generated text. The literal {sender name} is preserved. null removes the signature. Writes inbox.settings.changed with setting signature and no signature content. Records and image bytes use storage.records.mb_day and storage.content.mb_day; API requests and transfer bytes use existing API meters.

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.

Responses

StatusBodyMeaning
204Signature removed; an image still used by another address is kept.
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).

Upload a signature image

POST/inboxes/{inbox}/signature-images

Same permission and recent-passkey rules as signature changes. Raw PNG, JPEG or GIF, at most 100 KB, and at most 1200 pixels on each side. The magic bytes must match Content-Type. The browser strips EXIF and resizes first. Deduplicated by SHA-256 within the organization. Uploads not yet saved to an address are removed with the inbox or organization. An image is removed after its last signature reference is removed. Images are attached inline by compose, never linked from sent mail. An image increases each sent message and its Sent copy; existing send and storage meters count the whole message.

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.

Response body (JSON)

FieldTypeDescription
bytes requiredinteger
height requiredinteger
imageId requiredstringPattern: ^sig_[0-9A-HJKMNP-TV-Z]{26}$.
sha256 requiredstringPattern: ^[0-9a-f]{64}$.
type requiredimage/png | image/jpeg | image/gif
width requiredinteger
altstring

Responses

StatusBodyMeaning
201SignatureImageImage stored.
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).
413application/problem+jsonUse an image of 100 KB at most.
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 signature image

GET/inboxes/{inbox}/signature-images/{image}

Requires access to this inbox and an image uploaded to or used by an address in this inbox. API tokens need messages:read and access to this inbox; delegated callers are refused. Returns the recorded Content-Type with X-Content-Type-Options: nosniff, Content-Disposition: attachment and Cache-Control: no-store. API request and output bytes use the existing API meters.

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

Parameters

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

Responses

StatusBodyMeaning
200image/gif, image/jpeg, image/pngImage bytes.
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).

Upload my signature image

POST/my-signature-images

People only, never tokens or delegated sessions. No recent passkey is needed. Raw PNG, JPEG or GIF, at most 100 KB and 1200 pixels per side, with Content-Type matching the bytes. Requires a current inbox grant that allows sending and an active address the person can send from in this organization. The upload belongs to the current member. Unused images held only by member uploads expire after 24 hours. Only they can read it through the personal image route; inbox access alone does not grant a read. Images share storage by SHA-256 within this organization. Membership removal deletes their uploads and signature references. API request and transfer bytes and stored bytes use existing API and storage meters.

For the web app.

Parameters

NameTypeDescription
org (query)stringThe organization (org_). Required for a person signed in to the web app (any organization they're a member of); a token always answers for its own organization.
Idempotency-Key (header)stringUp to 255 characters; a retry with the same key gets the first response.

Response body (JSON)

FieldTypeDescription
bytes requiredinteger
height requiredinteger
imageId requiredstringPattern: ^sig_[0-9A-HJKMNP-TV-Z]{26}$.
sha256 requiredstringPattern: ^[0-9a-f]{64}$.
type requiredimage/png | image/jpeg | image/gif
width requiredinteger
altstring

Responses

StatusBodyMeaning
201SignatureImageImage stored.
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).
413application/problem+jsonUse an image of 100 KB at most.
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 my signature image

GET/my-signature-images/{image}

People only, never tokens or delegated sessions. Reads only an image uploaded by or referenced by the current member in this organization. Another inbox member gets 404. Returns Content-Type, X-Content-Type-Options: nosniff, Content-Disposition: attachment and Cache-Control: no-store. Uses existing API request and output byte meters.

For the web app.

Parameters

NameTypeDescription
image (path) requiredstring
org (query)stringThe organization (org_). Required for a person signed in to the web app (any organization they're a member of); a token always answers for its own organization.

Responses

StatusBodyMeaning
200image/gif, image/jpeg, image/pngImage bytes.
400application/problem+jsonThe request is malformed (invalid).
401application/problem+jsonNo token, or it expired: sign in again (unauthenticated).
403application/problem+jsonThe token lacks the scope (scope_missing), the container is zero-access (zero_access), or the caller may not use this operation (forbidden).
404application/problem+jsonNot found, or not yours (not_found).
426application/problem+jsonK8 HQ has been updated. Reload this page.
429application/problem+jsonToo many requests (rate_limited). The token is paused until midnight UTC if it goes over its daily request or download limit, or reaches its daily recipient limit. A message with more recipients than the token has left today is refused. If the token has some recipients left, you can send to fewer. Too many attempts with a wrong token also return this response.
503application/problem+jsonTemporary failure; try again (unavailable).

List my signatures

GET/my-signatures

People only, never tokens or delegated sessions. Lists active addresses in this organization from current inbox grants that allow sending, grouped by inbox name and sorted by address. mine is the caller's saved signature or null. memberSignatures is false when admins require the address signature; the saved personal signature is kept but is not used or editable until memberSignatures is true again. DELETE still works. Personal inbox addresses, when listed, use inbox settings. Stored signatures are readable by K8 HQ, including for zero-access inboxes. Uses existing API request and transfer meters.

For the web app.

Parameters

NameTypeDescription
org (query)stringThe organization (org_). Required for a person signed in to the web app (any organization they're a member of); a token always answers for its own organization.

Response body (JSON)

FieldTypeDescription
signatureNote requiredstring
signatures requiredMySignature[]

Responses

StatusBodyMeaning
200JSONYour sending addresses and signatures.
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).