Skip to content
Akedly
COMING SOON

Cluster Gate AI Protection

SMS pumping and bot sign-up floods make your verification flow send codes nobody will ever enter, and you pay for every one. Cluster Gate AI Protection is an AI-powered layer on Headless and the Gateway hosted gateway screen that watches your verification traffic and is designed to stop coordinated attacks before they run up your bill. It is designed so your real users keep getting their codes.

What it does

  • Stops wasted sends. Attack requests are refused before any code is sent or billed.
  • Built for real traffic. It is designed so a busy day is not treated as an attack, and your own whitelisted numbers and test sends are never refused.
  • Judges each request during an attack. Cluster Gate compares each code request with the recent traffic on its integration. When that pattern looks like an attack, the AI judges each request on its own and refuses the ones that belong to the attack. Refusals are rare outside an attack.
  • You stay in control. It is on for every integration by default. Switch it off per integration, or choose how cautious it is (see Choose how strict it is).
  • Safe by design. If the AI check cannot answer in time, the request goes through as it does today.
  • Works with your Gateway integration as it is. A refused request returns the standard 429 rate-limit response, so apps that already handle rate limits need no change. Headless needs two inputs from your backend, set out under What you need to do.

What you need to do

On Headless, send these two things from your backend. Cluster Gate relies on both:

  • The end user's IP on every send. Every POST /api/v1.2/transactions/send must carry the real end user's public IP in the x-end-user-ip request header, as it reached your backend: not your server's, load balancer's or proxy's IP, and never read on the user's device. It is a header, not a body field. The Headless API reference shows extraction patterns for Node/Express, Next.js, Flask and PHP.
  • Every code to the verify call. Send every code your user enters to POST /api/v1.2/transactions/verify when they submit it, right or wrong, and even if your server also checks the code. That includes the case where you pass your own code in the otp field of POST /api/v1.2/transactions/send: your own check does not replace this call. A passkey sign-in has no code to submit. The Headless verify reference shows the request and the responses.

Gateway integrations need nothing for either input: Akedly resolves the IP itself, and the gateway screen runs the verification itself.

Choose how strict it is

Open your integration from Integrations(opens the dashboard in a new tab), then its Security tab, and find the Cluster Gate card. Use Cluster Gate switches it on or off; the position is its Strength. The figures are estimates for traffic during an attack.

PositionSpam blockedReal users refused
Cautiousabout 65%0%
Balanced (default)about 90%about 1%
Assertive95% or moreabout 3%

Assertive is outside the recommended limits. It does not check whether a request is a real user caught in the same flood, so it can refuse some real users during an attack.

  • Stricter after an attack (Refuse more requests for 15 minutes after the last attack) is optional and off by default. When Cluster Gate detects an attack, it opens a stricter window that lasts 15 minutes after the last detection. While it is open, Cluster Gate can refuse every request to the integration, or only requests to unusual destinations when the attack targets numbers outside your usual countries.
  • Home countries tell the AI which phone destinations and end-user IP countries to expect. Where Cluster Gate is available, set them when you create the integration, on the Channels step of New integration, where they are filled in from your countries on Billing → Rates(opens the dashboard in a new tab); change them later with Edit beside Home countries in the Cluster Gate card. Akedly also learns countries from your past traffic. They only guide the AI: they never restrict where you can send, and they do not allow or block IP addresses.

A new integration starts in a learning period. Until Cluster Gate has seen enough verified codes over enough days, it refuses a code request only when none of the requests the integration received in the past hour were verified.

What a refusal looks like

A refused request returns 429 with the code RATE_LIMIT_PIPELINE_ABUSE and a 60-second cooldown. No code is sent, no transaction is created and nothing is billed. The Headless error reference describes the response body and how to retry. In the gateway screen, your user sees "Too many requests. Please wait a moment." with a countdown.

Where it applies

Headless and the Gateway hosted gateway screen. V1.0, the registration gateway screen and passkey flows are not covered.