Cloudflare’s New Search Endpoint Gives AI Agents a Shortcut Into Your Docs

Cloudflare’s New Search Endpoint Gives AI Agents a Shortcut Into Your Docs

●14 ●61
calendar_today ago • schedule6 min read

By Mahan Kenway

Cover: Original conceptual illustration created for this article.

An AI coding agent trying to answer a question about your documentation often has to discover pages, open them one by one, and hope it finds the relevant passage. Cloudflare’s new Search for Agents offers a different route: give the agent a discoverable endpoint that searches an index of your site and returns relevant content as Markdown.

Announced on November 25, the feature is in beta and available on all Cloudflare plans. It uses Cloudflare AI Search to crawl and index a site, then publishes a search interface under the site’s own domain. The practical appeal is straightforward: site owners get a ready-made retrieval endpoint; agent builders get useful source material without building a crawler for every site.

But this is an opt-in service with costs, indexing limits, and security implications. It also doesn’t mean every agent will use the endpoint, or that the results will always be fresh or correct.

Search results, not another chatbot

After a site owner enables the feature, Cloudflare creates an AI Search instance, crawls and indexes the site, and exposes an endpoint like:

https://example.com/.well-known/search

Cloudflare advertises the endpoint through metadata added to HTML pages. If the separate Markdown for Agents feature is also enabled, the discovery information appears in the Markdown response’s YAML front matter. Markdown for Agents converts an individual page on request; Search for Agents searches an index across the site. They complement each other, but neither requires the other.

The endpoint returns retrieved passages, source references and relevance scores in Markdown. It does not generate the answer. An agent can feed those results to its own model, cite the underlying sources where possible, and decide whether it needs to inspect the original page. Cloudflare’s setup guide describes the response and request formats.

That distinction matters: a search score is a ranking signal, not a guarantee that a passage is accurate, current, or sufficient to answer a question. The passages may also be chunks rather than complete pages, so details outside a chunk can still be important.

Try it against a real site

Cloudflare has enabled the feature on its own developer documentation. You can try a normal GET request without setting anything up:

curl --get 'https://developers.cloudflare.com/.well-known/search' \
  --data-urlencode 'q=verify webhook signatures'

In a test for this article, that request returned HTTP 200 and Markdown results, including references to documentation chunks about webhook signatures. Your results can change as the index and ranking change. The result references can be document paths rather than immediately usable public URLs, so an application that needs clickable citations should verify how it maps results back to source pages.

For your own site, replace the host with a domain where Search for Agents has actually been enabled. /.well-known/search is Cloudflare’s advertised endpoint here, not a promise that every site or every AI agent implements the same convention.

GET or QUERY?

The endpoint also accepts the HTTP QUERY method with the search terms in a request body. For example:

curl -X QUERY 'https://developers.cloudflare.com/.well-known/search' \
  -H 'Content-Type: application/json' \
  --data '{"q":"How do I verify webhook signatures?"}'

A text/plain body is supported too. RFC 10008, published in June 2026, defines QUERY as a safe, idempotent HTTP method: the client requests a query rather than a change to the target resource. It puts the query in the body instead of the URL, which can help with larger inputs. URLs are more likely to appear in logs or bookmarks, but putting text in a body is not a privacy guarantee; servers and intermediaries can log bodies too.

GET is the more familiar choice for basic compatibility. QUERY is newer, so test your HTTP client, proxies and security rules before relying on it. Don’t assume a server that supports GET also accepts QUERY, and don’t substitute POST unless that particular endpoint documents it.

Switching it on

To use Search for Agents, the domain must already be onboarded to the same Cloudflare account. The documented workflow is:

  1. Open the domain’s Overview page in the Cloudflare dashboard.
  2. Under Quick Actions, enable Search for Agents.
  3. Review the default configuration and pricing notice, confirm, and wait for crawling and indexing to complete.
  4. Open the created instance from the domain page or AI Search, inspect its items and settings, and test a few real queries against your domain.

