Quick overview
This workflow exposes a POST webhook that accepts base64 CAPTCHA images and uses the CaptchaSonic community node to solve multiple CAPTCHA types (OCR, reCAPTCHA v2, AWS WAF, TikTok, Binance, and more), returning a standardized JSON response.
How it works
- Receives a POST request on the
captchasonic-solve webhook containing a JSON body with a type and required fields like image (base64) and sometimes question.
- Validates the request payload, checks required fields for the requested CAPTCHA type, and routes the request to the matching solver.
- Sends the image challenge to CaptchaSonic using the appropriate recognition operation for the selected type.
- Normalizes the CaptchaSonic result into a consistent JSON structure with
success, type, solution, and a solvedAt timestamp.
- Returns the formatted solution to the original webhook caller, or responds with HTTP 400 and an error message if validation fails.
Setup
- Self-host n8n and install the
n8n-nodes-captchasonic community node.
- Create and select a CaptchaSonic API credential (API key from https://my.captchasonic.com) for the CaptchaSonic nodes.
- Activate the workflow, copy the production webhook URL for
captchasonic-solve, and configure your client to POST JSON with type plus the required fields (including a base64 image and optional question depending on type).
Requirements
Customization
- • Add new CaptchaSonic solver branches to the Switch node for additional CAPTCHA types
- • Modify the Format CAPTCHA Solution code node to change the JSON response structure
- • Adjust validation rules in the Validate CAPTCHA Request code node to add or remove required fields
Additional info
Supported CAPTCHA types: imagetotext, recaptchav2, popularcaptcha, awswaf, blsocr, tiktok, binance, visionengine. Send a POST request with {"type": "imagetotext", "image": "<base64>"} to the webhook URL. Full API docs at https://docs.captchasonic.com