Introduction / Cloudflare Turnstile
Cloudflare Turnstileactive
POSThttps://api.solucaptcha.com/createTask
Solve Cloudflare Turnstile and receive the widget response token.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
clientKey | string | Yes | Your private API key. |
task.type | string | Yes | Must be turnstile. |
task.websiteURL | string | Yes | URL of the page containing the widget. |
task.websiteKey | string | Yes | Widget sitekey (data-sitekey). |
task.useragent | string | No | Chrome user-agent to use. |
Example
curl --request POST \
--url https://api.solucaptcha.com/createTask \
--header "Content-Type: application/json" \
--data '{ "clientKey": "YOUR_API_KEY", "task": { "type": "turnstile", "websiteURL": "https://example.com/", "websiteKey": "0x4AAAAAAA..." } }'
Result
{ "errorId": 0, "status": "completed", "solution": { "value": "0.AbCdEfGhIjK...", "token": "0.AbCdEfGhIjK..." } }