Cloudflare API Key

Scoped Cloudflare control for AI agents that respect least privilege

Use Cloudflare API Tokens with granular permissions instead of a full-access Global Key. Your AI agent manages DNS records, configures rulesets, enables DNSSEC, and creates zone lockdown rules while accessing only what each token permits. Security-first infrastructure automation.

Chosen by 800+ global brands across industries

Granular security management through AI

From DNS edits to WAF rulesets and DNSSEC configuration, your agent handles Cloudflare security operations using scoped API tokens that limit access to exactly what is needed.

Cloudflare API Key

Use Cases

Token-scoped operations at work

Explore how teams use Cloudflare API Tokens with AI agents to perform precise infrastructure changes without exposing full account access.

Lockdown Admin Panels During Off-Hours

Your security policy requires the admin portal locked to office IPs outside business hours. Your AI Agent creates a Zone Lockdown rule scoping /admin/* to your corporate CIDR range, activates it at 6 PM, and pauses it at 9 AM. No engineer needs to toggle firewall settings manually, and the lockdown rule uses wildcard URL patterns to cover all admin subpaths.

Automated DNSSEC Rollout Across Zones

Compliance requires DNSSEC on every production domain. Your AI Agent iterates through each zone using the List Zones endpoint, enables DNSSEC with the Update DNSSEC Status action, and reports back which zones are now signed and which DS records still need registrar configuration. A multi-zone DNSSEC rollout completed in one conversation.

Ruleset Deployment for DDoS Protection

After a traffic anomaly, your team needs a custom WAF ruleset deployed to the http_request_firewall_custom phase. The agent creates the ruleset, adds rate-limiting rules with specific expressions, and confirms the new version is active. Your site is protected within minutes of the first alert, not hours.

Try
Cloudflare API Key

Cloudflare API Key

FAQs

Frequently Asked Questions

What is the difference between this integration and the standard Cloudflare integration?

The standard Cloudflare integration uses the Global API Key with your account email, granting full account access. This integration uses scoped API Tokens that you create with specific permissions per zone, account, or resource type. It follows the principle of least privilege, recommended by Cloudflare for production use.

How do I create a Cloudflare API Token with the right permissions?

In your Cloudflare dashboard, go to My Profile, then API Tokens, and click Create Token. Select the resources (specific zones or all zones) and permissions (DNS edit, Firewall edit, Zone read) the agent needs. Copy the generated token and paste it into the Tars tool configuration.

Can the agent manage rulesets at both account and zone level?

Yes. Every ruleset operation accepts an accounts_or_zones scope parameter. The agent creates, updates, or deletes rulesets at whichever level your token permits. Account-level rulesets apply across all zones, while zone-level rulesets target a single domain.

What happens if my API Token does not have permission for an action the agent tries?

Cloudflare returns a 403 Forbidden error, and the agent reports to the user that the token lacks the required permission. No partial changes occur. You can then update the token's permissions in your Cloudflare dashboard and retry the action.

Can the agent enable DNSSEC with multi-signer support?

Yes. The Update DNSSEC Status endpoint supports dnssec_multi_signer and dnssec_presigned flags. The agent can enable DNSSEC with multi-signer mode so multiple DNS providers can serve your signed zone simultaneously, useful for redundant DNS architectures.

Does Tars cache or persist my Cloudflare configurations?

No. Every query hits Cloudflare's API in real time. DNS records, ruleset versions, zone details, and lockdown rules are fetched live during conversations. Tars does not store a shadow copy of your infrastructure configuration.

Can I restrict the agent to read-only Cloudflare operations?

Absolutely. Create an API Token with only read permissions (Zone Read, DNS Read, Firewall Read). The agent will be able to list and inspect resources but cannot create, update, or delete anything. This is ideal for audit and reporting workflows.

How does Zone Lockdown differ from WAF custom rules?

Zone Lockdown restricts URL access to a whitelist of IPs or CIDR ranges, blocking all other traffic. WAF custom rules offer more complex matching using expressions, rate limits, and multiple action types. The agent can manage both, but lockdown rules are simpler for pure IP-based access control.

How to add Tools to your AI Agent

Supercharge your AI Agent with Tool Integrations

Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Real results, real customers, real stories

“We're saving an average of 4,000+ calls a month.”
Implementing an Agent revolutionized our customer service channels and our service to Indiana business owners. We're saving an average of 4,000+ calls a month and can now provide 24x7x365 customer service️ along with our business services.
Lindsey Roark Mayes
Ex-Director of SOS IT (State of Indiana)
“Cutting down on staff needing to email back.”
Since our launch of Tars Agents, we've had more than 5k interactions with them from individuals on the website. We saw prospects interacting with the Agent regarding application timelines, tuition, curriculum, and other items that may come through an email. This provides another avenue of access to our team while cutting down on staff needing to email back.
Levi Eastwood
Marketing Director of UCI Merage School
“Powerful tool - and there's so much more still to explore!”
I love the flexibility of the TARS chatbot design tool. The ability to drop in a new gambit and easily de-link and re-link gambits before and after it saves HOURS of time lost if I had to regenerate from scratch. TARS stands out for its flexibility, consistent performance, and outstanding support.
Aaron Rittmaster
Founder
“I like the product.”
Takes those boring forms and allows you to make the collecting of customer information enjoyable for the user. It has a lot of value and I see the company constantly working on improving it.
Pierre Rattini
Director of Marketing
“Very responsive and supportive Team”
I love how supportive and responsive the team members are. The chatbots are not difficult to build once you have an idea of what you are doing, and this is so based on the backend work Tars has completed. Also, they are flexible to the clients' requests.
Keisha Cameron
Product Manager
“Easy for cooperation and open to agreement.”
One of the biggest qualities of TARS is their ability to truly understand their clients' needs. They took the time to thoroughly assess our requirements, offering valuable insights and recommendations that we hadn't even considered. This level of personalized attention made a significant difference in the success of our project.
Milica Petrovic
Customer Care Project Associate
“Great service”
The guys at Tars are so passionate about bots and maximum engagement. Tars is overall a great product with really nice people there to help me engage and automate conversations I would have otherwise missed.
Nigel Gosling
Health Coach
“Best in class for lead generation”
TARS is an essential tool within our lead gen strategy. I started to use it a couple years ago, and the platform evolved to focus on results. You can integrate your Google Analytics, Facebook Pixel, and AdWords conversion tag to track results and measure your campaign. You can also integrate with Zapier, which opens a lot of possibilities. Compared with static landing pages, we have seen an increase in conversions and more engagement.
Leonardo Wolff
Founder
“Very professional and cooperative”
Building an automated chat that our customers actually used and reduced calls amount.
Maryam Alhaddad
Customer Journey Designer
“Flexibility and good service”
Tars platform is very flexible, so you can do pretty much any flux you desire. Also integrates with any third party through APIs with a very simple and easy-to-use interface. Also tars team is great! Always at disposal and brings suggestions and solutions for any issue encountered during the process of building the chatbot.
Lucas Von Lachmann
Process Manager
“Deserved The title of the Best Chatbot of the Year”
If you are building chatbots, you cannot go wrong with TARS. I have been with this company since their beginning. Seen how they have grown. I have tested a lot of bots, but this one is still the best out there. We use WhatsApp a lot for our business. And what I like best is that I can have 1 chatbot for website and for my WhatsApp. I especially appreciate their support team as well. Whenever I am stuck, they quickly reply to my questions.
MJ Felix
Chairman
“Advanced integration, easy to use, and very customizable.”
This chatbot does everything from AI integration to complete customization and is excellent for lead conversion in most industries. I think the pre-formatted templates are an excellent boost to get started quickly. The team is also excellent.
Rachel Rowling
Chief Operating Officer
“The chatbot implementation has exceeded expectations!”
The implementation has delivered 24/7 customer support and is proving its value by reducing Contact center calls by around 5% in just four months of operation. Beyond enhancing the e-care experience, the chatbot is driving impressive business results, achieving a remarkable 20% month-on-month growth.
Victor Pereira
Customer Care and CX Manager
“We're saving an average of 4,000+ calls a month.”
Implementing an Agent revolutionized our customer service channels and our service to Indiana business owners. We're saving an average of 4,000+ calls a month and can now provide 24x7x365 customer service️ along with our business services.
Lindsey Roark Mayes
Ex-Director of SOS IT (State of Indiana)
“Cutting down on staff needing to email back.”
Since our launch of Tars Agents, we've had more than 5k interactions with them from individuals on the website. We saw prospects interacting with the Agent regarding application timelines, tuition, curriculum, and other items that may come through an email. This provides another avenue of access to our team while cutting down on staff needing to email back.
Levi Eastwood
Marketing Director of UCI Merage School
“Powerful tool - and there's so much more still to explore!”
I love the flexibility of the TARS chatbot design tool. The ability to drop in a new gambit and easily de-link and re-link gambits before and after it saves HOURS of time lost if I had to regenerate from scratch. TARS stands out for its flexibility, consistent performance, and outstanding support.
Aaron Rittmaster
Founder
“I like the product.”
Takes those boring forms and allows you to make the collecting of customer information enjoyable for the user. It has a lot of value and I see the company constantly working on improving it.
Pierre Rattini
Director of Marketing
“Very responsive and supportive Team”
I love how supportive and responsive the team members are. The chatbots are not difficult to build once you have an idea of what you are doing, and this is so based on the backend work Tars has completed. Also, they are flexible to the clients' requests.
Keisha Cameron
Product Manager
“Easy for cooperation and open to agreement.”
One of the biggest qualities of TARS is their ability to truly understand their clients' needs. They took the time to thoroughly assess our requirements, offering valuable insights and recommendations that we hadn't even considered. This level of personalized attention made a significant difference in the success of our project.
Milica Petrovic
Customer Care Project Associate
“Great service”
The guys at Tars are so passionate about bots and maximum engagement. Tars is overall a great product with really nice people there to help me engage and automate conversations I would have otherwise missed.
Nigel Gosling
Health Coach
“Best in class for lead generation”
TARS is an essential tool within our lead gen strategy. I started to use it a couple years ago, and the platform evolved to focus on results. You can integrate your Google Analytics, Facebook Pixel, and AdWords conversion tag to track results and measure your campaign. You can also integrate with Zapier, which opens a lot of possibilities. Compared with static landing pages, we have seen an increase in conversions and more engagement.
Leonardo Wolff
Founder
“Very professional and cooperative”
Building an automated chat that our customers actually used and reduced calls amount.
Maryam Alhaddad
Customer Journey Designer
“Flexibility and good service”
Tars platform is very flexible, so you can do pretty much any flux you desire. Also integrates with any third party through APIs with a very simple and easy-to-use interface. Also tars team is great! Always at disposal and brings suggestions and solutions for any issue encountered during the process of building the chatbot.
Lucas Von Lachmann
Process Manager
“Deserved The title of the Best Chatbot of the Year”
If you are building chatbots, you cannot go wrong with TARS. I have been with this company since their beginning. Seen how they have grown. I have tested a lot of bots, but this one is still the best out there. We use WhatsApp a lot for our business. And what I like best is that I can have 1 chatbot for website and for my WhatsApp. I especially appreciate their support team as well. Whenever I am stuck, they quickly reply to my questions.
MJ Felix
Chairman
“Advanced integration, easy to use, and very customizable.”
This chatbot does everything from AI integration to complete customization and is excellent for lead conversion in most industries. I think the pre-formatted templates are an excellent boost to get started quickly. The team is also excellent.
Rachel Rowling
Chief Operating Officer
“The chatbot implementation has exceeded expectations!”
The implementation has delivered 24/7 customer support and is proving its value by reducing Contact center calls by around 5% in just four months of operation. Beyond enhancing the e-care experience, the chatbot is driving impressive business results, achieving a remarkable 20% month-on-month growth.
Victor Pereira
Customer Care and CX Manager

Privacy & Security

We’ll never let you lose sleep over privacy and security concerns

At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.

GDPR
ISO
SOC 2
HIPAA

Still scrolling? We both know you're interested.

Let's chat about AI Agents the old-fashioned way. Get a demo tailored to your requirements.

Schedule a Demo