Create Task

Create a new captcha solving task.

Tip: Need help finding CAPTCHA parameters like websiteKey and pageAction? Check our guide: How to Identify CAPTCHA Parameters Using CapSolver Extension

POST/createTask

Request Body

ParameterTypeRequiredDescription
clientKeystringYesYour API key
taskobjectYesTask configuration object
forwardRequestobjectNoForward solved token to your endpoint (see below)

Task Object

ReCaptchaV3TaskProxyless

ParameterTypeRequiredDescription
typestringYesReCaptchaV3TaskProxyless
websiteURLstringYesTarget website URL
websiteKeystringYesreCAPTCHA site key
pageActionstringNoAction name (default: "verify")
minScorenumberNoMinimum score 0.1-0.9 (default: 0.7)

ReCaptchaV3EnterpriseTaskProxyless

Same parameters as above, but for Enterprise reCAPTCHA.

Request Forwarding (Optional)

Automatically forward the solved token to your target endpoint. The worker will make the HTTP request with your token injected and return the response.

Credit Policy: When using forwardRequest, credits are only deducted if the forward request returns a 2xx response. Failed forwards don't consume credits, and you still receive the solved token.

forwardRequest Object

ParameterTypeRequiredDescription
urlstringYesTarget URL. Use {{token}} placeholder for token injection
methodstringNoHTTP method: GET, POST, PUT, PATCH, DELETE (default: POST)
headersobjectNoHTTP headers as key-value pairs
bodystringNoRequest body. Use {{token}} placeholder for token injection
timeoutnumberNoRequest timeout in seconds, 1-60 (default: 60)

Example Request

Basic (solve only)

terminal
curl -X POST https://api.regotcha.com/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "ReCaptchaV3TaskProxyless",
      "websiteURL": "https://example.com/login",
      "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_kl-",
      "pageAction": "login",
      "minScore": 0.7
    }
  }'

With Request Forwarding

terminal
curl -X POST https://api.regotcha.com/createTask \
  -H "Content-Type: application/json" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "ReCaptchaV3TaskProxyless",
      "websiteURL": "https://example.com/login",
      "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_kl-",
      "pageAction": "login"
    },
    "forwardRequest": {
      "url": "https://example.com/api/login",
      "method": "POST",
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer your-auth-token"
      },
      "body": "{\"username\":\"user\",\"password\":\"pass\",\"captcha\":\"{{token}}\"}",
      "timeout": 30
    }
  }'

Response

Success

response.json
{
  "errorId": 0,
  "taskId": "task_abc123xyz789"
}

Error

error.json
{
  "errorId": 1,
  "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
  "errorDescription": "Invalid API key"
}

Error Codes

CodeDescription
ERROR_KEY_DOES_NOT_EXISTInvalid or missing API key
ERROR_ZERO_BALANCEInsufficient credits
ERROR_WRONG_TASK_DATAInvalid task parameters
ERROR_TOO_MANY_REQUESTSRate limit exceeded