Cloudflare tools
The 8 Cloudflare operations your product runs on your customer's account through Connect. All of them use the same endpoint, POST /api/tools/{tool}/execute.
- List zonesGETLists the zones (domains) the token reaches, with id, name, status, name_servers, plan and account. The id is the zone_id the other tools take. Paginate with page and per_page; result_info.total_pages tells how many pages there are.
- Create zonePOSTAdds a domain to a Cloudflare account and returns the zone in pending status, with the name_servers to set at the domain registrar. The zone becomes active once the registrar points to them.
- Update zonePATCHPauses or resumes Cloudflare on a zone and returns it. With paused true the zone keeps only the DNS, without the security and performance features of Cloudflare.
- List DNS recordsGETLists the DNS records of a zone, with id, type, name, content, proxied, ttl and comment. Filters work together unless match is any. Paginate with page and per_page; result_info.total_pages tells how many pages there are.
- Create DNS recordPOSTCreates a DNS record in a zone and returns it, with its id. A and AAAA records cannot share a name with a CNAME, and an NS record cannot share a name with any other record.
- Update DNS recordPATCHChanges a DNS record and returns it. Only the fields sent change. A and AAAA records cannot share a name with a CNAME, and an NS record cannot share a name with any other record.
- Delete DNS recordDELETEDeletes a DNS record of a zone and returns its id. The change reaches DNS answers right away and cannot be undone.
- Purge cachePOSTRemoves cached content of a zone from every Cloudflare data center; the next request for it goes to the origin. Send exactly one of files, tags, hosts, prefixes or purge_everything. A success means the request was accepted, not that anything was cached. How many items fit in one call depends on the plan.
Toolkits in the same category
See all 100 toolkitsSee Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
