Limit SMS verification requests

A resend button calls an endpoint that can incur a messaging charge. Apply a limit before dispatch, and let the browser explain how long it must wait before trying again.

An orange lever limits the passage of a paper block on a narrow track.
POST /verification/sendThe send or resend action before SMS dispatch

Repeated requests for a verification code

Session evidence

If a visitor requests several texts, compare the retry times in the browser timeline with your provider’s delivery log. A delayed first message can explain subsequent requests.

Oraami AI assessment

For an eligible case, Oraami AI can choose continued observation when the matched signals have a plausible ordinary explanation. Your provider’s records establish whether delivery was delayed.

How automatic case decisions work

Policy response

If you cap the send route, an over-limit request receives HTTP 429 and Retry-After before dispatch. A separate route for entering a code can stay available.

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. Protect the send endpoint

    Identify every route your application uses to send or resend a code. Configure limits for the actual method and paths, keeping code verification available.

  2. Honor the retry interval

    When your integration returns HTTP 429, read Retry-After and display the wait time beside the resend control. The denied request should end before a message is dispatched.

  3. Compare with delivery records

    Match blocked requests with your provider’s test delivery log. Your messaging service keeps control of destination, delivery and spend limits across visitors.

Verify the result

Use a test destination and the provider’s sandbox. Exercise a normal resend, the over-limit response and a retry after the window. Confirm that entering a code still works.