Autional Autional
API Reference GitHub autional.com →

GET /internal/thirdparty/captcha/challenge

Generate CAPTCHA challenge data based on the specified provider type. PoW returns a random challenge code and difficulty value; Turnstile returns a Site Key for frontend initialization of the verification component and starting the human verification process.

Third-party Verification `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
provider query string No pow enum: `pow`, `turnstile` Verification provider type (pow / turnstile)
scope query string No default Application scope identifier, used to distinguish challenges for different business pages or scenarios
difficulty query integer No PoW challenge difficulty value; higher values increase computational difficulty (only valid for pow type)

Responses

StatusDescriptionSchema
200Challenge generated successfully, returns challenge ID, type, challenge data, and expiration timedto.DataResponse-captcha_Challenge
400Request parameter error (unsupported verification provider type)dto.SimpleResponse
429CAPTCHA challenge request too frequent, please retry laterdto.SimpleResponse
500Challenge generation service unavailabledto.SimpleResponse

Referenced Schemas

captcha.Challenge

FieldTypeRequiredExampleConstraintsDescription
data captcha.ChallengeData No
expires_at string No
id string No
site_key string No
type string No

captcha.ChallengeData

FieldTypeRequiredExampleConstraintsDescription
challenge string No
difficulty integer No

dto.DataResponse-captcha_Challenge

FieldTypeRequiredExampleConstraintsDescription
code integer No
data captcha.Challenge No
message string No
timestamp string No

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No