API endpoint to wait for the mail queue to drain?

I’m not sure what you’re asking? Is there something ambiguous about the problem expressed above?