Skip to content

Get parent-level limit warning settings for an account

Request

Security
basicAuth
curl -i -X GET \
  -u '<username>:<password>' \
  https://api.mailgun.net/v2/thresholds/limits-primary

Responses

A 200 response

Bodyapplication/json
created_atstring, (date-time)required
last_checkedstring, (date-time)
next_checkstring, (date-time)
updated_atstring, (date-time)
watch_intervalstring
comparatorstringrequired
account_groupstring
subaccount_idstring
parent_account_idstring
idstring
descriptionstring
metricstringrequired
limitstringrequired
namestringrequired
dimensionstringrequired
periodstring
warning_perc_twostring
warning_perc_onestring
alert_channelsArray of strings
filtersArray of objects(github.com-mailgun-thresholds-internal-model-checkers-CheckFilter)
Response
{ "created_at": "2026-02-01T10:30:00Z", "last_checked": "0001-01-01T00:00:00Z", "next_check": "0001-01-01T00:00:00Z", "updated_at": "2026-02-03T14:15:00Z", "parent_account_id": "12345", "id": "915ff385-0a9a-4087-86d5-6727ea7d9b49", "description": "Track limits for account 12345", "name": "Usage limits for 12345", "dimension": "subaccount", "warning_perc_two": "75", "warning_perc_one": "50", "alert_channels": [ "email", "webhook", "slack" ] }