Skip to Content
🎉 Mailprex 1.0 is soon to released. Read more →
API Reference

API Reference

HTTP API for Mailprex form-to-email.

Base URL: https://api.mailprex.excelso.xyz

Public — send form email

POST /email/send

Sends a contact form email to emailDestiny.

Authentication: formToken in JSON body (no cookie).

CORS: * (intended for browser forms from any origin).

Request body

{ "formToken": "mk_live_abc123…", "webName": "My Portfolio", "emailDestiny": "owner@example.com", "fullname": "Jane Doe", "email": "jane@example.com", "message": "Hi, I'd like to get in touch.", "phone": "+1 555 0100", "service": "Consulting" }

Success 200

{ "message": "Form sent successfully" }

Common errors

StatusMeaning
400Validation failed
401Invalid formToken
429Rate or monthly quota exceeded
500SMTP / server error

Auth (dashboard)

Cookie session (mailprex_token, httpOnly). Used by the web app.

MethodPathDescription
POST/auth/registerCreate account
POST/auth/loginLogin
POST/auth/logoutLogout + revoke JWT
GET/auth/meCurrent user
GET/auth/verify?token=Email verification
GET/auth/configPublic deployment config

Form tokens

Requires auth cookie.

MethodPathDescription
POST/token/generateTokenCreate token — returns full formToken once
GET/token/getFormToken{ hasToken, prefix, legacy? }
DELETE/token/deleteTokenRevoke token

Billing (Gumroad)

Requires auth cookie. See Gumroad billing.

MethodPathDescription
POST/billing/checkout{ plan: "standard" | "business" } → { url }
GET/billing/portalGumroad library URL
POST/billing/gumroad/pingGumroad Ping webhook (server-side)

Field reference

See User fields guide.

Client SDK

Prefer the npm package — SDK v2:

import { sendMailprex } from "mailprex";
Last updated on
Mailprex Docs 2026 © Mailprex.