yCAPTCHAyCAPTCHA
API Reference

Verify a CAPTCHA token

Verifies a one-time token after the user completed the CAPTCHA challenge. This is the only endpoint your backend needs to call.

Must be called from your server — never from the browser.

POST
/api/v0/captcha/siteverify

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://ycaptcha.xyspg.moe/api/v0/captcha/siteverify" \  -H "Content-Type: application/json" \  -d '{    "token": "aB3dEfGhIjKlMnOpQrStUvWxYz0123456789AbCdEfGhIjKlMnOpQrStUvWx01",    "secretKey": "sk_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456"  }'

{
  "success": true
}

{
  "success": false,
  "error": "Missing token or secretKey"
}
Empty