Skip to content
Cloudflare logo

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.

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

developers.cloudflare.com/api

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.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.