K8 HQ

Suppressions — K8 HQ Content API

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

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.

Addresses Amazon SES won't send the organization's mail to, because mail to them bounced permanently or the recipient marked it as spam. Each organization has its own list (its own SES tenant): it never shows or affects another organization's recipients. A send to a suppressed address is accepted, then bounces at once: the message's mail.delivery.bounced event has suppressed: true, and the sending inbox's members get a notice (at most one a day per inbox).

Base URL

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

Endpoints

Suppressions

List the organization's suppressed addresses

GET/suppressions

The addresses on the organization's suppression list, with why and since when (the last bounce or complaint that put them there). Access tokens with org:read; people signed in to the web app with org.events.read (owners and admins by default, ?org=). mayRemove says whether the caller may remove addresses that bounced (DELETE /suppressions/{address}).

For API tokens with org:read and 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.
cursor (query)stringFrom the previous page's nextCursor.
limit (query)integerAddresses per page, 1 to 1000 (default 100).

Response body (JSON)

FieldTypeDescription
mayRemove requiredbooleanWhether the caller may remove addresses that bounced (a person with org.settings.change).
suppressions requiredSuppression[]
nextCursorstringPresent while there are more.

Responses

StatusBodyMeaning
200SuppressionsThe suppressed addresses.
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).

Remove an address that bounced

DELETE/suppressions/{address}

Takes an address off the organization's suppression list, so mail to it is sent again; if it still bounces, it's added back and counts toward the organization's bounce rate. Only addresses that bounced: a recipient who marked the organization's mail as spam stays suppressed (422 rejected) until they mark it as not spam (SES then removes them) or K8 HQ support removes them. Amazon SES may also hold an address on its own global list for a short time after a recent hard bounce; that clears by itself. People signed in to the web app with org.settings.change (owners by default), with a passkey used in the last 5 minutes (401 step_up_required otherwise); not for access tokens. Recorded as mail.suppression.removed (with the address's domain only).

For the web app. The session needs a recent passkey: if its last passkey confirmation is more than 5 minutes old, the answer is 401 step_up_required.

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.
address (path) requiredstringThe address exactly as the list shows it (SES matches case), URL-encoded.

Responses

StatusBodyMeaning
204Removed.
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 on the organization's list (or not its organization).
409application/problem+jsonA request with this Idempotency-Key is still running (in_progress).
422application/problem+jsonThe recipient complained (marked mail as spam), so it can't be removed here (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).