Help with DNS records

Sorry in advance, I’m completely new to this. I’m trying to use Cloudflare to run my DDNS, and I accidentally deleted some of the DNS records, like the record for “www” and my root domain name. I’m pretty sure these were set up by default when I first verified the domain name in my dashboard. How do I get the correct records back?

Welcome to the Cloudflare Community.

You can see recent changes in the audit log of your account. I would start there. If that doesn’t have what you need you will have to consult with your web host.

Is there a way to add the JSON from the logs directly into the DNS Records UI?

No. This community #tutorial covers how to DNS records using the dashboard.

I’m getting a 522 error now after adding the records back to the dashboard.