> ## Documentation Index
> Fetch the complete documentation index at: https://hydrotuff-admin-mcp-fix-pages-3f076f6.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Task

> Submit an asynchronous captcha-solving task.

# Create Task

`POST /createTask`

Creates a new captcha-solving task. Returns a `task_id` for polling.

## Request Body

| Field  | Type   | Required | Description                          |
| ------ | ------ | -------- | ------------------------------------ |
| `type` | string | Yes      | Task type (see below)                |
| `task` | object | Yes      | Task parameters (see each task type) |
| `key`  | string | Yes      | Your API key                         |

Alternatively, `tasktype` can be used instead of `type`, and `apikey`/`clientKey` instead of `key`.

## Response

```json theme={null}
{ "status": "queued", "task_id": "1722000000000" }
```

## Task Types

| Task Type                   | Proxy Required | Description                     |
| --------------------------- | -------------- | ------------------------------- |
| `HCaptchaCaptchaToken`      | Yes            | Standard hCaptcha               |
| `HCaptchaEnterpriseToken`   | Yes            | hCaptcha Enterprise             |
| `TurnstileCaptcha`          | Yes            | Cloudflare Turnstile            |
| `TurnstileCaptchaProxyless` | No             | Cloudflare Turnstile (no proxy) |
| `CloudflareJsdCookie`       | Yes            | Cloudflare JSD Cookie           |
| `AWSWafToken`               | Yes            | AWS WAF                         |
| `AWSWafTokenProxyless`      | No             | AWS WAF (no proxy)              |
| `KasadaCtToken`             | Yes            | Kasada CT Token                 |
| `DataDomeTagsCookie`        | Yes            | DataDome Tags Cookie            |

## Common Task Parameters

| Parameter    | Type   | Description                                        |
| ------------ | ------ | -------------------------------------------------- |
| `siteurl`    | string | URL of the target page                             |
| `proxy`      | string | `http://host:port` or `http://user:pass@host:port` |
| `user_agent` | string | Browser user agent string                          |
| `sitekey`    | string | Captcha site key (hCaptcha, Turnstile)             |

## Error Responses

| Status | Code                   | Meaning                             |
| ------ | ---------------------- | ----------------------------------- |
| 400    | `Missing API key`      | No apikey header provided           |
| 400    | `Missing siteurl`      | siteurl is required                 |
| 400    | `Missing sitekey`      | sitekey required for this task type |
| 400    | `Missing proxy`        | proxy required for this task type   |
| 402    | `Insufficient balance` | Not enough balance to solve         |
| 403    | `Invalid API key`      | Unknown API key                     |
