**POST** `https://api.captchasonic.com/getTaskResult`

`GET /getTaskResult` और `GET /getResponse` के रूप में भी उपलब्ध है।

## Request body

| Field | Type | Description |
|---|---|---|
| `apiKey` | `string` | [dashboard](https://captchasonic.com/app) से प्राप्त आपकी API key। |
| `taskId` | `string` | [`createTask`](/docs/start/create-task) से लौटाया गया `taskId`। |

```json
{
  "apiKey": "sonic_xxxxxxxxxxxxxxxxxxxxxxxx",
  "taskId": "FgIcYXBtKR6E"
}
```

## Response

जब तक task हल हो रहा है, आपको task उसके वर्तमान `status` के साथ मिलेगा:

```json
{
  "errorId": 0,
  "status": "idle",
  "taskId": "FgIcYXBtKR6E"
}
```

हर 1–2 सेकंड में poll करते रहें। task पूरा होने पर response में उस captcha प्रकार का समाधान होगा; सटीक fields के लिए captcha-विशिष्ट पृष्ठ देखें।

## Example

  
**cURL**

```bash
curl -s https://api.captchasonic.com/getTaskResult \
  -H 'content-type: application/json' \
  -d '{"apiKey":"sonic_xxx","taskId":"FgIcYXBtKR6E"}'
```
  
  
**JavaScript**

```js
const res = await fetch("https://api.captchasonic.com/getTaskResult", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ apiKey: "sonic_xxx", taskId }),
});
const result = await res.json();
```
  
  
**Python**

```python
r = requests.post("https://api.captchasonic.com/getTaskResult",
                  json={"apiKey": "sonic_xxx", "taskId": task_id})
result = r.json()
```
