# AwsWafClassification

Recognize the AWS WAF visual grid captcha (`gridcaptcha`): pick the tiles that show the target object.

## Task type

`AwsWafClassification`

## Sync or poll

Async — poll `/getTaskResult`

## Parameters

| Field | Type | Required | Notes |
|---|---|---|---|
| `type` | string | yes | `AwsWafClassification` |
| `images` | string[] | yes | The 9 tiles from `/problem` `assets.images`, base64, in order. A single full 3×3 image is also accepted and split evenly |
| `question` | string | yes | `aws:grid:<target>`, e.g. `aws:grid:bag`; a bare `bag` works too |
| `websiteURL` | string | no | Accepted for CapSolver compatibility, not used |

Supported targets: `bag`, `bed`, `bucket`, `chair`, `clock`, `curtain`, `hat`.

## Minimal request

```json
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AwsWafClassification",
    "images": [
      "BASE64_TILE_0",
      "...",
      "BASE64_TILE_8"
    ],
    "question": "aws:grid:bag"
  }
}
```

## Success solution

```json
{
  "objects": [1, 2, 5, 6, 8]
}
```

## Typical failures

`ERROR_CAPTCHA_UNSOLVABLE`, `ERROR_BAD_REQUEST`, `ERROR_TASK_NOT_SUPPORTED`

## Notes

`objects` are 0–8 row-major indices, top-left is 0; submit them as the `/verify` `client_solution`. A target outside the supported list fails with `ERROR_CAPTCHA_UNSOLVABLE` and is not charged — fetch a new problem.

Source: https://kaptra.ai/docs/task-types/aws-waf-classification
