# Get Task Result \[/getTaskResult]

This endpoint has a prerequisite request, [`/createTask`](https://docs.datalabs.net/captcha-api/create-task-createtask), in which provides the required `taskId` parameter.

Full Rest API Endpoint: `https://captcha.datalabs.net/getTaskResult`&#x20;

## Request Structure

<table><thead><tr><th width="184">Parameters</th><th width="109">Required</th><th width="370">Description</th></tr></thead><tbody><tr><td>clientKey</td><td>true</td><td>Your accounts private API Key.</td></tr><tr><td>taskId</td><td>true</td><td>The <code>taskId</code> parameter passed by the <a href="create-task-createtask"><code>/createTask</code></a> endpoint.</td></tr></tbody></table>

```json
POST https://captcha.datalabs.net/getTaskResult
Host: captcha.datalabs.net
Content-Type: application/json

{
  "clientKey": "DATALABS_API_KEY",
  "taskId": "1234567890"
}
```

## Response Structure

<table><thead><tr><th width="184">Parameters</th><th width="720">Description</th></tr></thead><tbody><tr><td>errorId</td><td>0: Without error.<br>1: Error with request.</td></tr><tr><td>errorCode</td><td>Short code for error type.</td></tr><tr><td>status</td><td>The current status of the task. (e.g. "processing", "ready")</td></tr><tr><td>solution</td><td>The result of the completed task.</td></tr></tbody></table>

## Example Responses

```json
{
  "errorId": 0,
  "status": "processing"
}
```

```json
{
  "errorId":0,
  "status":"ready",
  "solution": {
    "gRecaptchaResponse":"03AFcWeA6P_W0urJnFwK-f2psFTXp..."
  }
}
```
