#
createTask - create a task
This method creates a task for solving selected captcha type. In the parameters you need to pass the client authorization data, typed task data and other optional parameters.
API ADDRESS
POST
https://api.3xcaptcha.com/createTask
Request format: JSON
#
Request parameters
required
optional
string
clientKey
Your unique account key, API key (You can find it here)
object
task
Task object. See list of available object descriptions here.
#
Request body example
{
"clientKey": "f95f25ea9e71408d8f272d523f8c281d",
"task": {
"type": "RecaptchaV2TaskProxyless",
"websiteURL": "https://www.google.com/sorry/index",
"websiteKey": "6LfwuyUTAAAAAOAmoS0fdqijC2PbbdH4kjq62Y1b"
}
}
{
"clientKey": "f95f25ea9e71408d8f272d523f8c281d",
"task": {
"type": "ImageToTextTask",
"body": "BASE64_BODY_HERE!"
}
}
#
Response structure
int
errorId
Error identification:
0 - no errors, the task has been successfully created, task ID located in taskId property
1 - error, information about it is in the errorCode
property
string
errorId
Error code. Check out error list
int
errorId
Task ID for further use in getTaskResult method
#
Response example
{
"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"
}