API documentation¶
Welcome to Mailcheap’s New Mail System (NMS) API v1
documentation. Contact us for corrections, additions or general feedback.
General information¶
This HTTP API is built around ReST principles. It accepts and responds with JSON data (application/json
mimetype, UTF-8 character encoding) unless stated otherwise. Notable exceptions:
- HTTP
204 NO CONTENT
responses are an empty string intext/html
mimetype. - Uncaught exceptions due to program error (very rare) are in
text/html
mimetype. - Gateway timeouts due to server overload are in
text/html
mimetype.
All routes requiring authentication must use Basic access authentication and provide a header like: Authorization: Basic <username:auth_token>
where auth_token
is the authorization token obtained after authenticating with your login credentials (username & password) and the part within (but not including) angle brackets is base64 encoded.
Examples provided are in Python 3
. Examples in curl
are provided for authentication routes.
Replace placeholder values in the documentation with actual values. For example, replace example.domain.tld
with your own mailserver hostname.
Rate limits¶
- Variable, 15-20 requests per second per IP address
Your IP may be banned for 1 or more hours if the above limits are crossed multiple times.
Dedicated services can enable custom rate limits and whitelisting of trusted IPs by opening a support ticket.
API Index¶
Authentication¶
Two-factor authentication (2FA)¶
- Enable 2FA
- Verify & activate 2FA
- Get 2FA status
- Disable 2FA
- Create device password
- Get device passwords
- Delete device password
Passwordless authentication¶
- Get registration options
- Verify registration
- Get authentication options
- Verify authentication
- Get credentials
- Update credential
- Delete credential
Password authentication¶
Account recovery¶
Accounts¶
- Create account
- Get all accounts
- Get an account
- Delete an account
- Update an account
- DomainAdmin cascade enable / disable
- DomainAdmin cascade delete
- DomainAdmin cascade transfer
Domains¶
- Create domain
- Get all domains
- Delete domain
- Enable SDR
- Get SDR status
- Disable SDR
- Enable DKIM
- Get DKIM status
- Disable DKIM
Domain aliases¶
Relay domains¶
Aliases¶
Sender addresses¶
Global antispam thresholds¶
Per-domain antispam thresholds¶
Global whitelist & blacklist rules¶
- Create whitelist / blacklist
- Get whitelist & blacklist
- Update whitelist / blacklist
- Delete whitelist / blacklist
Per-domain whitelist & blacklist rules¶
- Create whitelist / blacklist
- Get whitelist & blacklist
- Update whitelist / blacklist
- Delete whitelist / blacklist
Auto migration setup¶
Auto migration users¶
Auto migration resync¶
Contacts¶
Contacts sharing¶
Calendars¶
Calendar sharing¶
Sieve filtering¶
Vacation autoresponder¶
Webmail password¶
Settings¶
Statistics¶
Server¶
- Get logs
- Get load
- Disk usage
- Recalculate quota
- Rebuild index
- Cache clear
- Export radicale
- Radicale export status