Skip to Content

Count suppressed addresses

Returns active suppression counts by type. Request: GET /v1/email/suppressions/counts. Scope: email:read.

GET
/v1/email/suppressions/counts

Returns active suppression counts by type. A namespace-scoped key counts only its namespace; an organization-wide caller counts every scope, or exactly one namespace with namespaceId. Expired suppressions are not counted.

Authorization

apiKey
headerx-api-key<token>

Query Parameters

namespaceId?string
Match^ns_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

SuppressionCounts

application/json
  1. response
bounce*integer
Range0 <= value <= 9007199254740991
complaint*integer
Range0 <= value <= 9007199254740991
unsubscribe*integer
Range0 <= value <= 9007199254740991
manual*integer
Range0 <= value <= 9007199254740991
Example Request
import { createClient } from "samva";

const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });

const result = await samva.email.countSuppressions({});
Example Response
{
  "bounce": 0,
  "complaint": 0,
  "unsubscribe": 0,
  "manual": 0
}

Related documentation