Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.

Method address: https://api.capmonster.cloud/createTask
Request format: JSON POST

Request parameters:

Parameter

Type

Required

Purpose

clientKey

String

Yes

Client account key, can be found here

task

Task type object

Yes

Task data. See list of available object descriptions here.

 Solving the usual captcha with the image

{
    "clientKey":"67b6bcbb1a728ea8d563de6d169a2057",
    "task":
        {
            "type":"ImageToTextTask",
            "body":"BASE64_BODY_HERE!"
        }
}

Response structure:

Parameter

Type

Purpose

errorId

Integer

Error identificator.

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

errorCode

String

Error code. Check out errors list.

taskId

Integer

Task ID for future use in getTask method.

Response example:

{
    "errorId": 0,
    "taskId": 7654321
}
  • No labels