.boss is live / claim your leadership name today Search .boss
Back to blog
// POST 002 / 100

Cloudflare Registrar API vs. Headless Domains for AI Agents

September 11, 2026 /
Cloudflare Registrar API vs. Headless Domains for AI Agents

An AI coding agent can build an application and buy its domain without leaving the development workflow. Cloudflare's Registrar API makes that a documented use case.

Cloudflare Registrar API automates conventional domain purchases within a Cloudflare account. Headless Domains combines agent-name registration with self-provisioning, machine payments and public identity records. Both let software buy names. The surrounding workflow is where the comparison gets useful.

An agent with access to your company's Cloudflare account starts in a different place from one creating its first Headless Domains identity. That affects setup, billing and the handoff to its operator.

Cloudflare already takes agent-driven registration seriously

Cloudflare's Registrar API announcement describes agents searching for names, checking availability and buying domains from an editor or terminal.

Its setup guide requires a Cloudflare account ID, a token with Registrar write permission, a billing profile and registrant contact details, plus acceptance of its registration agreement. Once that setup is complete, an authorized agent can handle the supported registration workflow.

Cloudflare also provides MCP access to its API. Interactive connections use OAuth to select permissions; automation can use API tokens. An API or MCP interface is therefore common ground between the two services.

Check the name against the current Registrar API reference, including its extension-specific requirements. It supports standard registrations; a search result showing premium pricing is not permission to purchase that premium name through the API.

Compare the starting conditions

For a company already using Cloudflare, registering another website under its existing account can be straightforward. Billing, contact details and account access already have a home. The agent operates within that arrangement.

With Headless Domains, an agent can provision its own platform identity, receive an API key and obtain a claim code before a human signs into the dashboard. Buying a domain is a separate operation. The human can later use the claim code to associate the agent with their account.

Our authentication instructions describe that direct provisioning flow and its limits. It is not the full signed-assertion and OAuth token-exchange implementation of the auth.md proposal. The current API-key model also does not enforce credential-specific scopes.

Choose the starting sequence that fits your operation. An agent can begin before a dashboard login while still working within its operator's spending limits and approval rules.

Cloudflare's payment tools and Registrar billing are separate

Cloudflare's Agents SDK supports MPP and x402. Developers can use those integrations to charge for compatible services and let agents pay for resources.

Its Registrar registration endpoint charges the account's default payment method. The published Registrar checkout does not advertise an MPP or x402 purchase route. Those SDK payment integrations and the domain purchase are separate operations.

Our MPP flow supports domain registration and renewal. Tempo/pathUSD is the default MPP route; Base USDC is an explicitly selected alternative that requires checking runtime availability. Follow our agent payments guide for the applicable flow.

There is also a separate x402 v2 registration adapter at POST /api/v1/x402/domains/register. The API contract describes its Base USDC payment requirements, request-specific quotes and registration responses. Do not assume that this adapter and the MPP checkout use identical requests or recovery steps.

Choose according to the transaction your agent needs to complete. Our article on ICANN domains and machine payments covers why neither protocol requires a special domain extension.

Check the renewal plan before buying

Registration is only the first successful request. Someone needs to keep the name registered.

Cloudflare's creation schema defaults auto_renew to false. Its registration update endpoint lets software change that setting. Enabling it authorizes renewal charges to the account's default payment method. That is automated renewal, even though it is different from an agent submitting a fresh machine-payment purchase.

Our authenticated MPP renewal operation is POST /api/v1/renew. Your agent needs a renewal schedule, access to funds and a check that the registration was extended. The endpoint gives it a way to renew; your setup determines when it does so.

Both workflows also distinguish a pending operation from a completed registration. Cloudflare tells clients to poll the returned status URL after a 202 Accepted. Headless Domains publishes payment and registration recovery instructions for its respective routes. Check the existing operation before starting another purchase.

What callers receive after registration

A conventional Cloudflare-registered domain can serve a website or API through the usual DNS and browser infrastructure once configured. One practical constraint: Cloudflare Registrar requires Cloudflare nameservers. Its Registrar FAQ explains that using another authoritative DNS provider requires moving the registration, with subdomain delegation available for some arrangements.

Headless Domains supplies public identity records alongside the name. Our manifest documentation describes hosted JSON and Markdown records with TXT pointers. The records can describe the agent and link to the services its operator actually runs. They need accurate configuration and maintenance.

Clients can inspect those records through our HTTPS resolver API. They do not need to change their browser's DNS settings to make that API request. Direct DNS resolution of a Handshake name requires compatible resolution; registering a name does not make https://name.agent work in every browser. Our resolver guide explains the available paths.

A conventional domain can publish agent records too. You could maintain an identity at a stable URL on your own website. The case for Headless Domains is the combination of agent naming, registration, hosted records and discovery conventions that your team would otherwise assemble and maintain.

Our resolver provides read-only discovery. It does not run your agent or authorize the actions it describes. The agent identity graph guide explains how to connect public records to working services and supporting evidence.

Wallet payment does not settle the ownership question

Cloudflare registrations operate under its Domain Registration Agreement, applicable registry rules and ICANN policies. Automating a purchase leaves those obligations in place.

Handshake provides an alternative naming root. A name such as example.agent is registered beneath .agent; buying it through Headless Domains does not give the buyer control of the .agent namespace. Paying from a wallet and holding the underlying namespace directly are different arrangements.

Our terms include renewal requirements, acceptable-use rules and dispute provisions, including circumstances where domains can be suspended or transferred. Paying with a wallet does not remove those terms.

For either service, examine who can update the records, how access can be recovered and what happens when registration expires. A payment method alone cannot answer those questions.

Choose for the agent you already operate

If the task is to acquire a conventional website domain through your Cloudflare account, use Cloudflare's Registrar API where the name and operation are supported. Its agent tooling fits that job.

If the task is to give an existing agent a public name with managed identity records and machine-payment registration, evaluate Headless Domains. Check the available namespace, payment route and records your callers need.

You can also use both. For example, a support agent could run behind a company's Cloudflare-managed website while its headless domain identifies the support service and points to the same official API. This is an architecture you can configure, not a claim of a native integration or partnership.

Start with one service and one clear purpose for the name. Give your assistant our machine instructions and ask it to explain the available registration route, total price and records it would publish before making a purchase.

Get started with the Headless Domains machine instructions.