Why a CAPTCHA is a bad fit for APIs
Challenges assume a browser and a human. API and server-to-server traffic has neither — which is why request-level scoring, not a puzzle, is the right tool.
Client integrity
Does the environment look intact, or automated?
Behaviour
Do timing and movement look like a person?
Agent-tell
What markers does the interaction leave?
Network
How did the request arrive?
Disclosure
Did the automation identify itself?
Consistency
Do the signals agree with each other?
A CAPTCHA solves one problem well: proving that a human is present at an interactive form. Every assumption behind it — a rendered page, a mouse, a person to solve a puzzle — breaks the moment the traffic is an API call.
What a challenge assumes
- There is a browser to render it.
- There is a human to solve it.
- The interaction can pause for the challenge without breaking the client.
An API has none of these. A challenge in front of an API either blocks every legitimate integration or gets solved once and replayed.
What to measure instead
Request-level evidence: how the request was made, not whether a person clicked a box. Header shape, network context, cookie round-trips, and signed disclosure can be scored without a page. The result is a graded assessment your server can act on, not a gate that machine clients cannot pass.
Trust tokens, not puzzles
When you do want to admit automation, a signed token is the machine-native equivalent of a solved challenge. A verified agent presents a signature your server checks; a verified client receives a trust token it can present. No puzzle, no browser.
The three controls, side by side
“Use a CAPTCHA” is not the only alternative to “do nothing”. The useful comparison is between the three controls a technical team actually reaches for:
| Control | What it needs | What it returns | Best surface |
|---|---|---|---|
| CAPTCHA / challenge | A browser, a human, and a pause long enough to solve it. | A pass/fail token. | A public form with a person at the keyboard. |
| Request-level score | The request your edge already sees. | A graded score, a verdict, and the evidence. | APIs, server-to-server calls, and non-interactive flows. |
| Signed token / Web Bot Auth | A key pair and a verification step. | A verified identity or an explicit authorization. | Known agents and trusted integrations. |
The failure mode is matching the control to the wrong row. A challenge in front of an API blocks the integrations you want and gets replayed by the ones you do not. A score on a public form is useful, but it is not a substitute for a consent gate or a rate limit. A token is excellent for a known partner and useless for an anonymous scraper.
What request-level scoring sees
The request carries more than a URL. A server-side integration can describe the visitor's request to the scorer with requestSignals, even though the scoring call itself comes from your backend:
{
"visitorIp": "203.0.113.9",
"headerOrder": ["host", "connection", "user-agent", "accept"],
"proxyHeaders": ["x-forwarded-for"],
"cookiePresent": true,
"visitorUserAgent": "Mozilla/5.0 ...",
"acceptLanguage": "en-US,en;q=0.9"
}
Every field is optional and bounded. Omit the object and the request-side checks simply do not run; the result is honest about what it saw rather than inventing a browser. The API reference lists the accepted fields and their limits.
A worked API flow
- The client calls your API. It presents an API key, a bearer token, or nothing at all.
- Your edge builds the evidence. It records the visitor IP, header order, proxy headers, cookie round-trip, and any signed disclosure.
- Your backend scores the request. It calls the scoring endpoint with the secret key and the evidence.
- Your policy decides. Allow, flag, or block — or apply a stricter rate limit to the flagged middle.
There is no puzzle in that flow and no page to render. The client never has to solve anything; it only has to make a request. That is the property that makes request-level scoring fit machine traffic.
The limitation
A request-level score is still an estimate. It can tell you that a request looks scripted, that it arrived through a relay, or that a signed agent is present; it cannot tell you whether the caller is a customer's batch job or a scraper with the same shape. Keep authentication and rate limits, and use the score as an additional input to the decision rather than a replacement for them. A challenge also adds friction to every legitimate user on the page, which is a cost the score does not impose. A challenge is a conversion cost: every legitimate user pays it, while an attacker pays it once. The right question is not which control is strongest, but which one the caller can actually satisfy.
A decision rule
A simple rule covers most surfaces:
- Browser + human present: a challenge is reasonable, especially on a public form.
- Machine-to-machine: score the request; there is no one to solve a puzzle.
- Known agent: verify a signature and admit or price it by policy.
- Anonymous and high-volume: rate limit, score, and route the middle to review.
One more test: can the client complete the control without a human? If yes, the control is a speed bump, not a gate. A CAPTCHA is solved once and replayed; a signature is checked on every request. That difference is why a challenge belongs on the human surface and a score belongs on the machine one.
When a challenge still fits
For a public web form with a human at the keyboard, a challenge can still be a reasonable belt-and-braces control. The mistake is reaching for it for traffic that was never going to solve one. If the form is low-risk and the abuse is rare, a rate limit and a score may be enough; the challenge is a last resort, not a default. Match the control to the surface: puzzles for people, scoring and signatures for machines.
Frequently asked
Can Volance protect an API without a challenge?
Yes. A server-only integration scores request-level evidence, so API traffic is assessed without a browser or a puzzle. Enforcement stays on your server.
Should I remove my existing CAPTCHA?
Not necessarily. Keep it where a human is present and it adds value, and use scoring where it does not — APIs, server-to-server calls, and non-interactive flows.