We have many domains responding in Cloudflare and we will continue to add more, therefore I am automating the process of adding a new zone.
I use this:
curl -X POST "https://api.cloudflare.com/client/v4/zones"
-H "X-Auth-Email: [email protected]"
-H "X-Auth-Key: GLOBAL_API_KEY"
-H "Content-Type: application/json"
-data '{"name":"DOMAIN.ORG","account":{"id": "USER_ID"},"jump_start":true,"type":"partial"}'
For testing reasons I do not want to generate expenses by adding new domains, I need to know how I indicate the free plan within the data using curl to be able to continue with the tests.