# Get reCAPTCHA and Turnstile tokens with Cap.Guru

> Quick overview This workflow generates reCAPTCHA v2/v3 or Cloudflare Turnstile solution tokens by creating a task in Cap.Guru via its API, polling for completion, and returning the solved token for use in protected form submissions. How it works 1. Runs manually with preset test inputs or is triggered by another workflow with type, sitekey, pageurl, and optional action. 2. Validates the inputs and builds the correct Cap.Guru API payload for reCAPTCHA v2, reCAPTCHA v3, or Cloudflare Turnstile. 3. Sends the task to the Cap.Guru in.php endpoint and extracts the returned task ID. 4. Waits 10 seconds and then polls the Cap.Guru res.php endpoint for the solution status. 5. Repeats the poll every 10 seconds until a token is ready or a 3-minute timeout/error occurs. 6. Returns the solved token (and the task ID) to the calling workflow or the manual test run. Setup 1. Create a Cap.Guru account, add funds if needed, and obtain an API key. 2. In n8n, create an HTTP Query Auth credential that send

- **Domain**: `n8n-workflow-22733.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/22733
- Page (HTML): https://agenstry.com/agents/n8n-workflow-22733.n8n.io
- Documentation: https://n8n.io/workflows/22733
