🤖Create Task [/createTask]
The API endpoint for starting a solving task.
Full Rest API Endpoint: https://captcha.datalabs.net/createTask
Request Structure
Parameters
Required
Description
clientKey
true
Your accounts private API Key.
task
true
Contains all of the task info for the to-be-solved captcha.
callbackUrl
false
Optional callback url for solution results.
POST https://captcha.datalabs.net/createTask
Host: captcha.datalabs.net
Content-Type: application/json
{
"clientKey": "DATALABS_API_KEY",
"task": {
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://google.com/recaptcha/api2/demo",
"websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
},
"callbackUrl": "https://example.com/callback"
}
Response Structure
Parameters
Description
errorId
0: Without error. 1: Error with request.
errorCode
Short code for error type.
taskId
Task ID, provided for synchronous tasks to be pushed to /getTaskResult
Example Responses
{
"errorId": 1,
"errorCode": "ERROR_NO_SUCH_METHOD",
"errorDescription": "Invalid type"
}
{
"errorId": 0,
"taskId": "12341234-1234-1234-1234-123412341234"
}
Last updated