I believe they offer both API and IMAP access to emails. However, even as an admin of the 365 subscription, it is quite challenging to activate IMAP. I hope API is easier to setup.