Protect browser-facing API endpoints

An export button may call a separate API that starts a background job. Apply the policy to the endpoint that starts the work, and check the application queue to verify which submissions it accepted.

A narrow glass bridge carries a paper strip between an indigo mechanism and an orange gate.
POST /api/exportsThe API endpoint that starts an export job

Duplicate export jobs

Session evidence

If several exports start during one visit, compare the request sequence in the browser journal with the job queue. The queue records which submissions actually started work.

Oraami AI assessment

For an eligible session, Oraami AI can assess the rules that matched its behavior. Inspect the saved case alongside the job records to investigate repeated submissions.

How automatic case decisions work

Policy response

With a submission limit on the export endpoint, an over-limit call receives HTTP 429 before another job starts. Compare its receipt with the queue log for that window.

Setup requirements

Connect the browser tracker to collect session evidence under your site’s capture settings. A workspace owner can enable automatic case decisions for the site. To apply a route policy, connect a Cloudflare Worker or Node middleware and enable the policy on the relevant route.

How to set it up

  1. Select a route and response

    For repeated submissions, choose a method, path, allowance and window. To deny a bulk export to a session that meets your detection threshold, select Restrict bulk access.

  2. Enforce before queuing work

    Install the Worker or middleware before the operation, or wrap the selected Next.js App Router HTTP export on the Node runtime. Leave your API keys, service quotas and authorization checks in place for machine clients.

  3. Handle the response in your client

    A bulk denial returns 403. A request above its submission allowance returns 429 with Retry-After. Surface that result before starting another job.

Verify the result

Check that the expected request reaches your job queue and the denied one produces a receipt. Test clients without a linked browser session against your own API controls.