Skip to content

Pro API Overview

The Pro API gives you programmatic control over custom domains, webhooks, API tokens, and mailbox management.

Base URL

https://api.mail.cx/pro/api

Authentication

All Pro endpoints require an API token. Create one in the Pro dashboard under Tokens (prefixed with tm_pro_).

bash
curl https://api.mail.cx/pro/api/accounts \
  -H "Authorization: Bearer tm_pro_xxxxxxxxxxxx"

Pro Features

FeatureDescription
AccountsCreate and manage multiple mailboxes
DomainsAdd custom domains with DNS verification
WebhooksReceive HTTP callbacks when emails arrive
API TokensLong-lived tokens for server-to-server access

Pro Limits

ResourceLimit
Webhooks1 per user
Storage/mailbox50 MB

INFO

Mailbox and domain limits are configured per account and may vary by plan.

Endpoints

MethodPathDescription
GET/pro/api/accountsList mailboxes
DELETE/pro/api/accounts/{id}Delete a mailbox
PUT/pro/api/accounts/{id}/reset-passwordReset mailbox password
GET/pro/api/accounts/{id}/messagesList messages for a mailbox
GET/pro/api/domainsList custom domains
POST/pro/api/domainsAdd a custom domain
POST/pro/api/domains/{id}/verifyVerify domain DNS
DELETE/pro/api/domains/{id}Delete a custom domain
GET/pro/api/webhooksList webhooks
POST/pro/api/webhooksCreate a webhook
DELETE/pro/api/webhooks/{id}Delete a webhook
POST/pro/api/webhooks/{id}/rotateRotate webhook secret
GET/pro/api/webhooks/{id}/deliveriesList delivery attempts
GET/pro/api/tokensList API tokens
POST/pro/api/tokensCreate an API token
DELETE/pro/api/tokens/{id}Revoke an API token

Mail.cx API Documentation