How can I add Cloudfare DNS API to work with Cosmos OS?

I have my main domain on Cloudfare, and I want Cosmos OS to manage my DNS so when it created an URL it automatically add the DNS to Cloudfare. I already put my email and DNS EDIT API but no success.