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
| _next | Full URL to redirect to after sending. Overrides the form's redirect setting. |
| _subject | Subject line of the notification email. |
| _replyto | Reply-to address. Defaults to a field named email. |
| _gotcha | Honeypot. 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 / 200 | Saved. HTML forms are redirected to your thank-you page. |
| 400 | Empty, unreadable, more than 60 fields, or a password/card field. |
| 403 | The form only accepts submissions from its allowed sites. |
| 404 | Unknown or disabled form. |
| 413 / 429 | Over 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/forms | Your forms, with submission counts and this month's usage. |
| POST /api/forms | Create: {"name","email","webhook","redirect","origins"} (all optional). |
| GET /api/forms/:id | One form. |
| PATCH /api/forms/:id | Change any field; null clears it. |
| DELETE /api/forms/:id | Delete the form and its submissions. |
| GET /api/forms/:id/submissions | Newest first. ?limit=50&before=ID to page, ?format=csv to export. |
| DELETE /api/forms/:id/submissions?id=ID | Delete 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.