This guide takes you from a page with a Cloudflare Turnstile widget to a submitted form: which values to collect from the page, what to send to createTask, where the returned token goes, and why a token that looks fine is sometimes rejected. A runnable Playwright flow and a Puppeteer alternative are embedded below; both are generated from the same source as the examples hub, so the payloads they send always match the public catalog.
What a Turnstile task needs
Turnstile is a widget a site embeds in its own page, usually next to a login, signup or checkout form. The page loads normally (HTTP 200) and the widget produces a token of up to 2048 characters that the form sends back to the site. If your first request returns 403 and a page that only says "Just a moment…", you are not looking at Turnstile; read Cloudflare Challenge vs Turnstile vs Waiting Room vs JSD first.
The task types are TurnstileTokenProxyLess and TurnstileToken. The full list is in the public catalog (GET /v1/task-types) and the API reference.
| Field | Required | What it is |
|---|---|---|
websiteURL |
yes | The page that renders the widget, with its path |
websiteKey |
yes | The sitekey; always starts with 0x |
action |
no | Copy it only if the widget declares one |
cData |
no | Copy it only if the widget declares one |
The result contains only token. userAgent is a required task input, not a result key. Send userAgent in the task and submit with the same value.
Find the sitekey, action and cData
Open the page in DevTools and look for the element that renders the widget. On most sites it is a div with the class cf-turnstile:
<div class="cf-turnstile"
data-sitekey="0x4AAAAAAAxxxxxxxxxxxxxx"
data-action="login"
data-cdata="session-8841"></div>
data-sitekey is the websiteKey, data-action is action and data-cdata is cData. Copy them exactly. If the attributes are not there, search the page source for turnstile.render: a page that renders the widget from JavaScript passes sitekey, action and cData in the options object of that call.

