Skip to content

API Reference Overview

The MoMail API is organized around REST principles with predictable resource-oriented URLs. All API access is over HTTPS and returns JSON.

https://api.momail.io/v1

All API requests require authentication via an API key in the X-API-Key header:

X-API-Key: mk_xxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxx

See Authentication for more details.

All responses follow a consistent envelope format:

{
"success": true,
"data": { ... },
"meta": { ... }
}
{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Error description",
"details": { ... }
}
}
MethodDescription
GETRetrieve a resource or list of resources
POSTCreate a new resource
PUTUpdate an existing resource (full replacement)
PATCHPartially update a resource
DELETERemove a resource

Many endpoints support these common parameters:

ParameterTypeDescription
limitintegerMaximum number of results (default: 20, max: 100)
offsetintegerNumber of results to skip (for pagination)
sortstringField to sort by (e.g., created_at:desc)

List endpoints return paginated results:

{
"success": true,
"data": [ ... ],
"meta": {
"total": 150,
"limit": 20,
"offset": 0,
"hasMore": true
}
}

To fetch the next page:

Terminal window
curl https://api.momail.io/v1/domains?offset=20&limit=20 \
-H "X-API-Key: your_key"

All dates are returned in ISO 8601 format:

2024-01-15T10:30:00.000Z

Official SDKs available:

The current API version is v1. The version is included in the base URL:

https://api.momail.io/v1/...

When we release a new API version, we will provide at least 6 months notice before deprecating the previous version.