> For the complete documentation index, see [llms.txt](https://docs.hmcaptcha.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hmcaptcha.com/other/worker_cash-usd0.6.md).

# WORKER\_CASH $0.6

## Create task

<mark style="color:green;">`POST`</mark> `https://hmcaptcha.com/Recognition`

**1.WORKER CASH WEB**

&#x20;    **- Hình lớn:**

<img src="https://486404770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZfSw37qFaqBImNsbyjFj%2Fuploads%2Ff0GePdpfRIpLV3UEjtrs%2Fworker_cash_big.png?alt=media&amp;token=02436e93-914a-4aaf-9183-21ce11af99f0" alt="Hình lớn" data-size="original">

&#x20;    **- Hình nhỏ:**

<img src="https://486404770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZfSw37qFaqBImNsbyjFj%2Fuploads%2FLTf1mulwzcyWWXvZ8AXI%2Fworker_cash_small.png?alt=media&amp;token=0a2d41dd-93d1-486d-ba01-59a36b7a525f" alt="Hình nhỏ" data-size="original">

**Example** [`https://hmcaptcha.com/recognition`](https://hmcaptcha.com/recognition)

`{`\
&#x20;    `"Apikey": "YOUR APIKEY",`\
&#x20;    `"Type": "WORKER_CASH_WEB",`\
&#x20;    `"base64_image1": "base64 của captcha chính (hình lớn) lấy trong thẻ <img>",`\
&#x20;    `"base64_image2": "base64 của các hình yêu cầu (hình nhỏ) lấy trong thẻ <img>"`\
`}`

**2.WORKER CASH APP**

<img src="https://486404770-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZfSw37qFaqBImNsbyjFj%2Fuploads%2FZA1tVGKH2k98x1JGSSDF%2Fworker_cash.png?alt=media&amp;token=6c7d19c9-498c-42ad-841d-6cf321e3eac7" alt="" data-size="original">

**Example** [`https://hmcaptcha.com/recognition`](https://hmcaptcha.com/recognition)

`{`\
&#x20;    `"Apikey": "YOUR APIKEY",`\
&#x20;    `"Type": "WORKER_CASH_APP",`\
&#x20;    `"Image": "Image as base64 encoded"`\
`}`

#### Query Parameters

| Name | Type | Description                                                                                                                                       |
| ---- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| wait | Bool | If the 'wait=1' parameter is added to the URL, the result will return immediately after the captcha is solved without needing to call 'getResult' |

#### Headers

| Name         | Type   | Description      |
| ------------ | ------ | ---------------- |
| Content-Type | String | application/json |

#### Request Body

| Name                                             | Type   | Description                                                                |
| ------------------------------------------------ | ------ | -------------------------------------------------------------------------- |
| Apikey<mark style="color:red;">\*</mark>         | String | The apikey or subscription key                                             |
| Type<mark style="color:red;">\*</mark>           | String | <p><code>WORKER\_CASH\_WEB</code></p><p><code>WORKER\_CASH\_APP</code></p> |
| Image                                            | String | (APP) Image encoded as base64                                              |
| URL\_Image                                       | String | (APP) Required if `Image` is missing.                                      |
| base64\_image1<mark style="color:red;">\*</mark> | String | (WEB) Image captcha encoded as base64                                      |
| base64\_image2<mark style="color:red;">\*</mark> | String | (WEB) Image queue encoded as base64                                        |

{% tabs %}
{% tab title="200: OK OK" %}

```json
{
    "Code": 0,
    "TaskId": 123456,
    "Message": "OK"
}
```

{% endtab %}

{% tab title="200: OK FAILED" %}

```json
{
    "Code": 1,
    "Message": "Error description"
}
```

{% endtab %}
{% endtabs %}

## Get result

<mark style="color:blue;">`GET`</mark> `https://hmcaptcha.com/getResult?apikey={your_apikey}&taskid={taskid}`

**Example** [`https://hmcaptcha.com/getResult?apikey=admingoiZ4dxa1GNHH!Rt0He8KEnrfYJCz3JE&taskid=12345`](https://hmcaptcha.com/getResult?apikey=admingoiZ4dxa1GNHH!Rt0He8KEnrfYJCz3JE\&taskid=12345)

#### Query Parameters

| Name                                     | Type   | Description                          |
| ---------------------------------------- | ------ | ------------------------------------ |
| apikey<mark style="color:red;">\*</mark> | String | The user apikey. Get it in dashboard |
| taskid<mark style="color:red;">\*</mark> | String | The task id from Create Task step    |

{% tabs %}
{% tab title="200: OK PENDING - repeat the request until Status = SUCCESS or ERROR" %}

```json
{
    "Code": 0,
    "Status": "PENDING",
    "Data": null
}
```

{% endtab %}

{% tab title="200: OK PROCESSING - repeat the request until Status = SUCCESS or ERROR" %}

```json
{
    "Code": 0,
    "Status": "PROCESSING",
    "Data": null
}
```

{% endtab %}

{% tab title="200: OK SUCCESS (WEB + APP)" %}

```json
{
    "Code": 0,
    "Status": "SUCCESS",
    "Data": {
            "list_point": [[20, 219], [96, 88], [200, 200]] // [(x1,y1), (x2,y2), (x3,y3)]
        }
}
```

{% endtab %}

{% tab title="200: OK ERROR" %}

```json
{
    "Code": 0,
    "Status": "ERROR",
    "Message": "Error message detail"
    "Data": null
}
```

{% endtab %}
{% endtabs %}
