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

`GET /getTaskResult`와 `GET /getResponse`로도 사용할 수 있습니다.

## 요청 본문

| 필드 | 타입 | 설명 |
|---|---|---|
| `apiKey` | `string` | [대시보드](https://captchasonic.com/app)에서 발급받은 API 키입니다. |
| `taskId` | `string` | [`createTask`](/docs/start/create-task)가 반환한 `taskId`입니다. |

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

## 응답

작업이 아직 해결 중이면 현재 `status`와 함께 작업 정보가 반환됩니다:

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

1–2초마다 계속 폴링하세요. 작업이 끝나면 응답에 해당 캡차 유형의 해답이 담깁니다. 정확한 필드는 캡차별 페이지를 참고하세요.

## 예제

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