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

# getToken

The getToken is used to solve a captcha without going through the task system.\
\
**Endpoint:** [https://api.snakecaptcha.com/getToken](https://api.hexcap.cc/getToken)

**Method:** POST

**Content type:** application/json

| Name      | Type   | Description           |
| --------- | ------ | --------------------- |
| clientKey | String | Your API key          |
| task      | Object | The captcha task info |

```text theme={null}
{
    "clientKey":"api key",
    "task": {
        "type":"RecaptchaV2Task",
        "websiteURL":"https://www.google.com/recaptcha/api2/demo",
        "websiteKey":"6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
    }
}
```

```text theme={null}
{"Result": "0cAF...", "TS": "1759684692536"}
{"Result": "Captcha failed to be solved", "TS": "1759684692536"}
```
