The method creates a task for solving the selected captcha type. The parameters include client authentication data, typed task information, and, if necessary, additional parameters.
https://captcha69.com/createTaskJSON POST
| Parameter | Type | Required |
|---|---|---|
clientKey |
String | Required |
task |
Task object | Required |
callbackUrl |
String | Optional |
clientKeyYour unique account API key.
taskTask data object. See the list of available task types in the Supported Captcha Types section.
callbackUrlWeb address for sending the captcha task result. Data is sent by POST request. The content is identical to the response of the getTaskResult method. The content of the response is not checked and you should accept the request within 2 seconds, after which the connection will be closed.
{
"clientKey": "max1_YOUR_API_KEY",
"task": {
"type": "RecaptchaV2Task",
"websiteURL": "https://example.com/captcha-page",
"websiteKey": "6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd"
},
"callbackUrl": "https://yourwebsite.com/callback"
}
{
"clientKey": "max1_YOUR_API_KEY",
"task": {
"type": "ImageToTextTask",
"body": "BASE64_BODY_HERE!"
}
}
{
"clientKey": "max1_YOUR_API_KEY",
"task": {
"type": "RecaptchaV2Task",
"websiteURL": "https://example.com/captcha-page",
"websiteKey": "6Lcg7CMUAAAAANphynKgn9YAgA4tQ2KI_iqRyTwd"
}
}
| Parameter | Type | Description |
|---|---|---|
errorId |
Integer | Error identifier. 0 - no errors, task created successfully, task ID is in taskId. 1 - error, see errorCode. |
errorCode |
String | Error code. See the error list for details. |
taskId |
Integer | Task ID for further use in the getTaskResult method. |
{
"errorId": 0,
"taskId": 7654321
}
{
"errorId": 1,
"errorCode": "ERROR_KEY_DOES_NOT_EXIST",
"errorDescription": "Account authorization key not found in the system or has incorrect format",
"taskId": 0
}
| Error Code | Description |
|---|---|
ERROR_KEY_DOES_NOT_EXIST |
Account authorization key not found in the system or has incorrect format. |
ERROR_WRONG_USER_KEY |
The clientKey parameter has an incorrect format. |
ERROR_KEY_NOT_AUTHORIZED |
The specified API key is not authorized. |
ERROR_ZERO_BALANCE |
Account has zero balance. |
ERROR_NO_SLOT_AVAILABLE |
No available workers to process your task. Try again later. |
ERROR_RECAPTCHA_INVALID_SITEKEY |
The ReCaptcha site key is invalid. |
ERROR_RECAPTCHA_INVALID_DOMAIN |
The ReCaptcha domain is invalid. |
ERROR_TASK_ABSENT |
The task parameter is missing or empty. |
ERROR_TASK_NOT_SUPPORTED |
The task type is not supported. |
ERROR_IMAGE_BODY_NOT_CORRECT |
The image body is not correct or missing. |