Glossary
CAPTCHA token
A CAPTCHA token is the short-lived, signed string a widget produces after a successful check, which the website then verifies with the vendor.
Definition
A token is the receipt of a passed challenge. The widget in the browser talks to the vendor, the vendor decides the check is passed, and it returns an opaque string that encodes the result together with the site key, the domain and a timestamp. The browser cannot read or forge its contents; it can only hand it to the website, which asks the vendor whether the string is genuine.
Token based widgets include reCAPTCHA v2, reCAPTCHA v3, Cloudflare Turnstile and MTCaptcha. GeeTest returns a small set of values instead of one string, and challenge pages return cookies, but the idea is the same: proof first, then the real request.
Lifetime and single use
Tokens are deliberately short-lived. A reCAPTCHA token is accepted for roughly two minutes; a Turnstile token for about five. After that, verification replies with an error such as timeout-or-duplicate. The same error appears when a token is verified a second time, because vendors mark a token as spent the moment it is checked.
Two practical rules follow from this. Request a token only when the form is ready to submit, and never try to reuse one across several requests. If a flow posts twice (for example, a validation call and then the real submit), check which of the two the site actually verifies.
How a server verifies it
The website's backend sends the token and its secret key to the vendor's verification endpoint. The reply says whether the token is valid, which hostname it was issued for, when it was created, and, for score products, the score and the action. The site then applies its own rules: reject on failure, require a minimum score, or compare the action name with the one it expected.
POST https://www.google.com/recaptcha/api/siteverify
secret=SITE_SECRET&response=03AFcWeA6...&remoteip=203.0.113.7
{"success": true, "challenge_ts": "2026-03-14T09:26:53Z", "hostname": "example.com"}
The remoteip field is optional, and many sites leave it out. When it is present, some sites compare it with the address that submitted the form.
Getting a token from a solving API
With GateSolver, you create a token task with the page URL and site key, then poll until the status is ready. The token arrives in solution.gRecaptchaResponse for reCAPTCHA or solution.token for Turnstile and MTCaptcha. The solution usually includes a userAgent too; sending your form request with that value keeps the browser story consistent.
The clock starts when the solver gets the token, not when you read it. Poll every three seconds rather than every thirty, and submit as soon as the status flips.
Where it goes in your request
Each widget has a conventional field: g-recaptcha-response for reCAPTCHA, cf-turnstile-response for Turnstile, mtcaptcha-verifiedtoken for MTCaptcha. Sites built as single page apps may rename it or send it in a header. Capture one manual submission in the network tab and copy that request's shape exactly. Pay attention to the content type as well: a form post and a JSON body carry the same token in quite different ways, and the server will only look in one place.
When a valid token is still refused
A token can be genuine and still be turned down by the site's own logic: a v3 score under the threshold, an action name that does not match, or a callback that never ran so the form never sent the token. If the vendor reply would say success but the page still shows an error, look at those site-side rules before blaming the token itself.
Common questions
Can I decode a CAPTCHA token to see the result?
No. Tokens are opaque and signed; only the site, by calling the vendor with its secret key, learns what they contain.
What does timeout-or-duplicate mean?
The token was either older than its lifetime or already verified once. Request a fresh one for each submission.
Can I solve tokens in advance and store them?
Only for a very short window. A token solved minutes before use will usually have expired by the time the site checks it.
Are tokens tied to my IP address?
Usually not for reCAPTCHA and Turnstile tokens, though some sites compare IPs on their side. Clearance cookies are a different story and are IP bound.
Am I charged if the token expires before I use it?
Yes, because the task was solved and returned an answer. Only failed or unsolvable tasks are free, so request tokens just in time.
Keep reading
- How long does a CAPTCHA token stay valid?Token lifetimes are short and set by the vendor: about two minutes for reCAPTCHA, a few minutes for Turnstile.
- Can one CAPTCHA token be used twice?Token answers are single use by design; the vendor marks them spent at the first server check, so reuse fails.
- Why reCAPTCHA tokens expire and how to time themreCAPTCHA tokens last about two minutes and verify once; here is how to schedule solves so every token arrives fresh.
- g-recaptcha-responseThe hidden textarea that carries a reCAPTCHA token to the server, and how to fill it with a solved answer.