Beta Token Turnstile API
POSThttps://api.acedata.cloud/captcha/token/turnstile

Submit a site key and page URL to complete a Cloudflare Turnstile challenge and return a usable token.

Request Headers

acceptstring
Specify the response format returned by the server.
Please select
authorizationstring
Bearer token

Request Body

website_keystringRequired parameter
The Cloudflare Turnstile sitekey of the target website, used to identify the captcha instance to be recognized.
website_urlstringRequired parameter
The target website URL with Cloudflare Turnstile captcha deployed.
asyncboolean
When true, the server creates a managed asynchronous task and returns HTTP 201 with task_id and trace_id. The server continues processing even if the client disconnects or never polls. POST /captcha/tasks is an optional status query that does not drive task processing; the first ready-result read keeps the existing one-time settlement behavior. A successful task is charged once when the client first retrieves the ready result, matching the existing behavior; a task that is not ready by the 120-second deadline ends as HTTP 504 timeout and is not charged.
cdatastring
Optional parameter, only required when the target website has set custom cData for the Turnstile component.
actionstring
Optional parameter, only required when the target website has set a custom action for the Turnstile component.

Response

Integration guide

Shell

Python

JavaScript

Java

Go

PHP

Kind reminder: For streaming requests, the above code may not be fully applicable. Please refer to the integration documentation for changes.

Cloudflare Turnstile Captcha Service
Allow Use General Balance

When 'Allow General Balance' is enabled, the general balance is used automatically if an app's balance is insufficient.