Skip to content

Custom Message Limit

The custom message limit imposes a hard limit on how many messages your account can send during a calendar month.

Get current custom sending limit

Request

Fetch the details of custom sending limit on the account

Security
basicAuth
curl -i -X GET \
  -u '<username>:<password>' \
  https://api.mailgun.net/v5/accounts/limit/custom/monthly

Responses

A 200 response

Bodyapplication/json
limitnumber

The custom limit set for the account

currentnumber

The number of messages already sent

periodstring

The timeframe for which the limit applies - m for months, d for days, h for hours

Response
{ "limit": 10000, "current": 0, "period": "1m" }