SMTP Senpai (MailSenpai) Website forms API
The Website forms API from SMTP Senpai (MailSenpai) — 1 operation(s) for website forms.
The Website forms API from SMTP Senpai (MailSenpai) — 1 operation(s) for website forms.
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-website-forms-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 Website forms API
version: 1.1.0
contact:
name: MailSenpai
url: https://en.mailsenpai.com/smtp-api/
description: 'Operations tagged Website forms 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: Website forms
paths:
/relay/f/{codice}:
servers:
- url: https://app.mailsenpai.com
description: Form endpoint host
parameters:
- name: codice
in: path
required: true
schema:
type: string
pattern: ^[A-Za-z0-9]{6,32}$
description: The form code, copied from the customer area.
get:
operationId: moduloInfo
tags:
- Website forms
security: []
summary: Reminder of how to use the address
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ModuloInfo'
example:
ok: true
modulo: Contatti sito
come: Punta qui l'attributo action del tuo form, con method="POST".
campi:
- _subject
- _replyto
- _next
- _cc
- _gotcha
- _format
'404':
description: Form not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: modulo non trovato
post:
operationId: moduloInvia
tags:
- Website forms
security: []
summary: Receives a submission from your website form
description: 'No key: the address is public by nature and is protected by restricting it to your domains (form setting). It answers in JSON if the request has `Accept: application/json`, `X-Requested-With: XMLHttpRequest` or a JSON body; otherwise, with a classic browser submission, it redirects with 303 to `_next` (or the page set in the form) or shows a confirmation page. Every delivered email counts towards the monthly volume.'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/ModuloCampi'
multipart/form-data:
schema:
$ref: '#/components/schemas/ModuloCampi'
application/json:
schema:
$ref: '#/components/schemas/ModuloCampi'
example:
nome: Mario Rossi
email: mario@esempio.it
messaggio: Vorrei un preventivo
_subject: Richiesta dal sito
_gotcha: ''
responses:
'200':
description: Received (JSON), or HTML confirmation page for classic submissions without a thank-you page.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
const: true
messaggio:
type: string
example:
ok: true
messaggio: Grazie, il messaggio è arrivato.
text/html:
schema:
type: string
'303':
description: 'Classic submission: redirect to the thank-you page.'
headers:
Location:
schema:
type: string
format: uri
'400':
description: 'Classic submission failed: HTML page with the reason.'
content:
text/html:
schema:
type: string
'403':
description: Form paused, service not active or website not allowed.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: questo modulo non è abilitato per www.altrosito.it
'404':
description: Form not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: modulo non trovato
'409':
description: No verified sending domain yet.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: il servizio non ha ancora un dominio di invio verificato
'422':
description: No field filled in.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: il modulo è arrivato vuoto
'429':
description: More than 25 submissions in an hour from the same network, or monthly volume used up.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: 'troppi invii ravvicinati: riprova fra qualche minuto'
'502':
description: Delivery failed.
content:
application/json:
schema:
$ref: '#/components/schemas/Errore'
example:
ok: false
errore: 'non siamo riusciti a consegnare la risposta: riprova'
options:
operationId: moduloPreflight
tags:
- Website forms
security: []
summary: CORS preflight for JavaScript submissions
responses:
'204':
description: Allowed from any origin; POST and OPTIONS methods; Content-Type and Accept headers.
components:
schemas:
Errore:
type: object
required:
- ok
- errore
properties:
ok:
type: boolean
const: false
errore:
type: string
description: Human-readable explanation, always in Italian.
ModuloInfo:
type: object
properties:
ok:
type: boolean
const: true
modulo:
type: string
come:
type: string
campi:
type: array
items:
type: string
ModuloCampi:
type: object
description: 'All the fields of your form (max 60, max 5,000 characters each). Names starting with `_` are reserved: only the listed ones are used, others are ignored. File uploads are not supported.'
additionalProperties:
type: string
properties:
_subject:
type: string
description: Subject of the email you receive.
_replyto:
type: string
format: email
description: Reply address. If missing, the first field with «mail» in its name and a valid address is used.
_next:
type: string
format: uri
description: Thank-you page (full http/https address) for classic submissions.
_cc:
type: string
format: email
description: Copy to another address, only if allowed in the form settings.
_gotcha:
type: string
description: 'Honeypot field to keep empty and hidden: if filled, the submission is silently discarded.'
_format:
type: string
enum:
- plain
description: '`plain` to receive the email as plain text.'
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