Перейти к основному содержанию
POST
/
captcha
/
token
/
hcaptcha
Token Hcaptcha
curl --request POST \
  --url https://api.acedata.cloud/captcha/token/hcaptcha \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "website_key": "a5f74b19-9e45-40e0-b45d-47ff91b7a6c2",
  "website_url": "https://accounts.hcaptcha.com/demo"
}
'
{
  "token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1Ni......"
}

Авторизации

Authorization
string
header
обязательно

Заголовки

accept
enum<string>

Specifies the format of the response from the server.

Доступные опции:
application/json

Тело

application/json
website_key
string
обязательно

The website key identifier in recaptcha.

Пример:

"a5f74b19-9e45-40e0-b45d-47ff91b7a6c2"

website_url
string
обязательно

URL of the website where the recaptcha is located.

Пример:

"https://accounts.hcaptcha.com/demo"

Ответ

OK, the request is successful.

token
string

Verification result.