Create a sandbox task without a key
POST https://api.noptcha.com/v1/sandbox/tasks
Native API (v1). Guide. Operation ID createSandboxTask.
The keyless sandbox: the same request and response as POST /v1/tasks with a test key, but without
Authorization (it is ignored if sent), so documentation examples run before you sign up. Parameters and
metadata are validated exactly like POST /v1/tasks; answers are the fixed sandbox answers and the magic
values (test-unsolvable, test-timeout, test-proxy-error, test-slow-<seconds>) work the same way. No
solver is called and nothing is charged or recorded in usage.
Task IDs look like sbx_ followed by 26 characters (A–Z, 2–7); they are random, so only whoever
created a task can read it. Poll Location (/v1/sandbox/tasks/{id}). Results are kept for 10 minutes.
Prefer: wait=N or ?wait=N waits up to N seconds (at most 90) as in POST /v1/tasks.
Differences from a test key: callback_url is not supported (422 invalid_params, pointer
/callback_url); Idempotency-Key is checked but requests are not deduplicated (a retry creates a new
sandbox task); the request body may be at most 256 KB, and params (with images counted as a few bytes)
and metadata together may hold at most 4 KB (both 413 request_too_large).
Limits (starting values): per client IP (per /64 for IPv6, and 10 times as much per /48) 30 new tasks per
minute with bursts of 10, and 5 test-slow-* tasks still processing; for everyone together 10 requests
per second (invalid ones count too) and 100 slow tasks still processing. Over a limit: 429 rate_limited or 429 concurrency_limited with Retry-After. Use a test key for more.
Browsers may call it from any origin (Access-Control-Allow-Origin: *); there is no CORS preflight
(OPTIONS is not served), so send a simple request: a JSON body as text/plain (the default for a string
body in fetch) and ?wait= instead of Prefer.
Request
Authentication: the key in the clientKey body field (Keys).
| Parameter | In | Description |
|---|---|---|
Preferoptional | header |
|
waitoptional | query | Seconds to wait for the result (capped at 90). Takes precedence over |
Idempotency-Keyoptional | header | 1–64 visible ASCII characters ( |
Body (application/json, required):
One of (selected by type):
CreateAlibabaTaskRequest— Alibaba Cloud Captcha (alibaba, familyalibaba, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateAltchaTaskRequest— Altcha (altcha, familyaltcha, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateArcaptchaTaskRequest— ARCaptcha (arcaptcha, familyarcaptcha, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateAwsWafTaskRequest— AWS WAF (aws.waf, familyaws, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateCloudflareChallengeTaskRequest— Cloudflare challenge page (cloudflare.challenge, familycloudflare, active). Variants:proxy(params.proxyis required). Tasks not solved within 120 seconds fail withtimeout.CreateCloudflareWaitingroomTaskRequest— Cloudflare Waiting Room (cloudflare.waitingroom, familycloudflare, beta). Variants:proxy(params.proxyis required). Tasks not solved within 120 seconds fail withtimeout.CreateDatadomeTaskRequest— DataDome (datadome, familydatadome, beta). Variants:proxy(params.proxyis required). Tasks not solved within 120 seconds fail withtimeout.CreateFengkongTaskRequest— Shumei (FengkongCloud) (fengkong, familyfengkong, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateFriendlycaptchaTaskRequest— Friendly Captcha (friendlycaptcha, familyfriendlycaptcha, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateFuncaptchaTaskRequest— FunCaptcha (Arkose Labs) (funcaptcha, familyarkose, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 180 seconds fail withtimeout.CreateGeetestTaskRequest— GeeTest (geetest, familygeetest, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateHcaptchaTaskRequest— hCaptcha (hcaptcha, familyhcaptcha, active). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateHeytapTaskRequest— HeyTap Captcha (heytap, familyheytap, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateHuntTaskRequest— Hunt Captcha (hunt, familyhunt, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateImageFuncaptchaTaskRequest— FunCaptcha image (image.funcaptcha, familyimage, beta). Variants:proxyless. Tasks not solved within 60 seconds fail withtimeout.CreateImageGridAwsTaskRequest— AWS WAF image grid (image.grid.aws, familyimage, beta). Variants:proxyless. Tasks not solved within 60 seconds fail withtimeout.CreateImageGridHcaptchaTaskRequest— hCaptcha image grid (image.grid.hcaptcha, familyimage, active). Variants:proxyless. Tasks not solved within 60 seconds fail withtimeout.CreateImageGridRecaptchaTaskRequest— reCAPTCHA image grid (image.grid.recaptcha, familyimage, active). Variants:proxyless. Tasks not solved within 60 seconds fail withtimeout.CreateImageTextTaskRequest— Image to text (image.text, familyimage, active). Variants:proxyless. Tasks not solved within 60 seconds fail withtimeout.CreateImpervaTaskRequest— Imperva (Incapsula) (imperva, familyimperva, beta). Variants:proxy(params.proxyis required). Tasks not solved within 120 seconds fail withtimeout.CreateMtcaptchaTaskRequest— MTCaptcha (mtcaptcha, familymtcaptcha, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateRecaptchaV2TaskRequest— reCAPTCHA v2 (recaptcha.v2, familyrecaptcha, active). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateRecaptchaV2EnterpriseTaskRequest— reCAPTCHA v2 Enterprise (recaptcha.v2.enterprise, familyrecaptcha, active). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateRecaptchaV3TaskRequest— reCAPTCHA v3 (recaptcha.v3, familyrecaptcha, active). Variants:proxyless. Tasks not solved within 120 seconds fail withtimeout.CreateRecaptchaV3EnterpriseTaskRequest— reCAPTCHA v3 Enterprise (recaptcha.v3.enterprise, familyrecaptcha, active). Variants:proxyless. Tasks not solved within 120 seconds fail withtimeout.CreateTencentTaskRequest— Tencent Captcha (tencent, familytencent, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateTspdTaskRequest— TSPD (F5) (tspd, familytspd, beta). Variants:proxy(params.proxyis required). Tasks not solved within 120 seconds fail withtimeout.CreateTurnstileTaskRequest— Cloudflare Turnstile (turnstile, familycloudflare, active). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.CreateYidunTaskRequest— NetEase Yidun (yidun, familyyidun, beta). Variants:proxyless,proxy(theproxyvariant whenparams.proxyis given). Tasks not solved within 120 seconds fail withtimeout.
{ "params": { "website_key": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", "website_url": "https://example.com/login" }, "type": "recaptcha.v2"}Responses
200
The task is final (solved or failed).
Headers: Access-Control-Allow-Origin, Location (optional), Noptcha-Request-Id, Preference-Applied (optional).
Content: application/json
| Field | Type | Description |
|---|---|---|
completed_atoptional | string | When the task became final; absent while processing. format: date-time · pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$ |
costrequired | object | What the task cost (zero unless solved and charged). |
cost.amountrequired | string | Decimal US dollars with 6 places. pattern: ^-?[0-9]+\.[0-9]{6}$ |
cost.currencyrequired | const "USD" | |
created_atrequired | string | format: date-time · pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$ |
errorrequired | one of | null | Why the task failed when TaskError |
idrequired | string | Task ID: a 53-bit integer as a string; for the keyless sandbox ( |
metadataoptional | object | Your own key-value pairs, returned with the task. At most 16 keys; keys 1–64 characters, values
strings of at most 256 characters (Unicode code points, as JSON Schema counts them). A value that is
not a string is |
metadata.<any key>optional | string | max length 256 |
paramsrequired | object | null | The task's parameters with secrets removed (proxy login and password, cookies where the type marks
them sensitive) and strings longer than 256 bytes (images) replaced by |
sandboxoptional | const true | Present (true) on tasks created with a test key or in the keyless sandbox. |
solutionrequired | one of | null | The answer when Solution |
statusrequired | enum | one of "processing", "solved", "failed" |
typerequired | string | Canonical task type, e.g. |
202
The task is still processing; poll Location.
Headers: Access-Control-Allow-Origin, Location (optional), Noptcha-Request-Id, Preference-Applied (optional).
Content: application/json
| Field | Type | Description |
|---|---|---|
completed_atoptional | string | When the task became final; absent while processing. format: date-time · pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$ |
costrequired | object | What the task cost (zero unless solved and charged). |
cost.amountrequired | string | Decimal US dollars with 6 places. pattern: ^-?[0-9]+\.[0-9]{6}$ |
cost.currencyrequired | const "USD" | |
created_atrequired | string | format: date-time · pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$ |
errorrequired | one of | null | Why the task failed when TaskError |
idrequired | string | Task ID: a 53-bit integer as a string; for the keyless sandbox ( |
metadataoptional | object | Your own key-value pairs, returned with the task. At most 16 keys; keys 1–64 characters, values
strings of at most 256 characters (Unicode code points, as JSON Schema counts them). A value that is
not a string is |
metadata.<any key>optional | string | max length 256 |
paramsrequired | object | null | The task's parameters with secrets removed (proxy login and password, cookies where the type marks
them sensitive) and strings longer than 256 bytes (images) replaced by |
sandboxoptional | const true | Present (true) on tasks created with a test key or in the keyless sandbox. |
solutionrequired | one of | null | The answer when Solution |
statusrequired | enum | one of "processing", "solved", "failed" |
typerequired | string | Canonical task type, e.g. |
400
invalid_request: the body is not valid JSON or misses a field, a parameter is wrong, callback_url
is not a string, the result would be too large (usage). unsupported_type: the task type
does not exist or is not available.
Headers: Noptcha-Request-Id, RateLimit (optional), RateLimit-Policy (optional).
Content: application/problem+json
| Field | Type | Description |
|---|---|---|
coderequired | string | Machine-readable error code (see the table). |
detailoptional | string | Human-readable explanation of this occurrence. |
request_idrequired | string | Same as the |
statusrequired | integer | The HTTP status code. |
titlerequired | string | |
typerequired | string | format: uri |
403
forbidden (problem details): the request reached the API without passing through our edge network.
Infrastructure, not part of the compatibility protocol.
Headers: Noptcha-Request-Id.
Content: application/problem+json
| Field | Type | Description |
|---|---|---|
coderequired | string | Machine-readable error code (see the table). |
detailoptional | string | Human-readable explanation of this occurrence. |
request_idrequired | string | Same as the |
statusrequired | integer | The HTTP status code. |
titlerequired | string | |
typerequired | string | format: uri |
413
request_too_large: the body exceeds the limit (1 MB for image types, 64 KB otherwise). Any request
with a body over 1 MB gets this, GET requests included.
Headers: Noptcha-Request-Id, RateLimit (optional), RateLimit-Policy (optional).
Content: application/problem+json
| Field | Type | Description |
|---|---|---|
coderequired | string | Machine-readable error code (see the table). |
detailoptional | string | Human-readable explanation of this occurrence. |
request_idrequired | string | Same as the |
statusrequired | integer | The HTTP status code. |
titlerequired | string | |
typerequired | string | format: uri |
422
invalid_params: params or metadata do not match the schema; errors lists each problem.
Headers: Noptcha-Request-Id, RateLimit (optional), RateLimit-Policy (optional).
Content: application/problem+json
| Field | Type | Description |
|---|---|---|
coderequired | string | Machine-readable error code (see the table). |
detailoptional | string | Human-readable explanation of this occurrence. |
request_idrequired | string | Same as the |
statusrequired | integer | The HTTP status code. |
titlerequired | string | |
typerequired | string | format: uri |
errorsrequired | array of FieldError | One entry per problem, sorted by |
errors.[item]optional | object | |
errors.[item].messagerequired | string | |
errors.[item].pointerrequired | string | JSON Pointer (RFC 6901) to the offending value, from the root of the request body:
|
errors.[item].reasonoptional | enum | Machine-readable kind, present for image problems: |
429
rate_limited: too many tasks created per second by this key, the same task polled too often, the
sandbox's per-organization rate, usage queried too often, the catalog fetched too often from this IP, or
this IP sent too many invalid keys.
concurrency_limited: the organization has too many tasks in flight for this captcha family (or, with a
test key, too many sandbox tasks still processing). Wait Retry-After seconds.
Headers: Noptcha-Request-Id, RateLimit (optional), RateLimit-Policy (optional), Retry-After.
Content: application/problem+json
| Field | Type | Description |
|---|---|---|
coderequired | string | Machine-readable error code (see the table). |
detailoptional | string | Human-readable explanation of this occurrence. |
request_idrequired | string | Same as the |
statusrequired | integer | The HTTP status code. |
titlerequired | string | |
typerequired | string | format: uri |
500
internal: an error on our side.
Headers: Noptcha-Request-Id, RateLimit (optional), RateLimit-Policy (optional).
Content: application/problem+json
| Field | Type | Description |
|---|---|---|
coderequired | string | Machine-readable error code (see the table). |
detailoptional | string | Human-readable explanation of this occurrence. |
request_idrequired | string | Same as the |
statusrequired | integer | The HTTP status code. |
titlerequired | string | |
typerequired | string | format: uri |
503
service_unavailable: no capacity right now (all solvers busy or failing, the gateway is overloaded,
a dependency is unavailable). For POST /v1/tasks nothing was created or charged. Wait Retry-After.
Headers: Noptcha-Request-Id, RateLimit (optional), RateLimit-Policy (optional), Retry-After.
Content: application/problem+json
| Field | Type | Description |
|---|---|---|
coderequired | string | Machine-readable error code (see the table). |
detailoptional | string | Human-readable explanation of this occurrence. |
request_idrequired | string | Same as the |
statusrequired | integer | The HTTP status code. |
titlerequired | string | |
typerequired | string | format: uri |
Header descriptions and every schema: Schemas. Machine-readable: openapi.json, openapi.yaml.