Documentation menu

Get Task Results

Method address: https://capkill.com/api/getTaskResult

Request format: JSON POST

Request limit: 120 requests per task.


Request parameters

Parameter Type Required Purpose
clientKey String Yes Unique key of your account
taskId Integer Yes ID which was obtained in createTask method.

Request examples

JSON with no errors
{
    "clientKey":"67b6bcbb1a728ea8d563de6d169a2057",
    "taskId": 7654321
}

Response structure

Parameter Type Purpose
errorId Integer Error identificator.
0 - no error, errorCode property missing
1 - error, information about it is in the errorCode property
errorCode String Error code. Check out errors list.
status String processing - task is not ready yet
ready - task complete, solution object can be found in solution property
solution Object Task result data. Different for each type of task.

Response example:

JSON with no errors
{
    "errorId":0,
    "status":"ready",
    "solution":
    {
        "text":"answer"
    }
}