Set Plan with Curl and getting TXT verification code with API

Hello everyone, i am new using the API, I have read the documentation, not completely, only the parts that interest me (add new domain, convert to CNAME configuration).

I need help with two questions.
The first question is, how do I indicate the type of plan that a domain will use?

I read the following Cloudflare API v4 Documentation publication to get an idea of how to add a new domain (new dns zone)

In the example indicates that it is added as follows:

curl -X POST "https://api.cloudflare.com/client/v4/zones" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json" \
     --data '{"name":"example.com","account":{"id":"01a7362d577a6c3019a474fd6f485823"},"jump_start":true,"type":"full"}'

We always use the business plan in all the domains we add, we have more than 10 domains added, but this time to assemble a shell script I need to use the free plan, but not as indicated when running the curl, any help with this?

And the second question is the following, we use the CNAME configuration, as I get through the API the TXT verification code?

Regards

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.