Cloudflare publishes test sitekeys, for example 1x00000000000000000000AA. They are useful for checking that your form wiring works. They prove nothing about solving a real site, so do not use one as your sitekey in production.
Read the values at render time
Some values only exist at runtime: cData can change on every page load, and a callback never appears in the markup. To capture them, wrap turnstile.render before the widget script runs. Wrapping render is a pattern, not a guarantee: if a page defines turnstile differently, adapt it.
let realTurnstile;
Object.defineProperty(window, 'turnstile', {
configurable: true,
get() {
return realTurnstile;
},
set(value) {
realTurnstile = value;
if (!value || typeof value.render !== 'function') return;
const render = value.render.bind(value);
value.render = (container, params) => {
window.__turnstileParams = {
sitekey: params.sitekey,
action: params.action,
cData: params.cData,
};
window.__turnstileCallback = params.callback;
console.log('turnstile.render', window.__turnstileParams);
return render(container, params);
};
},
});
In Playwright, register it with page.addInitScript before page.goto. Read the logged values immediately before you create the task, because they can change on the next render. The saved callback is what you call in the last step.
Request the token
Send the values you collected to createTask, then poll getTaskResult every 3 seconds until status is ready. processing means keep waiting. The API answers HTTP 200 for every error it reports itself, with errorId: 1; an unexpected fault is an HTTP 500 without errorId, so branch on errorId and stop polling at the first failure.
{
"clientKey": "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task": {
"type": "TurnstileTokenProxyLess",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36",
"websiteURL": "https://example.com/login",
"websiteKey": "0x4AAAAAAAxxxxxxxxxxxxxx",
"action": "login"
}
}
The deadline is your choice; the API documents the 3-second interval, not a ceiling. A task is charged when createTask accepts it, and a task that finishes as failed, including server-side expiry, automatically returns its original charge once, so avoid wrapping this call in a blind retry loop.
Run it with Playwright
The script below is the whole flow. It needs Node.js with Playwright, and its four settings are constants at the top of the file: CLIENT_KEY, TARGET_URL (the page with the widget), SUBMIT_SELECTOR (the control that submits the form) and SUCCESS_SELECTOR (something that appears only after the site accepts the result). SITE_KEY, ACTION and CDATA are optional overrides: the script reads them off the page itself unless you provide them, including values a turnstile.render call supplies.
// turnstile-playwright.js - solve Turnstile on the live page and submit the form with the
// token.
// Install: npm install playwright && npx playwright install chromium
// Run: node turnstile-playwright.js
const { chromium } = require('playwright');
const { setTimeout: sleep } = require('node:timers/promises');
// Your SurSolver API key.
const CLIENT_KEY = 'sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// The page that renders the widget, with its path and query string.
const TARGET_URL = 'https://example.com/page';
// Optional, read from the page when empty: data-sitekey on the .cf-turnstile element, or the
// sitekey of turnstile.render().
const SITE_KEY = '';
// Optional, read from the page when empty: data-action on the same element; leave unset when it
// has none.
const ACTION = '';
// Optional, read from the page when empty: data-cdata on the same element; leave unset when it
// has none.
const CDATA = '';
// The User-Agent the solve runs with; send the result with this same user agent.
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
// The control that submits the form.
const SUBMIT_SELECTOR = '.PASTE_SUBMIT_SELECTOR';
// A selector that matches only after the site accepted the result.
const SUCCESS_SELECTOR = '.PASTE_ACCEPTED_SELECTOR';
const API = 'https://api.sursolver.com';
const POLL_ATTEMPTS = 60;
// API errors are HTTP 200 with errorId 1; anything else is a transport failure.
async function call(path, body) {
const res = await fetch(`${API}${path}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
if (data.errorId !== 0) throw new Error(`${data.errorCode}: ${data.errorDescription}`);
return data;
}
async function solve(task) {
const created = await call('/createTask', { clientKey: CLIENT_KEY, task });
for (let attempt = 0; attempt < POLL_ATTEMPTS; attempt += 1) {
const result = await call('/getTaskResult', {
clientKey: CLIENT_KEY,
taskId: created.taskId,
});
if (result.status === 'ready') return result.solution;
await sleep(3000);
}
throw new Error(`task ${created.taskId} was not ready in ${POLL_ATTEMPTS} polls`);
}
// Optional task fields are sent only when they have a value.
function withoutEmpty(fields) {
return Object.fromEntries(
Object.entries(fields).filter(([, value]) => value !== undefined && value !== ''),
);
}
// A value the page did not show must be pasted into its constant at the top.
function need(name, value) {
if (value === undefined || value === null || value === '') {
throw new Error(`Could not read ${name} from the page; fill in the ${name} constant.`);
}
return value;
}
// Opens the page once and reads what the solve needs from it.
async function readPage(browser) {
const page = await browser.newPage({ userAgent: USER_AGENT });
try {
await page.goto(TARGET_URL, {
waitUntil: 'domcontentloaded',
timeout: 45000,
});
// The widget is often added after the page loads; give it a moment to appear.
await page
.waitForFunction(
() =>
!!document.querySelector('.cf-turnstile[data-sitekey]')?.dataset.sitekey,
undefined,
{ timeout: 10000 },
)
.catch(() => undefined);
const dom = await page.evaluate(() => ({
websiteKey: document.querySelector('.cf-turnstile[data-sitekey]')?.dataset.sitekey,
action: document.querySelector('.cf-turnstile')?.dataset.action,
cData: document.querySelector('.cf-turnstile')?.dataset.cdata,
}));
return {
pageUrl: page.url(),
...dom,
};
} finally {
await page.close();
}
}
async function main() {
const browser = await chromium.launch();
try {
const found = await readPage(browser);
const solution = await solve({
type: 'TurnstileTokenProxyLess',
websiteURL: found.pageUrl,
websiteKey: need('websiteKey', SITE_KEY || found.websiteKey),
userAgent: USER_AGENT,
...withoutEmpty({
action: ACTION || found.action,
cData: CDATA || found.cData,
}),
});
// Submit from a fresh session with the user agent the solve ran with.
const context = await browser.newContext({ userAgent: USER_AGENT });
const page = await context.newPage();
await page.goto(found.pageUrl);
const applied = await page.evaluate(
({ token }) => {
let filled = false;
for (const name of ['cf-turnstile-response', 'g-recaptcha-response']) {
for (const field of document.querySelectorAll(`[name="${name}"]`)) {
field.value = token;
filled = true;
}
}
const callback = document.querySelector('.cf-turnstile')?.dataset.callback;
if (callback && typeof window[callback] === 'function') {
window[callback](token);
filled = true;
}
return filled;
},
{ token: solution.token },
);
if (!applied) {
throw new Error('The page has no token field or callback; check how it passes the token.');
}
await page.click(SUBMIT_SELECTOR);
await page.locator(SUCCESS_SELECTOR).first().waitFor({ timeout: 15000 });
console.log('The site accepted the token.');
} finally {
await browser.close();
}
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
What it does: opens the page once and reads data-sitekey, data-action and data-cdata from the .cf-turnstile element (waiting up to 10 seconds, because pages often add the widget after load), solves a TurnstileTokenProxyLess task, opens a fresh session with the userAgent supplied in the task, fills cf-turnstile-response and g-recaptcha-response fields, calls the element's data-callback function with the token when one is declared, clicks your submit control and waits for the success selector. If the page exposes neither a field nor a callback, the script stops instead of submitting an empty form.
Run locally against Cloudflare's public demo page and its published dummy sitekey, this exact flow reached the demo's success answer with the solver's token. Note the limit of that oracle: the demo handler uses the always-pass test secret and accepts a request with no token at all, so it proves the wiring — task, token, field, submit — and nothing about a production site's verdict. Check that on your own target by watching the protected request succeed.
The Puppeteer alternative
The same flow exists for Puppeteer with the same constants and the same page-reading behaviour.
// turnstile-puppeteer.js - solve Turnstile on the live page and submit the form with the token.
// Install: npm install puppeteer
// Run: node turnstile-puppeteer.js
const puppeteer = require('puppeteer');
const { setTimeout: sleep } = require('node:timers/promises');
// Your SurSolver API key.
const CLIENT_KEY = 'sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// The page that renders the widget, with its path and query string.
const TARGET_URL = 'https://example.com/page';
// Optional, read from the page when empty: data-sitekey on the .cf-turnstile element, or the
// sitekey of turnstile.render().
const SITE_KEY = '';
// Optional, read from the page when empty: data-action on the same element; leave unset when it
// has none.
const ACTION = '';
// Optional, read from the page when empty: data-cdata on the same element; leave unset when it
// has none.
const CDATA = '';
// The User-Agent the solve runs with; send the result with this same user agent.
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
// The control that submits the form.
const SUBMIT_SELECTOR = '.PASTE_SUBMIT_SELECTOR';
// A selector that matches only after the site accepted the result.
const SUCCESS_SELECTOR = '.PASTE_ACCEPTED_SELECTOR';
const API = 'https://api.sursolver.com';
const POLL_ATTEMPTS = 60;
// API errors are HTTP 200 with errorId 1; anything else is a transport failure.
async function call(path, body) {
const res = await fetch(`${API}${path}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
if (data.errorId !== 0) throw new Error(`${data.errorCode}: ${data.errorDescription}`);
return data;
}
async function solve(task) {
const created = await call('/createTask', { clientKey: CLIENT_KEY, task });
for (let attempt = 0; attempt < POLL_ATTEMPTS; attempt += 1) {
const result = await call('/getTaskResult', {
clientKey: CLIENT_KEY,
taskId: created.taskId,
});
if (result.status === 'ready') return result.solution;
await sleep(3000);
}
throw new Error(`task ${created.taskId} was not ready in ${POLL_ATTEMPTS} polls`);
}
// Optional task fields are sent only when they have a value.
function withoutEmpty(fields) {
return Object.fromEntries(
Object.entries(fields).filter(([, value]) => value !== undefined && value !== ''),
);
}
// A value the page did not show must be pasted into its constant at the top.
function need(name, value) {
if (value === undefined || value === null || value === '') {
throw new Error(`Could not read ${name} from the page; fill in the ${name} constant.`);
}
return value;
}
// Opens the page once and reads what the solve needs from it.
async function readPage(browser) {
const page = await browser.newPage();
await page.setUserAgent(USER_AGENT);
try {
await page.goto(TARGET_URL, {
waitUntil: 'domcontentloaded',
timeout: 45000,
});
// The widget is often added after the page loads; give it a moment to appear.
await page
.waitForFunction(
() =>
!!document.querySelector('.cf-turnstile[data-sitekey]')?.dataset.sitekey,
{ timeout: 10000 },
)
.catch(() => undefined);
const dom = await page.evaluate(() => ({
websiteKey: document.querySelector('.cf-turnstile[data-sitekey]')?.dataset.sitekey,
action: document.querySelector('.cf-turnstile')?.dataset.action,
cData: document.querySelector('.cf-turnstile')?.dataset.cdata,
}));
return {
pageUrl: page.url(),
...dom,
};
} finally {
await page.close();
}
}
async function main() {
const browser = await puppeteer.launch();
try {
const found = await readPage(browser);
const solution = await solve({
type: 'TurnstileTokenProxyLess',
websiteURL: found.pageUrl,
websiteKey: need('websiteKey', SITE_KEY || found.websiteKey),
userAgent: USER_AGENT,
...withoutEmpty({
action: ACTION || found.action,
cData: CDATA || found.cData,
}),
});
// Submit from a fresh page with the user agent the solve ran with.
const page = await browser.newPage();
await page.setUserAgent(USER_AGENT);
await page.goto(found.pageUrl);
const applied = await page.evaluate(
({ token }) => {
let filled = false;
for (const name of ['cf-turnstile-response', 'g-recaptcha-response']) {
for (const field of document.querySelectorAll(`[name="${name}"]`)) {
field.value = token;
filled = true;
}
}
const callback = document.querySelector('.cf-turnstile')?.dataset.callback;
if (callback && typeof window[callback] === 'function') {
window[callback](token);
filled = true;
}
return filled;
},
{ token: solution.token },
);
if (!applied) {
throw new Error('The page has no token field or callback; check how it passes the token.');
}
await page.click(SUBMIT_SELECTOR);
await page.waitForSelector(SUCCESS_SELECTOR, { timeout: 15000 });
console.log('The site accepted the token.');
} finally {
await browser.close();
}
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
Node.js
node turnstile-node.js — Node 18 or newer, no packages — solves TurnstileTokenProxyLess and posts your form with the token in cf-turnstile-response, the form's other fields from its constant, and the task's required userAgent as the User-Agent header.
// turnstile-node.js - solve Turnstile and post the token with the form.
// Install: Node.js 18 or newer (no packages).
// Run: node turnstile-node.js
const { setTimeout: sleep } = require('node:timers/promises');
// Your SurSolver API key.
const CLIENT_KEY = 'sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// The page that renders the widget, with its path and query string.
const TARGET_URL = 'https://example.com/page';
// data-sitekey on the .cf-turnstile element, or the sitekey of turnstile.render().
const SITE_KEY = 'YOUR_SITE_KEY';
// data-action on the same element; leave unset when it has none.
const ACTION = '';
// data-cdata on the same element; leave unset when it has none.
const CDATA = '';
// The User-Agent the solve runs with; send the result with this same user agent.
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';
// Current application session as a Cookie header value; used on form submission.
const SESSION_COOKIES = '';
// Where the page posts the form (the form action, or the request in DevTools, Network).
const FORM_URL = 'https://example.com/submit';
// The form's other fields as a JSON object, such as {"username":"demo"}.
const FORM_FIELDS = undefined;
// Text that appears only in a response the site accepted.
const SUCCESS_TEXT = 'PASTE_ACCEPTED_MARKER';
const API = 'https://api.sursolver.com';
const POLL_ATTEMPTS = 60;
// API errors are HTTP 200 with errorId 1; anything else is a transport failure.
async function call(path, body) {
const res = await fetch(`${API}${path}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
if (data.errorId !== 0) throw new Error(`${data.errorCode}: ${data.errorDescription}`);
return data;
}
async function solve(task) {
const created = await call('/createTask', { clientKey: CLIENT_KEY, task });
for (let attempt = 0; attempt < POLL_ATTEMPTS; attempt += 1) {
const result = await call('/getTaskResult', {
clientKey: CLIENT_KEY,
taskId: created.taskId,
});
if (result.status === 'ready') return result.solution;
await sleep(3000);
}
throw new Error(`task ${created.taskId} was not ready in ${POLL_ATTEMPTS} polls`);
}
// Optional task fields are sent only when they have a value.
function withoutEmpty(fields) {
return Object.fromEntries(
Object.entries(fields).filter(([, value]) => value !== undefined && value !== ''),
);
}
async function main() {
const solution = await solve({
type: 'TurnstileTokenProxyLess',
websiteURL: TARGET_URL,
websiteKey: SITE_KEY,
userAgent: USER_AGENT,
...withoutEmpty({
action: ACTION,
cData: CDATA,
}),
});
// Send the token the way the page does; some sites name it differently or send JSON.
// The solve ran with USER_AGENT; the submit presents the same one.
const headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': USER_AGENT,
...(SESSION_COOKIES ? { Cookie: SESSION_COOKIES } : {}),
};
const body = new URLSearchParams({
...(FORM_FIELDS ?? {}),
['cf-turnstile-response']: solution.token,
});
const response = await fetch(FORM_URL, { method: 'POST', headers, body });
const text = await response.text();
if (!response.ok || !text.includes(SUCCESS_TEXT)) {
throw new Error(`The site did not accept the result (HTTP ${response.status}).`);
}
console.log('The site accepted the result.');
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
Python
pip install requests and python turnstile-python.py drive the same flow: the constants at the top replace the browser's page read, and the form post is judged by SUCCESS_TEXT in the response body, not by the status code.
# turnstile-python.py - solve Turnstile and post the token with the form.
# Install: pip install requests
# Run: python turnstile-python.py
import time
from urllib.parse import urlsplit
import requests
# Your SurSolver API key.
CLIENT_KEY = "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# The page that renders the widget, with its path and query string.
TARGET_URL = "https://example.com/page"
# data-sitekey on the .cf-turnstile element, or the sitekey of turnstile.render().
SITE_KEY = "YOUR_SITE_KEY"
# data-action on the same element; leave unset when it has none.
ACTION = None
# data-cdata on the same element; leave unset when it has none.
CDATA = None
# The User-Agent the solve runs with; send the result with this same user agent.
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
# Current application session as a Cookie header value; used on form submission.
SESSION_COOKIES = None
# Where the page posts the form (the form action, or the request in DevTools, Network).
FORM_URL = "https://example.com/submit"
# The form's other fields as a JSON object, such as {"username": "demo"}.
FORM_FIELDS = None
# Text that appears only in a response the site accepted.
SUCCESS_TEXT = "PASTE_ACCEPTED_MARKER"
API = "https://api.sursolver.com"
POLL_ATTEMPTS = 60
def call(path, body):
# API errors are HTTP 200 with errorId 1; anything else is a transport failure.
response = requests.post(f"{API}{path}", json=body, timeout=30)
response.raise_for_status()
data = response.json()
if data["errorId"] != 0:
raise RuntimeError(f'{data["errorCode"]}: {data["errorDescription"]}')
return data
def solve(task):
created = call("/createTask", {"clientKey": CLIENT_KEY, "task": task})
for _ in range(POLL_ATTEMPTS):
result = call("/getTaskResult", {"clientKey": CLIENT_KEY, "taskId": created["taskId"]})
if result["status"] == "ready":
return result["solution"]
time.sleep(3)
raise TimeoutError(f'task {created["taskId"]} was not ready in {POLL_ATTEMPTS} polls')
def without_empty(fields):
# Optional task fields are sent only when they have a value.
return {name: value for name, value in fields.items() if value not in (None, "")}
def main():
session = requests.Session()
if SESSION_COOKIES:
for part in SESSION_COOKIES.split(";"):
if "=" in part:
name, value = part.strip().split("=", 1)
session.cookies.set(name, value, domain=urlsplit(FORM_URL).hostname, path="/")
solution = solve({
"type": "TurnstileTokenProxyLess",
"websiteURL": TARGET_URL,
"websiteKey": SITE_KEY,
"userAgent": USER_AGENT,
**without_empty({
"action": ACTION,
"cData": CDATA,
}),
})
# The solve ran with USER_AGENT; the submit presents the same one.
headers = {"User-Agent": USER_AGENT}
# Send the token the way the page does; some sites name it differently or send JSON.
response = session.post(
FORM_URL,
data={**(FORM_FIELDS or {}), "cf-turnstile-response": solution["token"]},
headers=headers,
timeout=30,
)
session.close()
if not response.ok or SUCCESS_TEXT not in response.text:
raise SystemExit(f"The site did not accept the result (HTTP {response.status_code}).")
print("The site accepted the result.")
if __name__ == "__main__":
main()
Submit the token
Where the token goes depends on how the page was built. Check what the form actually sends in the Network panel before you pick.
- A hidden input named
cf-turnstile-response. This is the usual case. - A hidden input named
g-recaptcha-response, when the site enabled reCAPTCHA-compatibility mode. - A
callbackpassed toturnstile.render. The page may never create a field; it expects its own function to be called with the token.

Both embedded scripts cover all three cases for the page they run against. If you post the form yourself with an HTTP client instead, send the token under the same field name the browser used, together with every other field the form contains. The token submission post covers textareas, callbacks and cookies for other captcha types too.
Supply userAgent in the task and use that same value for the request that submits the token. The solution does not return it.
Token lifetime and verification errors
The token is single-use and expires after about five minutes. The site's server verifies it with a POST to https://challenges.cloudflare.com/turnstile/v0/siteverify, and what you see in the browser is whatever the site decides to show after that. The result of that call never comes back to you, but its error codes explain most rejections: timeout-or-duplicate means the token expired or was already redeemed, which is what a double submit, a retry or a redirect that verifies a second time produces. The other codes you may see in a site's logs are missing-input-response, invalid-input-response, invalid-input-secret and internal-error.
Solve inline. Create the task right before the request that needs the token, submit it as soon as it is ready, and never keep a pool of pre-solved tokens.
Proxy and user agent
Start with TurnstileTokenProxyLess. A proxy only matters if the site binds the token to the IP that earned it. The symptom is specific: a valid token is rejected while the same flow in a normal browser works. Only then switch to TurnstileToken, send a static proxy with the task, and submit the token from the same exit.
{
"clientKey": "sur_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"task": {
"type": "TurnstileToken",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36",
"websiteURL": "https://example.com/login",
"websiteKey": "0x4AAAAAAAxxxxxxxxxxxxxx",
"proxy": "user:password:203.0.113.10:8000"
}
}
A proxy string with four colon-separated parts is always read as user:password:host:port. Some providers document host:port:user:password; strings in that order are not rejected but are read the wrong way round, so convert them or use the split fields (proxyType, proxyAddress, proxyPort, proxyLogin, proxyPassword) described in the proxies guide. If the solve itself fails, look at the sitekey, the action and the task type before you look at the IP.
Common failures
| Symptom | Likely cause | Check / fix |
|---|---|---|
A guessed action or cData is sent |
Verifier checks them, token solved for other values is refused | If the widget declares nothing, send nothing; copy declared values exactly |
| Form submits but the site refuses entry | Wrong product: a full-page interstitial, not a widget | Confirm the page loads normally (HTTP 200); a "Just a moment…" interstitial needs the Challenge task |
| Invisible mode submits an empty field | No checkbox; the form relies on the callback | Check the token field is filled before the submit runs |
timeout-or-duplicate at verification |
Token used twice or expired | Look for a redirect, retry or double submit; solve inline |
| A stale value solves nothing | cData changed on the next render |
Re-read it just before createTask |
What to do next
Create an API key in the dashboard and send one TurnstileTokenProxyLess task for the page you collected the values from. The public catalog (GET /v1/task-types) lists every accepted name and field, the task lifecycle guide explains statuses and retention, and the Turnstile solver guide is the shorter version of this post. If your error is an errorCode from SurSolver rather than a verification code from the site, look it up in the errors guide.