
Connectors / Developer tools · HTTP Connector
Automate Cloudflare with Tray.ai
Create a zone, create a DNS record and upload a Worker module in Cloudflare. Connect Cloudflare to the rest of your developer tools stack with Tray.ai.
What can you do with Cloudflare on Tray.ai?
Cloudflare is a global network for websites and apps, providing DNS, content delivery, caching, DDoS protection, a web application firewall, and serverless Workers. Tray.ai connects to Cloudflare through the HTTP Connector, so your workflows can call the Cloudflare API alongside the rest of your stack.
- Purge cached content in Cloudflare after a new release of your website is deployed.
- Create a DNS record in Cloudflare when a new customer subdomain is approved by your ops team.
- Export DNS records from Cloudflare each week and keep a backup in your cloud storage.
- Delete a DNS record in Cloudflare when a service is retired in your IT asset register.
- Connects through
- HTTP Connector
- Authentication
- A bearer token
- Base URL
- https://api.cloudflare.com/client/v4
Set it up
Connect Cloudflare to Tray.ai
Each step uses Cloudflare's own API details, from its documentation.
Step 1
Save Cloudflare's API token
Save the token Cloudflare issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.cloudflare.com/client/v4 as the base URL. Or paste a cURL example from Cloudflare's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “List zones”
It's one of 18 documented actions, under Zones. The response comes back as data the next step can map into your other apps.
Step 4
Hand it to an AI agent
Wrap “Get zone details” and “Create a zone” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Workflows to build with Cloudflare
Each one uses actions and events from Cloudflare's own API documentation.
Purge Cloudflare cache when a GitHub release is published
When
A release is published in GitHub
Then
- Purge cached content
- Post the purge to the web team channel in Slack
Create Cloudflare DNS records from approved ServiceNow requests
When
A DNS change request is approved in ServiceNow
Then
- Create a DNS record
- Close the request in ServiceNow
With ServiceNow
Back up Cloudflare DNS records to GitHub each week
When
On a schedule
Then
- Export DNS records
- Commit the export to a repository in GitHub
With GitHub
Apps you can build on Cloudflare data
Internal tools your team can build with an AI assistant, each one using Cloudflare calls from its API documentation.
DNS record inventory
Lists every zone and its DNS records and lets IT export them for audit.
DNS record editor
Lists DNS records for a zone and lets engineers add a new record or update an existing one.
Cache purge tool
Lists zones and lets the web team purge cached content after a release.
Give your AI agents Cloudflare tools
Build an MCP server on Cloudflare in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List zones
- List DNS records
- Purge cached content
- List Worker scripts
- Get zone details
- Create a zone
- Edit a zone
- Delete a zone
What the Cloudflare API covers
4 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Zones
- List zones
- Get zone details
- Create a zone
- Edit a zone
- Delete a zone
DNS records
- List DNS records
- Create a DNS record
- Update a DNS record
- Delete a DNS record
- Import DNS records
- Export DNS records
Cache
- Purge cached content
- Get Cache Reserve setting
- Change Cache Reserve setting
Worker scripts
- List Worker scripts
- Download a Worker script
- Upload a Worker module
- Delete a Worker
Checked against Cloudflare's own documentation on 2026-10-22
How Tray.ai makes this work
Cloudflare plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in Cloudflare — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Cloudflare actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Cloudflare data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More developer tools apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every developer tools connector →
Frequently asked questions
What can a Tray.ai workflow do in Cloudflare?
+
The Cloudflare API documents 18 actions across 4 resources (Zones, DNS records, Cache, Worker scripts). For example: List zones; List DNS records; Purge cached content. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Cloudflare?
+
The Cloudflare API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
See Cloudflare working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.