Signatures — K8 HQ Content API
Signatures operations for K8 HQ Content API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
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 URL | For |
https://api.k8hq.com/v1 | API 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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
endpoint (path) required | string | Endpoint ID (ept_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Request body (JSON)
| Field | Type | Description |
memberSignatures required | boolean | |
Response body (JSON)
| Field | Type | Description |
address required | string | As written (case kept). |
blocked required | integer | Mail refused while it was disabled (counted in bulk, a few minutes behind). |
channel required | email | |
id required | string | ept_… |
kind required | address | catch_all | catch_all (*@domain) receives mail for every other address at the domain: receive only, to Spam by default, rate-limited. |
maySend required | boolean | Whether the inbox may send as it (never a catch-all or a disabled address). |
status required | active | disabled | A disabled address refuses mail exactly like one that doesn't exist, and never reaches a catch-all. |
memberSignatures | boolean | Whether members may use their own signature for this address. Off keeps saved signatures but leaves mySignature out of the endpoints list. |
mySignature | Signature | The 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. |
name | string | The 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. |
signature | Signature | |
Responses
| Status | Body | Meaning |
| 200 | Endpoint | The address. |
| 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 (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 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 | A request with this 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
endpoint (path) required | string | Endpoint ID (ept_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
address required | string | |
endpointId required | string | |
hasAddressSignature required | boolean | |
inboxId required | string | |
inboxName required | string | |
memberSignatures required | boolean | |
mine required | any | |
personal required | boolean | |
zeroAccess required | boolean | |
Responses
| Status | Body | Meaning |
| 200 | MySignature | Your sending address and cleaned signature, with mine null after removal. |
| 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 (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 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 address always uses its own signature, or a request with this idempotency key is still in progress. |
| 413 | application/problem+json | The request body exceeds 128 KB. |
| 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
endpoint (path) required | string | Endpoint ID (ept_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Responses
| Status | Body | Meaning |
| 204 | | Your signature removed. |
| 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 (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 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 | A request with this 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
endpoint (path) required | string | Endpoint ID (ept_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
address required | string | As written (case kept). |
blocked required | integer | Mail refused while it was disabled (counted in bulk, a few minutes behind). |
channel required | email | |
id required | string | ept_… |
kind required | address | catch_all | catch_all (*@domain) receives mail for every other address at the domain: receive only, to Spam by default, rate-limited. |
maySend required | boolean | Whether the inbox may send as it (never a catch-all or a disabled address). |
status required | active | disabled | A disabled address refuses mail exactly like one that doesn't exist, and never reaches a catch-all. |
memberSignatures | boolean | Whether members may use their own signature for this address. Off keeps saved signatures but leaves mySignature out of the endpoints list. |
mySignature | Signature | The 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. |
name | string | The 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. |
signature | Signature | |
Responses
| Status | Body | Meaning |
| 200 | Endpoint | The address. |
| 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 (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 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 | A request with this Idempotency-Key is still running (in_progress). |
| 413 | application/problem+json | The request body exceeds 128 KB. |
| 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). |
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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
endpoint (path) required | string | Endpoint ID (ept_…). |
Idempotency-Key (header) | string | Up to 255 characters; a retry with the same key gets the first response. |
Responses
| Status | Body | Meaning |
| 204 | | Signature removed; an image still used by another address is kept. |
| 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 (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 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 | A request with this 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). |
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
| 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. |
Response body (JSON)
| Field | Type | Description |
bytes required | integer | |
height required | integer | |
imageId required | string | Pattern: ^sig_[0-9A-HJKMNP-TV-Z]{26}$. |
sha256 required | string | Pattern: ^[0-9a-f]{64}$. |
type required | image/png | image/jpeg | image/gif | |
width required | integer | |
alt | string | |
Responses
| Status | Body | Meaning |
| 201 | SignatureImage | Image stored. |
| 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 (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 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 | A request with this Idempotency-Key is still running (in_progress). |
| 413 | application/problem+json | Use an image of 100 KB at most. |
| 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 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
| Name | Type | Description |
inbox (path) required | string | Inbox ID (ibx_…). |
image (path) required | string | |
Responses
| Status | Body | Meaning |
| 200 | image/gif, image/jpeg, image/png | Image bytes. |
| 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). |
| 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). |
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
| Name | Type | Description |
org (query) | string | The 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) | string | Up to 255 characters; a retry with the same key gets the first response. |
Response body (JSON)
| Field | Type | Description |
bytes required | integer | |
height required | integer | |
imageId required | string | Pattern: ^sig_[0-9A-HJKMNP-TV-Z]{26}$. |
sha256 required | string | Pattern: ^[0-9a-f]{64}$. |
type required | image/png | image/jpeg | image/gif | |
width required | integer | |
alt | string | |
Responses
| Status | Body | Meaning |
| 201 | SignatureImage | Image stored. |
| 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 (read_only, design note 0024): it has been out of credit for 60 days, so nothing can be changed until an owner adds credit. |
| 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 | A request with this Idempotency-Key is still running (in_progress). |
| 413 | application/problem+json | Use an image of 100 KB at most. |
| 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 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
| Name | Type | Description |
image (path) required | string | |
org (query) | string | The 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
| Status | Body | Meaning |
| 200 | image/gif, image/jpeg, image/png | Image bytes. |
| 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). |
| 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 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
| Name | Type | Description |
org (query) | string | The 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)
| Field | Type | Description |
signatureNote required | string | |
signatures required | MySignature[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Your sending addresses and signatures. |
| 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). |
| 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). |