Extract all acounts and codes via API to feed to AI

Hello,

I could use your help in figuring out if it is at all possible to extract all the chart of accounts to feed to my ai otherwise it has no way of knowing which accounts to use to classify transactions.

Thanks a lot.