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

Juga tersedia sebagai `GET /getTaskResult` dan `GET /getResponse`.

## Isi permintaan

| Field | Type | Description |
|---|---|---|
| `apiKey` | `string` | API key Anda dari [dashboard](https://captchasonic.com/app). |
| `taskId` | `string` | `taskId` yang dikembalikan oleh [`createTask`](/docs/start/create-task). |

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

## Respons

Selama task masih diselesaikan, Anda mendapatkan task dengan `status` saat ini:

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

Terus lakukan polling setiap 1–2 detik. Ketika task selesai, respons berisi solusi untuk tipe captcha tersebut; lihat halaman khusus captcha untuk field yang tepat.

## Contoh

  
**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()
```
