Skip to content
solvepass
v1

Documentation

The Solvepass API is asynchronous. Create a task, then poll it or receive a signed webhook. All requests use JSON and bearer authentication.

Quickstart

Create a task with the challenge type, sitekey, and page URL. The response contains a task ID and the reserved price.

create-task.shbash
curl -X POST https://api.solvepass.com/v1/tasks \
  -H "Authorization: Bearer $SOLVEPASS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "recaptcha_v2",
    "sitekey": "6Lc...",
    "pageurl": "https://example.com/login"
  }'

Poll the task until it is completed or failed. A completed task includes the solution.

get-task.shbash
curl https://api.solvepass.com/v1/tasks/task_01J8Q7K3 \
  -H "Authorization: Bearer $SOLVEPASS_KEY"
response.jsonjson
{
  "id": "task_01J8Q7K3",
  "type": "recaptcha_v2",
  "status": "completed",
  "solution": {
    "token": "03AGdBq..."
  },
  "duration_ms": 1840,
  "price": {
    "usd": "0.0008",
    "credits": "0.8"
  }
}

Authentication

Pass a live or test key as a bearer token. Keys are shown once and stored as a hash. Test keys return mock solutions and never charge credits.

headershttp
Authorization: Bearer sp_live_...

API reference

Base URL: https://api.solvepass.com/v1

Solvepass API endpoints
MethodPathDescription
POST/v1/tasksCreate a task.
GET/v1/tasksList recent tasks.
GET/v1/tasks/:idGet task status and solution.
POST/v1/tasks/:id/cancelCancel a pending or queued task.
POST/v1/tasks/:id/reportReport a rejected token for refund review.
GET/v1/balanceGet balance, reserved, and available credits.
GET/v1/meGet the organization and key metadata.
GET/v1/typesList supported types and prices.

OpenAPI

The OpenAPI 3.1 document covers every public endpoint, authentication, request bodies, responses, and problem details. Import it into Postman, Insomnia, or a generated client.

download-openapi.shbash
curl -O https://solvepass.com/openapi.json

Open the raw OpenAPI document.

SDKs

Install the TypeScript client with npm or the Python client with pip. Both are zero-dependency and cover task creation, polling, reports, balance, and key metadata.

terminalbash
npm install @solvepass/sdk
terminalbash
pip install solvepass
solve.tsts
import { SolvepassClient } from "@solvepass/sdk";

const client = new SolvepassClient({
  apiKey: process.env.SOLVEPASS_API_KEY!,
  baseUrl: "https://api.solvepass.com",
});

const task = await client.createTask({
  type: "hcaptcha",
  sitekey: "10000000-ffff-ffff-ffff-000000000001",
  pageurl: "https://example.com",
});

const finished = await client.waitForTask(task.id);
solve.pypython
import os

from solvepass import SolvepassClient

client = SolvepassClient(os.environ["SOLVEPASS_API_KEY"])
task = client.create_task({
    "type": "hcaptcha",
    "sitekey": "10000000-ffff-ffff-ffff-000000000001",
    "pageurl": "https://example.com",
})
finished = client.wait_for_task(task["id"])

Challenge types

The task shape is shared. Type-specific fields are validated before a task is queued.

Supported challenge types and parameters
TypeParametersOutput
hcaptchasitekey, pageurl, proxy?, useragent?token
recaptcha_v2sitekey, pageurl, proxy?, useragent?, invisible?, enterprise?token
recaptcha_v3sitekey, pageurl, action, min_score?, proxy?, useragent?token
funcaptchasitekey, pageurl, surl?, blob?, proxy?, useragent?token
cloudflare_turnstilesitekey, pageurl, action?, cdata?, proxy?, useragent?token
cloudflare_challengepageurl, proxy, useragent?cf_clearance cookies

Webhooks

Register endpoints in the dashboard. Events are signed with HMAC-SHA256 over the timestamp and raw body. Deliveries retry with exponential backoff.

Events: task.completed, task.failed, task.expired, task.cancelled.

task.completed.jsonjson
{
  "event": "task.completed",
  "task": {
    "id": "task_01J8Q7K3",
    "type": "recaptcha_v2",
    "status": "completed",
    "solution": {
      "token": "03AGdBq..."
    }
  }
}

Errors

Errors use RFC 9457 problem details. The response includes a stable code and a request ID for support.

error.jsonjson
{
  "type": "https://solvepass.com/errors/insufficient-credits",
  "title": "Insufficient credits",
  "status": 402,
  "code": "insufficient_credits",
  "detail": "Available balance is 0.4 credits; this task costs 0.8.",
  "request_id": "req_..."
}

Codes: invalid_request, unsupported_type, insufficient_credits, rate_limited, concurrency_limit, task_not_found, task_expired, solver_unavailable, proxy_error, captcha_rejected.

Rate limits

Limits apply per key and per organization. Responses include X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and Retry-After on 429.

Cloudflare

Turnstile is a widget and returns a token. Challenge is the interstitial page and returns cf_clearance cookies plus a user agent. Clearance is bound to the proxy IP and user agent, so reuse both when you replay the request.

Challenge tasks require a proxy. Do not send a different IP or user agent than the one used for the solve.

Use a sticky proxy for both the solve and the replay. For Challenge, keep the same egress IP, user agent, and browser/TLS profile; do not rotate the proxy between steps. For Turnstile, a proxy is optional, but use one when the target checks IP reputation or validates the token with remoteip, and submit from the same proxy if you do.

Proxy URLs may use http://, https://, socks5://, or socks5h://. A returned token or clearance still has to be accepted by the target; test the target response, not just the task status.