Check whether an address is suppressed
Whether a send to address (with category, if given) would skip it, and the entries that match: those with scope * and, with a category, those for that category.
bearerAuthAuthorizationBearer <token>A secret API key from the dashboard: coss_live_… for production environments, coss_test_… for sandbox environments.
address*stringThe address to check.
category?stringThe category of the email you plan to send. Without it, only * entries count.
^[A-Za-z0-9_-]{1,256}$stream?stringThe stream of the email you plan to send (default transactional). marketing also counts stream:marketing entries.
"transactional""marketing"subaccount?stringThe sub-account you plan to send for (its id or your uid): its own entries count too.
1 <= length <= 256Coss-Version?"2026-10-10"The API version (a date) to use for this request. Defaults to your organization's version, pinned to the latest one when it first used the API and upgraded from the dashboard. The SDK always sends the version it was built for.
"2026-10-10"The result.
application/json- response
- response
- …
object*"suppression_check""suppression_check"address*stringThe address checked.
suppressed*booleanWhether a send (with the given category) would skip this address.
suppressions*array<>The entries that match.
import { Coss } from "coss";const coss = new Coss({ apiKey: process.env.COSS_API_KEY, baseUrl: "https://api.coss.com",});const { data, error } = await coss.email.suppressions.check({ address: "user@example.com",});{ "object": "suppression_check", "address": "user@example.com", "suppressed": true, "suppressions": [ { "object": "suppression", "id": "sup_01k7c8m4q2f3e9v6t5r1n0p8yz", "address": "user@example.com", "scope": "marketing", "reason": "manual", "email_id": null, "subaccount_id": null, "created_at": "2026-01-15T09:30:00.000Z" } ]}