Mailtea Suppressions API

The Suppressions API from Mailtea — 2 operation(s) for suppressions.

GitHub OpenAPI

Operations 4

DELETE /v1/suppressions Remove Suppressions #
GET /v1/suppressions List Suppressions #
POST /v1/suppressions Add Suppressions #
GET /v1/suppressions/export Export Suppressions #

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/mailtea-app:mailtea-app-suppressions-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

mailtea-app-suppressions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mailtea Suppressions API
  version: 0.24.0
  summary: Send transactional and marketing email, manage contacts and audiences, verify sending domains, render templates, and subscribe to webhook events.
  description: Every endpoint lives under `/v1` and takes a Bearer token (`mt_pat_…` personal access token, `mt_svc_…` service key, or `mt_test_…` test key) in the `Authorization` header. The required scopes are listed per operation. This document is generated from the API reference at https://docs.mailtea.app/docs/api-reference.
  termsOfService: https://mailtea.app/terms
  contact:
    name: Mailtea
    url: https://mailtea.app
    email: support@mailtea.app
  license:
    name: AGPL-3.0-only
    identifier: AGPL-3.0-only
servers:
- url: https://api.mailtea.app
  description: Mailtea cloud
tags:
- name: Suppressions
paths:
  /v1/suppressions:
    delete:
      operationId: removeSuppressions
      summary: Remove Suppressions
      description: 'Remove addresses from the team-wide suppression list


        Remove one or more addresses from the team''s suppression list. Removing an address restores matching contacts across all of the team''s publications: a contact goes back to `unsubscribed` if it had previously unsubscribed, otherwise to `active`.'
      tags:
      - Suppressions
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/suppressions/remove-suppressions
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
              example:
                removed: 1
        '400':
          description: Validation failed — an empty list, an invalid address, or more than 1000 emails in one request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks the `suppressions:write` scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - suppressions:write
      x-mailtea-scopes:
      - suppressions:write
    get:
      operationId: listSuppressions
      summary: List Suppressions
      description: 'Search the team-wide suppression list with cursor-based pagination


        List and search the team''s suppression entries, ordered by newest first. Filter by reason, email substring, or a creation-date range. Results are paginated with cursor-based pagination.'
      tags:
      - Suppressions
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/suppressions/list-suppressions
      parameters:
      - name: reason
        in: query
        required: false
        description: Filter by reason. One of `bounced`, `complained`, `manual`, `unsubscribed`, `invalid`, `unknown`.
        schema:
          type: string
      - name: q
        in: query
        required: false
        description: Case-insensitive substring match on the email address.
        schema:
          type: string
      - name: created_after
        in: query
        required: false
        description: Only entries created on or after this ISO 8601 date/datetime.
        schema:
          type: string
      - name: created_before
        in: query
        required: false
        description: Only entries created on or before this ISO 8601 date/datetime.
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Number of results per page. 1–100, default `20`.
        schema:
          type: number
      - name: starting_after
        in: query
        required: false
        description: Pagination cursor from a previous response's `next_cursor`.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    description: Always `"list"`.
                  data:
                    type: array
                    description: Array of [suppression objects](/docs/api-reference/suppressions#the-suppression-object).
                  has_more:
                    type: boolean
                    description: Whether additional pages exist.
                  next_cursor:
                    type: string
                    description: Cursor for the next page. Only present when `has_more` is `true`. Pass it as `starting_after`.
              example:
                object: list
                data:
                - object: suppression
                  id: supp_abc123
                  email: old@example.com
                  reason: manual
                  source: operator
                  publication_id: null
                  created_at: '2026-07-19T10:00:00.000Z'
                - object: suppression
                  id: supp_def456
                  email: typo@exmaple.com
                  reason: invalid
                  source: api
                  publication_id: pub_abc123
                  created_at: '2026-07-18T09:00:00.000Z'
                has_more: false
        '400':
          description: An unknown `reason`, or an invalid `created_after` / `created_before` date.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks the `suppressions:read` scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - suppressions:read
      x-mailtea-scopes:
      - suppressions:read
    post:
      operationId: addSuppressions
      summary: Add Suppressions
      description: 'Add addresses to the team-wide suppression list


        Add one or more addresses to the team''s suppression list. Suppressed addresses are excluded from every send across all of the team''s publications.


        Adding an address also moves any matching contacts (in any of the team''s publications) to the `suppressed` status. Entries are idempotent per address — re-adding an address that is already suppressed is a no-op and is not counted in `added`.'
      tags:
      - Suppressions
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/suppressions/add-suppressions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                emails:
                  type: array
                  items:
                    type: string
                  description: The addresses to suppress. 1–1000 per request. Normalized to lowercase; invalid addresses are rejected.
                reason:
                  type: string
                  description: Why the addresses are suppressed. One of `bounced`, `complained`, `manual`, `unsubscribed`, `invalid`, `unknown`. Defaults to `manual`.
              required:
              - emails
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
              example:
                added: 2
        '400':
          description: Validation failed — an empty list, an invalid address, an unknown `reason`, or more than 1000 emails in one request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks the `suppressions:write` scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - suppressions:write
      x-mailtea-scopes:
      - suppressions:write
  /v1/suppressions/export:
    get:
      operationId: exportSuppressions
      summary: Export Suppressions
      description: 'Download the full team-wide suppression list as CSV


        Download every suppression entry for the team as a CSV file. The response is streamed as `text/csv` with a `Content-Disposition: attachment` header, so it downloads directly in a browser or can be piped to a file.'
      tags:
      - Suppressions
      externalDocs:
        url: https://docs.mailtea.app/docs/api-reference/suppressions/export-suppressions
      responses:
        '200':
          description: OK
          content:
            text/csv:
              schema:
                type: string
              example: 'email,reason,source,created_at

                old@example.com,manual,operator,2026-07-19T10:00:00.000Z

                typo@exmaple.com,invalid,api,2026-07-18T09:00:00.000Z'
        '401':
          description: Unauthorized — missing or invalid token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden — the token lacks the `suppressions:read` scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth:
        - suppressions:read
      x-mailtea-scopes:
      - suppressions:read
components:
  schemas:
    Error:
      type: object
      description: Every error body carries `error`; validation failures add `details` and some refusals add a machine-readable `code`.
      properties:
        error:
          type: string
        code:
          type: string
        details:
          type: array
          items:
            type: object
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A Mailtea API key. Scopes such as `contacts:write` are properties of the key, chosen when it is created; each operation lists the scope it needs under `x-mailtea-scopes`. See https://docs.mailtea.app/docs/api-reference/authentication.
externalDocs:
  description: API reference
  url: https://docs.mailtea.app/docs/api-reference