> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arjex.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create your first Arjex CAPTCHA task with the REST API, poll its status, and retrieve the hCaptcha solution token when the task completes.

Create an hCaptcha task through the Arjex REST API, then use its task ID to check progress and retrieve the solution token.

## Before you begin

You need an Arjex account with Captcha access, a Captcha API key, and the target page's hCaptcha sitekey and URL. The request also requires a proxy.

**1. Get your API key**

Sign in to [Arjex](https://arjex.team/), open your dashboard, and select the Captcha Service account to view its API key. If you do not see a Captcha account, contact [Arjex support](https://discord.gg/beSKXeSNTu).

**2. Create a task**

Replace the example URL, sitekey, proxy, and API key with your values. The response includes a `data.taskId` for the next request.

```bash theme={null}
curl -X POST "https://arjex.team/api/v1/captcha/tasks" \
  -H "x-captcha-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "hcaptcha",
    "siteUrl": "https://example.com",
    "sitekey": "YOUR_HCAPTCHA_SITEKEY",
    "proxy": "http://user:pass@host:port"
  }'
```

**3. Check the result**

Request the task with the ID returned by the create call. Repeat the request while `data.status` is `pending`. When the status is `success` or `captured`, read the token from `data.solution.token`.

```bash theme={null}
curl "https://arjex.team/api/v1/captcha/tasks/TASK_ID" \
  -H "x-captcha-key: YOUR_API_KEY"
```

> [!NOTE]
>
> A task that reaches `failed` is refunded automatically. See [Create Task](https://docs.arjex.team/captcha/tasks/create.md) and [Get Task](https://docs.arjex.team/captcha/tasks/get-by-id.md) for full request fields, responses, and errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.