POST /createTask
Creates a new FunCaptcha solving task and returns a task ID for polling.
Request Body
Parameters
Root
| Field | Type | Required | Description |
|---|---|---|---|
clientKey | string | Yes | Your API key (FUN- or PKG- prefix) |
task | object | Yes | Task configuration object |
Task Object
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be FunCaptchaTask |
websiteURL | string | Yes | URL of the target website |
websitePublicKey | string | Yes | Arkose public key (UUID format) |
websiteSubdomain | string | Yes | Arkose subdomain (e.g., client-api) |
proxy | string | Yes | Proxy in format protocol://user:pass@ip:port |
data | string | No | Extra data as JSON string (e.g., blob data) |
enablePOW | boolean | No | Enable Proof-of-Work solving (default: true) |
headers | object | No | Custom browser headers |
Headers Object
| Field | Type | Required | Description |
|---|---|---|---|
user-agent | string | Required if sec-ch-* headers are set | Browser User-Agent string |
sec-ch-ua | string | No | Client Hints UA string |
sec-ch-ua-platform | string | No | Client Hints platform |
sec-ch-ua-mobile | string | No | Client Hints mobile flag |
accept-language | string | No | Accept-Language header |
document-referrer | string | No | Document referrer URL |
document-title | string | No | Document title |
Response
Success (200)
Service Unavailable (503)
Common Errors
| Error Code | HTTP | Description |
|---|---|---|
ERROR_MISSING_REQUEST_DATA | 400 | Request body is missing |
ERROR_KEY_DOES_NOT_EXIST | 404 | Invalid API key |
ERROR_TASK_NOT_SUPPORTED | 400 | Task type is not FunCaptchaTask |
ERROR_INVALID_PUBLIC_KEY | 400 | Public key is not a valid UUID |
ERROR_MISSING_PROXY | 400 | Proxy is required |
ERROR_INVALID_PROXY_FORMAT | 400 | Proxy format is invalid |
ERROR_TEMPLATE_NOT_FOUND | 404 | No template for this public key |
ERROR_ZERO_BALANCE | 402 | Insufficient balance |
ERROR_THREAD_THRESHOLD_EXCEEDED | 429 | Too many concurrent tasks |