SparkPost Suppression List API

The Suppression List API from SparkPost — 3 operation(s) for suppression list.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /suppression-list Bulk insert or update suppressions · Bulk Create or Update Suppressions #
Ask an LLM
“How do I add up to 10,000 suppressed addresses in one request?”
“Can I overwrite existing suppression entries when bulk uploading?”
Tell an agent
Bulk upsert suppressions {recipients}.
Insert or update these suppressed addresses in one call: {recipients}.
GET /suppression-list Search the suppression list · Search Suppressions #
Ask an LLM
“Which email addresses have been suppressed for a given domain?”
“Can I filter suppressions by source, type or date range?”
Tell an agent
Search suppressions for {domain}.
Find suppressions created between {from} and {to}.
GET /suppression-list/summary Get suppression counts by source · Retrieve Suppression Summary #
Ask an LLM
“How many addresses are suppressed overall and by source?”
“What is the total suppression count?”
Tell an agent
Show the suppression summary.
Give me suppression counts grouped by source.
PUT /suppression-list/{recipient} Suppress a single email address · Create or Update Single Suppression #
Ask an LLM
“How do I suppress one email address from future mailings?”
“Can I add a description when suppressing an address?”
Tell an agent
Suppress {recipient} as {type}.
Suppress {recipient} as {type} with reason {description}.
GET /suppression-list/{recipient} Check suppression status for one address · Retrieve Single Suppression #
Ask an LLM
“Is a particular email address suppressed, and on which list?”
“Can I look up suppression status for one recipient?”
Tell an agent
Check suppression status for {recipient}.
Show suppressions for {recipient} of type {types}.
DELETE /suppression-list/{recipient} Remove a suppression entry · Delete Suppression #
Ask an LLM
“How do I lift a suppression so an address can receive mail again?”
“Can I remove a suppression for just one list?”
Tell an agent destructive · confirm first
Delete suppression for {recipient}.
Remove {type} suppression for {recipient} on list {list_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sparkpost:sparkpost-suppression-list-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sparkpost-suppression-list-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SparkPost Suppression List API
  description: Manage the suppression list to prevent sending to unsubscribed, bounced, or complained recipients. Supports bulk insert, search, and deletion of suppressed addresses.
  version: 1.0.0
  contact:
    name: SparkPost Developer Support
    url: https://developers.sparkpost.com/api/suppression-list/
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
- url: https://api.sparkpost.com/api/v1
  description: SparkPost Production API
security:
- ApiKeyAuth: []
tags:
- name: Suppression List
paths:
  /suppression-list:
    put:
      operationId: bulkUpsertSuppressions
      summary: Bulk Create or Update Suppressions
      description: Insert or update up to 10,000 suppression entries in a single request.
      tags:
      - Suppression List
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - recipients
              properties:
                recipients:
                  type: array
                  maxItems: 10000
                  description: List of suppression entries to create or update
                  items:
                    $ref: '#/components/schemas/SuppressionEntry'
      responses:
        '200':
          description: Suppressions upserted
        '400':
          description: Invalid or malformed recipients
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: searchSuppressions
      summary: Search Suppressions
      description: Search the suppression list with optional filters for date range, domain, source, and type.
      tags:
      - Suppression List
      parameters:
      - name: to
        in: query
        required: false
        description: Filter suppressions created before this date (YYYY-MM-DDTHH:mm:ssZ)
        schema:
          type: string
          format: date-time
      - name: from
        in: query
        required: false
        description: Filter suppressions created after this date (YYYY-MM-DDTHH:mm:ssZ)
        schema:
          type: string
          format: date-time
      - name: domain
        in: query
        required: false
        description: Filter by recipient email domain
        schema:
          type: string
      - name: sources
        in: query
        required: false
        description: Filter by suppression sources
        schema:
          type: string
      - name: types
        in: query
        required: false
        description: Filter by suppression type (transactional or non_transactional)
        schema:
          type: string
      - name: description
        in: query
        required: false
        description: Filter by description (partial match)
        schema:
          type: string
      - name: description_strict
        in: query
        required: false
        description: If true, use exact description match
        schema:
          type: boolean
      - name: list_id
        in: query
        required: false
        description: Filter by list ID
        schema:
          type: string
      - name: cursor
        in: query
        required: false
        description: Pagination cursor
        schema:
          type: string
      - name: per_page
        in: query
        required: false
        description: Results per page (default 1000)
        schema:
          type: integer
          default: 1000
      - name: page
        in: query
        required: false
        description: Page number for pagination
        schema:
          type: integer
      - name: sort
        in: query
        required: false
        description: Sort order
        schema:
          type: string
          enum:
          - asc
          - desc
      responses:
        '200':
          description: List of suppression entries
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuppressionListResponse'
  /suppression-list/summary:
    get:
      operationId: getSuppressionSummary
      summary: Retrieve Suppression Summary
      description: Retrieve suppression counts grouped by source and overall total.
      tags:
      - Suppression List
      responses:
        '200':
          description: Suppression counts summary
  /suppression-list/{recipient}:
    put:
      operationId: upsertSuppression
      summary: Create or Update Single Suppression
      description: Insert or update a suppression entry for a specific recipient email address.
      tags:
      - Suppression List
      parameters:
      - name: recipient
        in: path
        required: true
        description: Recipient email address
        schema:
          type: string
          format: email
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SingleSuppressionRequest'
      responses:
        '200':
          description: Suppression upserted
        '400':
          description: Missing or invalid type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: getSuppression
      summary: Retrieve Single Suppression
      description: Retrieve suppression status for a specific recipient email address.
      tags:
      - Suppression List
      parameters:
      - name: recipient
        in: path
        required: true
        description: Recipient email address
        schema:
          type: string
          format: email
      - name: types
        in: query
        required: false
        description: Filter by suppression type
        schema:
          type: string
      - name: cursor
        in: query
        required: false
        description: Pagination cursor
        schema:
          type: string
      - name: per_page
        in: query
        required: false
        description: Results per page (1-10,000, default 1000)
        schema:
          type: integer
      - name: page
        in: query
        required: false
        description: Page number
        schema:
          type: integer
      responses:
        '200':
          description: Suppression entry
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuppressionResponse'
        '404':
          description: Recipient not found in suppression list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: deleteSuppression
      summary: Delete Suppression
      description: Remove a suppression entry for a specific recipient.
      tags:
      - Suppression List
      parameters:
      - name: recipient
        in: path
        required: true
        description: Recipient email address
        schema:
          type: string
          format: email
      - name: list_id
        in: query
        required: false
        description: Filter by list ID
        schema:
          type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  enum:
                  - transactional
                  - non_transactional
                  description: Suppression type to remove
      responses:
        '204':
          description: Suppression deleted
        '403':
          description: Compliance-protected suppression cannot be deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Recipient not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SuppressionResponse:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              recipient:
                type: string
              type:
                type: string
              source:
                type: string
              description:
                type: string
              created:
                type: string
                format: date-time
              updated:
                type: string
                format: date-time
    SingleSuppressionRequest:
      type: object
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - transactional
          - non_transactional
          description: Type of suppression
        description:
          type: string
          description: Human-readable reason for suppression
        list_id:
          type: string
          description: RFC 2919 compliant list identifier
    ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
              code:
                type: string
              description:
                type: string
    SuppressionListResponse:
      type: object
      properties:
        results:
          type: array
          items:
            type: object
            properties:
              recipient:
                type: string
              type:
                type: string
              source:
                type: string
              description:
                type: string
              created:
                type: string
                format: date-time
              updated:
                type: string
                format: date-time
        total_count:
          type: integer
        links:
          type: object
          properties:
            next:
              type: string
    SuppressionEntry:
      type: object
      required:
      - recipient
      - type
      properties:
        recipient:
          type: string
          format: email
          description: Recipient email address
        type:
          type: string
          enum:
          - transactional
          - non_transactional
          description: Type of suppression
        description:
          type: string
          description: Human-readable reason for suppression
        list_id:
          type: string
          description: RFC 2919 compliant list identifier
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization