API call to see account/domain limits



Does anyone know correct way to check account/domain limits using ACME call? I’m running into rate limit issues like “Too many certificates already issued for: vestacp.com” and thinking how to handle errors like that and automatically postpone certificate signing.


I don’t think something like this currently exists, but I definitely agree that this would be useful.

The way some other APIs with rate limits solve this is by sending the current rate limit information in response headers. Here’s what GitHub does, for example:

X-RateLimit-Limit: 60
X-RateLimit-Remaining: 56
X-RateLimit-Reset: 1372700873

This would probably work for ACME too. Might be worth discussing on the ACME WG list.