Castle.io Solver

Updates & Changelog

The ultimate API solution for generating valid Castle.io tokens for X (Twitter) automation. High throughput, low latency, and seamless integration for automated workflows.

Lightning Fast
Generate tokens in milliseconds with our optimized solver engine.
High Success Rate
Optimized for maximum validity rates with intelligent fingerprint management.
Developer Ready
Simple, well-documented REST API that integrates into any workflow.

Transparent Pricing

Starter
$10/mo
  • 5 req/sec
  • 2,000 req/hour
  • Priority Support
Basic
$18/mo
  • 10 req/sec
  • 5,000 req/hour
  • Priority Support
Scale
$50/mo
  • 40 req/sec
  • 30,000 req/hour
  • Priority Support
Enterprise
$80/mo
  • 80 req/sec
  • 70,000 req/hour
  • Priority Support

Documentation

Available Endpoints

GET /health System status & metrics
POST /generate-token Generate castle token for X/Twitter

Request Parameters

ParameterTypeRequiredDescription
cuidstringYes32-char hex. Must be unique/random per session. Set as __cuid cookie.
userAgentstringYesBrowser UA. Chrome 140+ recommended.
countrystringNoISO Country Code (e.g. US, GB). Default: US

Generate CUID

const cuid = [...Array(32)].map(() => 
  Math.floor(Math.random() * 16).toString(16)).join('');

Example Request / Response

curl -X POST https://castle.botwitter.com/generate-token \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{ 
    "cuid": "169c90ba59a6f01cc46e69d2669e080b",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)...",
    "country": "US"
  }'

// Response:
{ "success": true, "token": "eyJhbG...", "cuid": "169c90ba..." }

Get Support

Need a custom enterprise plan or have technical questions?