- Create a limit threshold for an account
The metric being monitored.
| Enum Value | Description |
|---|---|
| email_preview_success_count | The number of successful email previews |
| seed_test_count | The number of inbox placement tests |
The comparison operator.
| Enum Value | Description |
|---|---|
| = | Equal |
| != | Not equal |
| < | Less than |
| <= | Less than or equal |
| > | Greater than |
| >= | Greater than or equal |
The dimension to apply to the metric.
| Enum Value | Description |
|---|---|
| domain | Sender domain name, e.g. example.com |
| ip | Sending IP address |
| ip_pool | IP Pool ID |
| recipient_provider | Recipient Provider, e.g. Gmail, Other US, etc. |
| subaccount | Subaccount name |
A list of filters to apply to the limit.
- US Mailgunhttps://api.mailgun.net/v1/thresholds/limits
- EU Mailgunhttps://api.eu.mailgun.net/v1/thresholds/limits
curl -i -X POST \
-u '<username>:<password>' \
https://api.mailgun.net/v1/thresholds/limits \
-H 'Content-Type: application/json' \
-d '{
"name": "email preview",
"metric": "email_preview_success_count",
"comparator": ">=",
"limit": "2100",
"dimension": "subaccount",
"period": "1M"
}'A 200 response
A list of filters to apply to the limit.
The metric being monitored.
| Enum Value | Description |
|---|---|
| email_preview_success_count | The number of successful email previews |
| seed_test_count | The number of inbox placement tests |
The comparison operator.
| Enum Value | Description |
|---|---|
| = | Equal |
| != | Not equal |
| < | Less than |
| <= | Less than or equal |
| > | Greater than |
| >= | Greater than or equal |
The dimension to apply to the metric.
| Enum Value | Description |
|---|---|
| domain | Sender domain name, e.g. example.com |
| ip | Sending IP address |
| ip_pool | IP Pool ID |
| recipient_provider | Recipient Provider, e.g. Gmail, Other US, etc. |
| subaccount | Subaccount name |
{ "id": "915ff385-0a9a-4087-86d5-6727ea7d9b49", "parent_account_id": "12345", "subaccount_id": "67890", "name": "email preview", "created_at": "2026-02-01T10:30:00Z", "updated_at": "0001-01-01T00:00:00Z", "last_checked": "0001-01-01T00:00:00Z", "metric": "email_preview_success_count", "comparator": ">=", "limit": "2100", "dimension": "subaccount", "period": "1M" }