Skip to content

Get current custom sending limit

Request

Fetch the details of custom sending limit on the account

Security
basicAuth
Path
subaccount_idstringrequired

The ID of the subaccount

curl -i -X GET \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v5/accounts/subaccounts/{subaccount_id}/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" }