Find a section & browse all pages
Quickstart
// issued sandbox key → valid request → confirmed result
1. Send a sandbox request
Get your issued sk_test_ key from API keys and set it as SOLVEGATE_KEY in your environment. The authentication reference explains the Bearer header and sandbox/live key distinction. These example fields are valid for sandbox testing; they do not identify a real widget.
curl https://api.solvegate.io/v1/solve \
-H "Authorization: Bearer $SOLVEGATE_KEY" \
-d gate=turnstile \
-d sitekey=sandbox-widget \
-d url=https://example.com{
"id": "slv_example",
"status": "solved",
"gate": "turnstile",
"token": "SANDBOX.example_sandbox",
"solve_ms": 5,
"expires_at": 1791504120,
"mode": "sandbox",
"meter": "sandbox",
"billed": false,
"error_code": null,
"error_message": null
}Check status, mode and billed using the solve object field reference. A sandbox token never clears a real gate. Use the Playground for the same workflow in your browser.
2. Move to a live result
Verify your email, configure credits or a prepaid pass, and create a live key. Replace the example sitekey and URL with those from your target. Use a unique idempotency key for each logical solve; retrieve the same ID when its status is pending, even after HTTP 200. Only apply a non-null token after status: "solved"; handle failed explicitly.
// the live demo lets you interact with widgets and verify returned tokens. The Playground sends API solve requests.
Ready to pour through the gate?
// free sandbox keys · no card required to start