How to access call detail records via asterisk rest api?

I have the call detail records stored on my local server. I have been looking at the documentation online for asterisk, but I can’t find anything on how to access the data from my web app (hosted on the cloud) using their rest api. Anyone got it working? Any tips?

What about the Asterisk Manager Interface? Can I not use that one?wiki.asterisk.org/wiki/pages/viewpage.action?pageId=4817239

Why dont you save the CDR in MYSQL and access remote through PHP