Throttle your customer when you need them to send only a specific amount of emails at a specified interval.

Retrieve

Retrieve account limits for a specific customer. If the API call response is empty that means the customer has the limits removed.

URI Parameter Required Requirements Description
task Yes Must be set to retrieve Retrieve account limits
user Yes Customer must be registered under your account The customer who will have their account limits retrieved
method Yes Must be set to limit Allows you to access limit functionality
Parameter Value Requirements Description

Call

POST https://api.sendgrid.com/apiv2/reseller.manage.json
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&method=limit&user=customer@example.com&task=retrieve

Response

1
2
3
4
5
{
  "credit": "40000",
  "credit_remain": "2000",
  "last_reset": "2011-02-21"
}

Call

POST https://api.sendgrid.com/apiv2/reseller.manage.xml
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&method=limit&user=customer@example.com&task=retrieve

Response

1
2
3
4
5
<credits>
   <credit>40000</credit>
   <credit_remain>2000</credit_remain>
   <last_reset>2011-02-21</last_reset>
</credits>