9

SendGrid documentation explicitly mentions rate limits on all resources here. The send api (https://api.sendgrid.com/v3/mail/send) doesn't seem to include any X-RateLimit headers in its response.

Does this mean that the send api is not rate limited?

Ethan Yang
  • 862
  • 9
  • 20
Anshuul Kai
  • 3,876
  • 2
  • 27
  • 48

2 Answers2

7

It seems so. The docs do no mention any specific endpoint when mentioning rate limits, see here

I made a request to https://api.sendgrid.com/v3/mail/send and got no X-Rate-Limit header, but a request to https://api.sendgrid.com/v3/scopes got me:

X-Ratelimit-Limit: 600 X-Ratelimit-Remaining: 599 X-Ratelimit-Reset: 1492362540

Also, most if not all libraries do not seem to take rate limit into account. If you write your own code maybe you should, the docs mention returning 429 HTTP status code when rate limit is reached. You should write your code in such a way that it waits for the X-Ratelimit-Reset before making another request.

2

There is no rate limit for the V2 and above mail/send endpoint.

The default for SendGrid V2 and above APIs is 600 request per minute, but some APIs are much lower.

Most of SendGrid's other APIs are now rate limited. They have added notes in the Using the V2 API article but they still do not reference specific rate limits in the API documentation.

Christine
  • 84
  • 6