DocumentationAPI v1
Captcha Token•Token & Cookie Bypass~1.9s avg98.8% accuracy$1.20 / 1k

AWS WAF Captcha & JS Challenge Token Solver

POST/api/v1/createTask

Resolve Amazon AWS WAF JavaScript interstitial challenges (challenge.js) and full Captcha challenges (captcha.js) to receive a session-ready aws-waf-token cookie.

Want to classify 3×3 AWS WAF image grids or point-click paths via Base64 without proxies ($0.50 / 1k)?View AWS WAF Classification (Recognition) →
Live AWS WAF Challenge Preview

Automated AWS WAF token & challenge resolution returning a ready aws-waf-token.

AWS WAF • 3×3 Classification

Supported Task Types & Modes

Task TypeModeRecommended ForRate / 1k
AntiAwsWafTaskProxylessProxyless TokenAWS WAF challenge.js & captcha.js returning aws-waf-token cookie (alias: AwsWafTaskProxyless)$1.20
AntiAwsWafTaskSticky ProxyAWS WAF targets strictly binding aws-waf-token to client egress IP (alias: AwsWafTask)$1.25
How to Locate Required Parameters
  1. When AWS WAF blocks a request, inspect the HTTP 202/405 HTML response body for window.gokuProps.
  2. Extract key (awsKey), iv (awsIv), and context (awsContext) directly from the gokuProps JSON object.
  3. Locate the challenge.js script URL (e.g. https://xxxx.edge.sdk.awswaf.com/.../challenge.js) as awsChallengeJS.
  4. If using AwsWafClassification, pass the base64 grid image(s) and the prompt question (e.g. "aws:grid:chair").

Request Parameters

ParameterTypeRequiredDescription
task.typestringRequired
Use AwsWafTaskProxyless, AwsWafTask, or AwsWafClassification.
Example: "AwsWafTaskProxyless"
task.websiteURLstringRequired
Exact URL that returned the AWS WAF challenge page.
Example: "https://example.com/protected"
task.awsKeystringOptional
Value of gokuProps.key from the WAF interstitial HTML.
Example: "AQIDAHjcYu/GjX..."
task.awsIvstringOptional
Value of gokuProps.iv from the WAF interstitial HTML.
Example: "1708312345678"
task.awsContextstringOptional
Value of gokuProps.context from the WAF interstitial HTML.
Example: "v1_context_blob..."
task.awsChallengeJSstringOptional
URL of the AWS WAF challenge.js script tag.
Example: "https://...awswaf.com/.../challenge.js"
task.imagesstring[]Optional
Required only for AwsWafClassification (array of base64 PNG/JPEG images).
Example: ["base64_grid_img"]
task.questionstringOptional
Required only for AwsWafClassification prompt label.
Example: "aws:grid:chair"

Request Examples

Create & Poll Task
curl -X POST https://api.byecap.org/api/v1/createTask \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "task": {
      "type": "AwsWafTaskProxyless",
      "websiteURL": "https://example.com/protected",
      "awsKey": "AQIDAHjcYu/GjX...",
      "awsIv": "1708312345678",
      "awsContext": "v1_example_context_blob",
      "awsChallengeJS": "https://abc.edge.sdk.awswaf.com/abc/challenge.js"
    }
  }'

Response Format

200 OK — Ready Solution
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "cookie": "f91d8c2a-7b0e-4e11-9c22-example-waf-token:AQoA..."
  }
}
Response FieldTypeDescription
solution.cookiestringThe aws-waf-token cookie value to set on the target domain.
solution.objectsnumber[]Returned for AwsWafClassification: 0-indexed tile numbers to click (0–8).

Setting the aws-waf-token Cookie in Playwright

Browser / Client Integration
await context.addCookies([
  {
    name: "aws-waf-token",
    value: solved.solution.cookie,
    domain: ".example.com",
    path: "/",
    httpOnly: false,
    secure: true,
  },
]);
await page.reload({ waitUntil: "networkidle" });

Error Codes & Troubleshooting

Error CodeCommon CauseResolution
ERROR_INVALID_WAF_PARAMSMissing or truncated awsContext / awsChallengeJS.Extract the full base64 strings from window.gokuProps without URL encoding.
ERROR_IP_MISMATCHTarget binds aws-waf-token to the solving IP address.Switch from AwsWafTaskProxyless to AwsWafTask and pass your session proxy.
Best Practices & Billing Protection
  • Reuse the returned aws-waf-token cookie across requests in the same session—AWS WAF tokens typically remain valid for 5–30 minutes.
  • Keep your User-Agent and TLS fingerprint consistent between solving and replaying the cookie.
  • All failed or timed-out WAF tasks are refunded 100% automatically.
Need custom concurrency or a dedicated model? View Pricing & Enterprise Plans →