SurSolver
Docs menu

Docs / Guides

Proxies

Which task types need a proxy, the proxy formats the API accepts, and how to keep exit IP and user agent consistent so solved tokens verify on your side.

Some captcha deployments tie a solution to the IP that earned it: a token or cookie is only useful from the same exit IP, and often with the same user agent. Those types take proxy details in the task. Types that run fine from shared infrastructure accept none.

Proxy mode per task type

Task typeProxy modeWhat the mode means
reCAPTCHA v2optionalProxyless, or your own proxy with the proxy-capable name.
reCAPTCHA v3optionalProxyless, or your own proxy with the proxy-capable name.
reCAPTCHA v3 EnterpriseoptionalUse the Enterprise proxyless name, or the proxy-capable name with your own proxy.
Cloudflare TurnstilenoneBoth TurnstileToken and TurnstileTokenProxyLess use SurSolver-managed egress. Caller proxy fields are ignored.
Cloudflare ChallengerequiredProxy required; no proxyless name.
VercelrequiredProxy required; no proxyless name.
AWS ChallengenoneSilent AWS WAF Challenge token generation needs no caller proxy; this is not the separate AWS WAF CAPTCHA.
AWS CAPTCHArequiredAwsCaptchaCookie solves the visual CAPTCHA; solve and replay through the same sticky proxy.
FriendlyCaptchaoptionalProxyless, or your own proxy with the proxy-capable name.
AltchanoneProxyless only; both accepted names work and a proxy is never required.
ProsopooptionalProxyless, or your own proxy with the proxy-capable name.
CaptchaFoxrequiredProxy required; no proxyless name.
GeeTestoptionalProxyless, or your own proxy with the proxy-capable name.
MTCaptchaoptionalProxyless, or your own proxy with the proxy-capable name.
LeminoptionalUse LeminTokenProxyLess, or LeminToken with your own proxy.
Imperva Reese84requiredImpervaCookie returns the reese84 value; keep the solve and replay IP unchanged.
Imperva UTMVCrequiredImpervaUtmvcCookie returns the ___utmvc value; preserve the proxy and site session.
Akamainone_abck: AkamaiCookie and AkamaiCookieProxyLess run through our own egress; replay from your IP with the task’s userAgent. A supplied proxy is not used.
Akamai SBSDrequiredAkamaiSbsdCookie is bound to the solve’s IP; solve and replay through the same proxy.
Akamai BMPnoneAndroid sensor-header generation does not fetch the target URL and needs no proxy.
KasadanoneKasadaToken and KasadaTokenProxyLess need no proxy; replay the returned headers from your IP.
Castle WebnoneCastleWebToken needs no proxy; send your client ip, country and userAgent.
Castle AndroidnoneNative app token generation needs no proxy; send the Castle public key and package details.
Image to TextnoneThe task carries only the module id and the base64 image; no page is opened.
ShapenoneShapeCookie and ShapeCookieProxyLess need no proxy; replay the returned headers and cookies from your IP.
DataDomerequiredProxy required; no proxyless name.
PerimeterXrequiredProxy required; no proxyless name.

The name you send decides whether a proxy is required for an optional type: the …TokenProxyLess form never needs one, while the proxy-capable …Token form requires proxy details and a request without them is rejected with ERROR_INVALID_REQUEST. Types marked required have no proxyless name at all — sending one answers ERROR_TYPE_NOT_SUPPORTED.

Accepted proxy formats

Send the proxy as a string in task.proxy:

snippet.txt
http://user:password@203.0.113.10:8000
socks5://user:password@203.0.113.10:1080
user:password@203.0.113.10:8000
203.0.113.10:8000

Only http and socks5 are supported; without a scheme, http is assumed. https and socks4 are rejected with ERROR_INVALID_REQUEST before charging, rather than reaching the manager and failing with 400 ERR_FLOW_INVALID. Credentials are optional — a bare host:port is how IP-allowlisted proxies are used. A string with exactly four colon-separated parts is always read as user:password:host:port, with or without a scheme (socks5://user:password:host:port). The order is not detected: some clients send the opposite one (host:port:user:pass), and such a string is not rejected when it happens to parse the other way — for example 203.0.113.10:8000:user:12345 would be taken as user 203.0.113.10, password 8000, host user, port 12345, and the task would be charged while using the wrong proxy. Convert strings in that order, or use the split fields below. Other layouts, such as type:ip:port:user:pass, are rejected with ERROR_INVALID_REQUEST.

Or send the split fields — the explicit form, the safest one to generate, and the recommended one when migrating from a vendor whose string order differs. They are read only when task.proxy is absent or empty:

snippet.json
{
  "proxyType": "http",
  "proxyAddress": "203.0.113.10",
  "proxyPort": 8000,
  "proxyLogin": "user",
  "proxyPassword": "password"
}

proxyAddress and proxyPort are required together; proxyType is http or socks5 and defaults to http when omitted. proxyLogin / proxyPassword are optional. A missing or non-numeric port, an unparseable task.proxy string or an unsupported scheme (in either form) is rejected with ERROR_INVALID_REQUEST.

Consistency rules

  • Send the same userAgent in the task and on every request that uses the result. For IP-bound types (including Cloudflare Challenge, Vercel and Akamai SBSD), solve and replay from the same exit IP.
  • Keep a sticky proxy session for IP-bound challenges: challenge, solve and the request that consumes the cookie. Akamai _abck, Kasada and Shape do not need your proxy.
  • Match the proxy class to what the target accepts. Anti-bot vendors commonly refuse datacenter ranges; choosing a type that runs proxyless avoids the question entirely.
  • The proxy is part of the task, not a global setting: each createTask that needs one carries its own details.