# ReCaptchaV2Task

Solve this captcha type.

## Task type

`ReCaptchaV2Task`

## Sync or poll

Async — poll `/getTaskResult`

## Parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `type` | string | yes | `ReCaptchaV2Task` |
| `websiteURL` | string | yes | Public http(s) URL |
| `websiteKey` | string | yes | Site key |
| `enterprise` | bool | no | Default `false` |
| `isInvisible` | bool | no | Default `false` |
| `proxy` | string | no | Browser proxy |

## Minimal request

```json
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "ReCaptchaV2Task",
    "websiteURL": "https://www.example.com/register",
    "websiteKey": "SITE_KEY"
  }
}
```

## Success solution

```json
{
  "gRecaptchaResponse": "TOKEN",
  "userAgent": "...",
  "expiresInMs": 120000
}
```

## Typical failures

`ERROR_CAPTCHA_UNSOLVABLE`, `ERROR_BAD_REQUEST`, `ERROR_TASK_NOT_SUPPORTED`

Source: https://kaptra.ai/docs/task-types/recaptcha-v2
