Here’s Cloudflare’s article: https://support.cloudflare.com/hc/en-us/articles/360000841472-Adding-Multiple-Sites-to-Cloudflare-via-Automation
But when I try their exact copy/paste command this is what happens:
So I search for other ways and I found this thread: Adding multiple domains via the API but new error; Image attached in second message because of post limitations.
This time I am able to properly connect to Cloudflare’s API but an “invalid domain” error.
Still my domains are properly written in my txt file.
I even tried to write one domain directly in the terminal, instead of going through the domains.txt file, and I am still getting the “invalid domain” error. Image attached in third message because of post limitations.
But as you can see my domain is valid!
I do not know what to do.
If someone already passed these errors please share your solution.