The feature creates an instance named search-for-agents-<ZONE_ID>. Some configuration can be changed later, while the embedding model and data source are fixed at creation, according to the setup guide.

The defaults are worth checking instead of assuming the entire website will immediately be searchable. Search for Agents uses Discover crawling, following sitemaps and links, with a default depth of five link hops and subdomains disabled. Its configured per-crawl page limit is 100,000, but other plan limits still apply: Cloudflare’s current limits list a maximum of 500 website pages crawled per day on Workers Free. Large sites should plan for that difference.

Retrieval defaults to hybrid keyword and vector search, up to 10 chunks, a 0.4 match threshold, and no reranking. These settings shape what the agent sees; they are not quality benchmarks. Test questions that matter to your readers, including exact error codes, API names, and queries that should return no useful result.

Freshness, cost and access are separate questions

The default crawl cache age and sync interval are each 24 hours, while the similarity cache is enabled for 48 hours. These are different mechanisms: source recrawling, index synchronization and cached search results each affect what a caller may see. They are not a simple promise that a change will appear within one day, or that content is always two days old. For frequently changing documentation, experiment with the cache settings and check results after edits.

Availability on the Free plan also doesn’t mean unlimited use. Cloudflare’s pricing page says AI Search billing begins December 1, 2026, with monthly included allowances for ingestion, storage and queries, followed by usage-based rates where applicable. Check the current plan limits and billing terms before enabling it on a large or busy site, especially because indexing and repeated queries both consume resources.

Most importantly, Cloudflare says to index only content you intend to make publicly searchable. A crawl exclusion rule is not a substitute for authentication, and content not linked from your homepage isn’t necessarily private. Review what the crawler can reach and use include and exclude path filters to narrow the index. Those patterns match full URLs, so test them rather than assuming a path-only pattern will work. Keep confidential material behind proper access controls and do not add authenticated sources to a public search index without understanding the exposure.

Requests to the endpoint remain subject to the site’s AI Crawl Control and WAF settings. Separately, the crawler itself can be blocked by bot protection, which can leave the index incomplete; Cloudflare documents how to allow its crawler when needed. Allowlisting should be narrow and deliberate, not a blanket bypass of your security rules.

A useful building block, not a trust boundary

For site owners, the interesting change is the packaging: a hosted index, a predictable endpoint and discoverability metadata are brought together behind one toggle. Cloudflare reports that agents used its own documentation endpoint in testing, but that is not evidence that all agents will discover it or that it will improve every answer.

For agent builders, treat retrieved text as untrusted data, not instructions to obey. A documentation page can contain misleading content or prompt-injection attempts, and a plausible-looking result can still be stale. Keep the agent’s permissions separate from retrieved material, verify important claims against their sources, and require appropriate authorization before taking actions.

The best way to judge the beta is to try a small public documentation set, inspect the actual results and costs, and only then decide whether the convenience is worth adding to your production workflow.

Want more #ai & #web-development deep dives?

Join 6,072+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

How AI Is Changing Web Development, and What Developers Still Need to Understand

Daniel Decker - Nov 10

Your AI Doesn't Just Write Tests. It Runs Them Too.

Kevin Martinez - May 12

What Security Teams Want From AI Agents Before They Let Them Act Alone

Tom Smithverified - Nov 18

Dozens of email accounts: learning AI coding tools as a student

rahuldk1105 - Oct 27

Cloudflare Blocked My Server, So I Made My Visitors' Browsers Do the Fetching

bryanhamiltondevverified - Nov 15
chevron_left
1.9k Points • 75 Badges
46Posts
0Comments
4Connections
I'm a Developer and an avid Gamer. I love exploring the intersection of Artificial Intelligence, Cyb... Show more

Related Jobs

View all jobs →

Commenters (This Week)

4 comments
3 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!