Provide API to Manually Trigger Re-indexing of R2-Uploaded Documents in AutoRAG

What is the name of the modal you’re running?

AutoRag

What is the issue or error you’re encountering

When using Cloudflare AutoRAG with documents stored in R2, newly uploaded files don’t become searchable until the next automated indexing cycle (typically every 4 hours). We need an endpoint or mechanism to immediately re-index a specific document after upload, without waiting for the scheduled sync.

What steps have you taken to resolve the issue?

Reviewed AutoRAG and AI Gateway docs for a “reindex” endpoint.
Searched the Workers SDK and Cloudflare Dashboard UI for manual indexing controls.
Confirmed only a bulk “Re-index all” button is available via Dashboard, with no Worker-callable API.

What are the steps to reproduce the issue?

Upload a document via R2 API (e.g., using r2.put() in a Worker).

Verify the upload succeeded.

Attempt to query the document in AutoRAG (via search or Assistant API).

Observe that the document isn’t returned until after the next indexing cycle.

Hi there,

Either in your dashboard, browse to AI > AutoRAG > “click your rag” > press Sync index in the top right corner.

Related:

This is not my area of expertise, but pulling up the network tab, I can see the Sync index does an API call which is a patch that looks something like this:
https://dash.cloudflare.com/api/v4/accounts/YourAccountID/autorag/rags/YourRAG/full_scan

Replacing dash.cloudflare.com/api/v4 for api.cloudflare.com/client/v4 should give you the correct endpoint. Try running a patch here:
https://api.cloudflare.com/client/v4/accounts/YourAccountID/autorag/rags/YourRAG/full_scan

Take care.

Thanks for the response. Will this API still be limited between calls to 5 minutes? Is there any way to remove the limit for me?