POST /cloudflare endpoint solves a Cloudflare challenge in one of two modes: turnstile returns a Turnstile response token, and iuam returns a cf_clearance cookie with its matching User-Agent.
Request body
string
required
The resolution mode:
"turnstile" or "iuam".string
required
The target domain URL, for example
https://example.com.string
Required when
mode is "turnstile". The Cloudflare Turnstile site key.string
Optional authorization token. Required when the server was started with an
authToken environment variable.object
Optional proxy configuration.
number
Optional custom cache TTL in milliseconds for the IUAM clearance response.
Examples
- Turnstile
- IUAM
Responses
Turnstile mode
string
The solved Turnstile response token.
string
Time taken to solve the challenge, for example
"2.45s".IUAM mode
string
The extracted
cf_clearance cookie value.string
The
User-Agent string used when the cookie was issued. You must reuse this exact User-Agent on subsequent requests.string
Time taken to extract the cookie.
boolean
Whether the response was served from the in-memory TTL cache.