> ## 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.

# API Workflow

> End-to-end HydroSolve workflow.

# API Workflow

## Overview

```text theme={null}
createTask → getTaskResult (poll) → use token
```

## Step 1: Create Task

```bash theme={null}
curl -X POST https://api.hydrosolves.gay/createTask \
  -H "Content-Type: application/json" \
  -H "apikey: hydrosolves-xxxxxxxx" \
  -d '{
    "type": "HCaptchaCaptchaToken",
    "task": {
      "sitekey": "10000000-ffff-ffff-ffff-000000000001",
      "siteurl": "https://example.com",
      "proxy": "http://user:pass@host:port",
      "user_agent": "Mozilla/5.0 ..."
    }
  }'
```

## Step 2: Poll for Result

```bash theme={null}
curl "https://api.hydrosolves.gay/getTaskResult?taskid=1722000000000&apikey=hydrosolves-xxxxxxxx"
```

Keep polling until `status` is `solved` or `failed`.

## Step 3: Use the Token

The `token` field in the solved response contains the captcha token or cookie. Inject it into your request to the target site.

## Polling Tips

* Poll every 1-3 seconds
* Most tasks complete in 10-30 seconds
* DataDome completes in under 1 second
* Results expire after 5 minutes
