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.
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.
curl https://api.solvepass.com/v1/tasks/task_01J8Q7K3 \
-H "Authorization: Bearer $SOLVEPASS_KEY"{
"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.
Authorization: Bearer sp_live_...API reference
Base URL: https://api.solvepass.com/v1
| Method | Path | Description |
|---|---|---|
| POST | /v1/tasks | Create a task. |
| GET | /v1/tasks | List recent tasks. |
| GET | /v1/tasks/:id | Get task status and solution. |
| POST | /v1/tasks/:id/cancel | Cancel a pending or queued task. |
| POST | /v1/tasks/:id/report | Report a rejected token for refund review. |
| GET | /v1/balance | Get balance, reserved, and available credits. |
| GET | /v1/me | Get the organization and key metadata. |
| GET | /v1/types | List 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.
curl -O https://solvepass.com/openapi.jsonSDKs
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.
npm install @solvepass/sdkpip install solvepassimport { 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);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.
| Type | Parameters | Output |
|---|---|---|
| hcaptcha | sitekey, pageurl, proxy?, useragent? | token |
| recaptcha_v2 | sitekey, pageurl, proxy?, useragent?, invisible?, enterprise? | token |
| recaptcha_v3 | sitekey, pageurl, action, min_score?, proxy?, useragent? | token |
| funcaptcha | sitekey, pageurl, surl?, blob?, proxy?, useragent? | token |
| cloudflare_turnstile | sitekey, pageurl, action?, cdata?, proxy?, useragent? | token |
| cloudflare_challenge | pageurl, 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.
{
"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.
{
"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.