mailexo

Docs

Everything mailexo accepts and returns. Base URL: https://mailexo.com

HTML forms

<form action="https://mailexo.com/f/YOUR_FORM_ID" method="POST">
  <input name="email" type="email" placeholder="Your email" required>
  <textarea name="message" placeholder="Message"></textarea>
  <input name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
  <button>Send</button>
</form>

Any field name works, except password and card-number fields, which mailexo rejects to stop phishing. Files aren't stored on the free plan (their names are kept).

Special fields

_nextFull URL to redirect to after sending. Overrides the form's redirect setting.
_subjectSubject line of the notification email.
_replytoReply-to address. Defaults to a field named email.
_gotchaHoneypot. Hide it with CSS; bots fill it in and their submission is silently dropped.

JavaScript (fetch)

const r = await fetch('https://mailexo.com/f/YOUR_FORM_ID', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ email: 'ana@example.com', message: 'Hi!' }),
});
// 200 {"ok":true}   or   4xx {"error":"…"}

For FormData bodies, send accept: application/json to get JSON instead of a redirect.

Responses

303 / 200Saved. HTML forms are redirected to your thank-you page.
400Empty, unreadable, more than 60 fields, or a password/card field.
403The form only accepts submissions from its allowed sites.
404Unknown or disabled form.
413 / 429Over 10 MB, or more than 10 submissions a minute from one visitor.

Webhooks

Set a webhook URL on a form. Slack incoming-webhook and Discord webhook URLs get a readable message. Any other https URL receives:

POST your-url
{"form":"Ab3dE5fG7h","id":"0mgx2k1a9Qx7Z","data":{"email":"ana@example.com","message":"Hi!"},"created_at":1763452800000}

API

Create a key in Settings and send it as Authorization: Bearer mx_….

GET /api/formsYour forms, with submission counts and this month's usage.
POST /api/formsCreate: {"name","email","webhook","redirect","origins"} (all optional).
GET /api/forms/:idOne form.
PATCH /api/forms/:idChange any field; null clears it.
DELETE /api/forms/:idDelete the form and its submissions.
GET /api/forms/:id/submissionsNewest first. ?limit=50&before=ID to page, ?format=csv to export.
DELETE /api/forms/:id/submissions?id=IDDelete one submission (or all, without id).

Free plan limits

500 submissions a month per account (extra ones are saved but not notified), 50 forms, submissions kept 30 days.