Executes one task synchronously. The request remains open until the solver returns a solution or the 30-second execution limit is reached.
Headers
| Header | Required | Value |
|---|---|---|
X-Api-Key |
Yes | Your uncaptcha.io API key |
Content-Type |
Yes | application/json |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
task_type |
string | Yes | turnstile, waf, or wafauto |
task_data |
object | Yes | Task-specific input described in the task pages |
{
"task_type": "turnstile",
"task_data": {
"url": "https://example.com/",
"sitekey": "0x4AAAAAABs37s-ih7Jepz0J",
"proxy": "http://user:[email protected]:8080"
}
}Success
{
"success": true,
"data": {
"solution": {
"token": "0.AuR5g8kP..."
}
}
}The contents of data.solution depend on task_type:
| Task | Primary result |
|---|---|
turnstile |
token |
waf |
clearance, headers, and first-request data |
wafauto |
Clearance data and the fetched response |
Failure
{
"success": false,
"message": "task timed out"
}See Errors and billing for all expected statuses and retry guidance.