SMTP Senpai (MailSenpai) Suppression API
The Suppression API from SMTP Senpai (MailSenpai) — 3 operation(s) for suppression.
The Suppression API from SMTP Senpai (MailSenpai) — 3 operation(s) for suppression.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/mailsenpai:mailsenpai-suppression-api"
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.
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: 3.2.0
info:
title: Mailsenpai Suppression API
version: 1.1.0
contact:
name: MailSenpai
url: https://en.mailsenpai.com/smtp-api/
description: 'Operations tagged Suppression across 2 of this provider''s published API definitions: mailsenpai-openapi.json, mailsenpai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.mailsenpai.com/relay/v1
security:
- chiaveBearer: []
tags:
- name: Suppression
paths:
/soppressi:
get:
operationId: soppressi
tags:
- Suppression
summary: Addresses and domains we no longer email
parameters:
- name: quanti
in: query
schema:
type: integer
minimum: 1
maximum: 1000
default: 100
- name: cerca
in: query
schema:
type: string
description: Part of the address to search for.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
const: true
totale:
type: integer
description: Total entries on the list (ignores `cerca`).
elenco:
type: array
items:
$ref: '#/components/schemas/Soppresso'
example:
ok: true
totale: 2
elenco:
- supp_id: '501'
relay_id: '12'
email: mario@esempio.it
reason: bounce
note: 5.1.1 user unknown
created_at: '2026-10-01 08:42:10'
- supp_id: '488'
relay_id: '12'
email: '@concorrente.it'
reason: manuale
note: ''
created_at: '2026-09-20 10:00:00'
'401':
$ref: '#/components/responses/ChiaveNonValida'
'403':
$ref: '#/components/responses/Sospeso'
'405':
description: 'HTTP method not allowed: the Allow header gives the right one.'
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: 'metodo non ammesso: usa GET'
servers:
- url: https://app.mailsenpai.com/relay/v1
/sopprimi:
post:
operationId: sopprimi
tags:
- Suppression
summary: Add an address or a domain to the suppression list
description: 'For a whole domain write `@domain.com` or `domain.com`. If the entry was already there it still returns `ok: true` with `gia_presente: true`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
example: mario@esempio.it
nota:
type: string
maxLength: 255
application/x-www-form-urlencoded:
schema:
type: object
required:
- email
properties:
email:
type: string
nota:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Esito'
example:
ok: true
email: mario@esempio.it
gia_presente: false
'401':
$ref: '#/components/responses/ChiaveNonValida'
'403':
$ref: '#/components/responses/Sospeso'
'400':
description: Invalid entry.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: serve un indirizzo email o un dominio (@dominio.it)
'405':
description: 'HTTP method not allowed: the Allow header gives the right one.'
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: 'metodo non ammesso: usa GET'
servers:
- url: https://app.mailsenpai.com/relay/v1
/riammetti:
post:
operationId: riammetti
tags:
- Suppression
summary: Remove from the list an entry you added yourself
description: 'Write the entry exactly as it appears on the list (domains with the at sign, `@domain.com`). Addresses that entered because of a bounce or a spam report should not be re-admitted from here: ask for a review in the customer area. Entries added because of a bounce or a spam report return 409; an entry that is not there returns 404.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
example: mario@esempio.it
application/x-www-form-urlencoded:
schema:
type: object
required:
- email
properties:
email:
type: string
responses:
'200':
description: '`ok: true` if the entry existed and was removed.'
content:
application/json:
schema:
$ref: '#/components/schemas/Esito'
example:
ok: true
'401':
$ref: '#/components/responses/ChiaveNonValida'
'403':
$ref: '#/components/responses/Sospeso'
'404':
description: Entry not on the list.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: indirizzo non presente in elenco
'409':
description: 'Entry blocked by our servers: ask for a review from the customer area.'
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: 'questo indirizzo è stato bloccato dai nostri server (bounce): puoi chiederne lo sblocco dall''area cliente'
'405':
description: 'HTTP method not allowed: the Allow header gives the right one.'
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: 'metodo non ammesso: usa GET'
servers:
- url: https://app.mailsenpai.com/relay/v1
webhooks:
eventoRelay:
post:
summary: Relay event (to your address)
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EventoWebhook'
responses:
'200':
description: Answer 2xx within 8 seconds.
tags:
- Suppression
servers:
- url: https://app.mailsenpai.com/relay/v1
components:
schemas:
Errore:
type: object
required:
- ok
- errore
properties:
ok:
type: boolean
const: false
errore:
type: string
description: Human-readable explanation, always in Italian.
Soppresso:
type: object
properties:
supp_id:
type: string
pattern: ^\d+$
relay_id:
type: string
pattern: ^\d+$
email:
type: string
description: Address, or a whole domain written `@domain.com`.
reason:
type: string
enum:
- bounce
- complaint
- manuale
note:
type: string
created_at:
type: string
example: '2026-09-30 14:03:51'
EventoWebhook:
type: object
description: 'Body of the POST we send to your address. Headers: X-MailSenpai-Event, X-MailSenpai-Delivery, X-MailSenpai-Signature (t=<unix>,v1=<HMAC-SHA256 of "<t>.<body>" with the secret>).'
properties:
id:
type: string
example: evt_88214
type:
type: string
created_at:
type: string
format: date-time
data:
type: object
properties:
email:
type: string
domain:
type: string
from_domain:
type: string
code:
type: string
reason:
type: string
message_id:
type: string
url:
type: string
account:
type: string
test:
type: boolean
description: Only in test events.
Esito:
type: object
required:
- ok
properties:
ok:
type: boolean
responses:
ChiaveNonValida:
description: Missing or invalid key.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: chiave non valida
Sospeso:
description: Account suspended (plan expired or unpaid, volume used up without continuity, spending cap reached…). The message states the reason.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: 'servizio sospeso: volume del mese esaurito. Controlla il tuo piano nell''area cliente.'
securitySchemes:
chiaveBearer:
type: http
scheme: bearer
bearerFormat: msp_…
description: '`Authorization: Bearer msp_…` (the key starts with `msp_`). As an alternative the `chiave` field is accepted in the body (JSON or form). A key in the URL (`?chiave=`) is refused with 401: it would end up in logs.'
externalDocs:
description: Documentation with examples
url: https://en.mailsenpai.com/smtp-api/
x-refined-from:
- mailsenpai-openapi.json
- mailsenpai-openapi.json