- Create a limit for an account or subaccount
List limit thresholds for an account
Create a limit threshold for an account
Get a limit threshold for an account
Update a limit threshold for an account
Delete a limit threshold for an account
List all limits for a given subaccount
Get a limit for a subaccount for the given metric if it exists, otherwise returns 404. Takes the SubAccountID from the X-Mailgun-On-Behalf-Of header.
Update a limit for an account given the metric name in the path
Delete a limit for an account given the metric name in the path
Get parent-level limit warning settings for an account
Update parent-level limit warning settings for an account
Create parent-level limit warning settings for an account
Delete parent-level limit warning settings for an account
Create a limit for an acc...
Creates a limit tracker for the given metric. When called by a parent account, 'subaccount_id' may be used to set the limit on a specific subaccount, otherwise the subaccount ID is taken from the X-Mailgun-On-Behalf-Of header. Settings must be configured at the parent account level using /v2/thresholds/limits-primary
Security
basicAuth
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 |
- US Mailgunhttps://api.mailgun.net/v2/thresholds/limits
- EU Mailgunhttps://api.eu.mailgun.net/v2/thresholds/limits
curl -i -X POST \
-u '<username>:<password>' \
https://api.mailgun.net/v2/thresholds/limits \
-H 'Content-Type: application/json' \
-d '{
"metric": "email_preview_success_count",
"limit": "200",
"subaccount_id": "67890"
}'Response
{ "id": "915ff385-0a9a-4087-86d5-6727ea7d9b49", "created_at": "2026-02-01T10:30:00Z", "updated_at": "0001-01-01T00:00:00Z", "subaccount_id": "67890", "parent_account_id": "12345", "metric": "email_preview_success_count", "limit": "200" }