Quick Start

Our API follows a simple task-based pattern. You create a solving task, poll for the result, and receive the token. All requests are sent to a single endpoint with different action parameters.

Base URL: https://rawcode.cc/api/api.php

Example Request

curl -X POST https://rawcode.cc/api/api.php \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
      "type": "TurnstileTaskProxyless",
      "websiteURL": "https://example.com",
      "websiteKey": "0x4AAAAAAA..."
    }
  }'

Authentication

All API requests require authentication via the Authorization: Bearer header. You can generate your API key from the Account page after subscribing to the WAF Bypass plan.

HEADER
Authorization: Bearer YOUR_API_KEY

Keys are tied to your account. Keep them secure and do not share them publicly.

Create Task

Submit a new solving task by sending a POST request to the API endpoint. The response contains a task ID that you use to poll for results.

POST /api/api.php?action=create_task

Request Body

{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "TurnstileTaskProxyless",
    "websiteURL": "https://example.com/login",
    "websiteKey": "0x4AAAAAAAxxxxxxxxxxxx",
    "metadata": {
      "action": "managed"
    }
  }
}

Task Types

TypeProvider
TurnstileTaskProxylessCloudflare Turnstile
RecaptchaV2TaskProxylessGoogle reCAPTCHA v2
AmazonCaptchaTaskProxylessAmazon Captcha

Response

{
  "success": true,
  "taskId": "7f3a1b2c-4d5e-6f7a-8b9c-0d1e2f3a4b5c"
}

Get Result

Poll for the task result using the task ID returned from create_task. Results are typically available within 5-7 seconds.

GET /api/api.php?action=get_task_result&task_id={taskId}

Response (Ready)

{
  "success": true,
  "status": "ready",
  "solution": {
    "token": "0.xxxxxxx..."
  },
  "cost": 0.001,
  "solveTime": 5230
}

Response (Processing)

{
  "success": true,
  "status": "processing"
}

Pricing & Limits

$25
/ month
5-7s
average solve time
Free
failed solves
FeatureDetails
Unlimited solvesNo daily limit
Solve time5-7 seconds average
Failed solvesFree of charge
ProvidersTurnstile, reCAPTCHA, Amazon Captcha

Error Codes

CodeHTTPDescription
ERROR_INVALID_KEY401API key is missing or invalid
ERROR_NO_ACTIVE_PLAN403No active WAF Bypass subscription
ERROR_INVALID_TASK_TYPE400Task type is not recognized
ERROR_MISSING_PARAMS400Required parameters are missing
ERROR_TASK_NOT_FOUND404Task ID does not exist
ERROR_INTERNAL500Internal server error. Retry the request