The /analytics/exports endpoint is a useful way to get certain information about inboxes, including the content of emails. However to use it for a given inbox the setting "analytics enabled" has to be turned on in for that inbox. This can be done by the user or and admin in the UI.
Currently, when requesting an analytics report about a list of inboxes (using the /analytics/exports endpoint) one gets a 400 error if any of the inboxes do not have analytics enabled. This makes it very hard to maintain any service that tries to regularly pull data from this endpoint, because it has to be sure that all the inboxes it is trying to get data for have the setting turned on. That means one has to maintain a list of inboxes somewhere that are known to have the setting enabled. If one tries to pull information for a whole department or company, any new employees might cause the service to break, unless it is manually ensured every time that the setting is turned on for everyone.
For this reason it would really help if the API provided a way to check if a given inbox has analytics enabled, or to get a list of inboxes with analytics enabled. This could be part of the response on the /inboxes endpoint or its own endpoint.
Alternatively the /analytics/exports endpoint could still deliver a report for any enabled inboxes, together with a warning, if some of the requested inboxes are not enabled.
Your idea is now live and open for voting.