API Documentation

Verify a challenge token server-side. Base URL https://capguard.ru.

POST /api/v1/captcha/challenge/verify/

Validate a token issued to the client widget. Returns a risk score and a recommended action.

# Request
curl -X POST https://capguard.ru/api/v1/captcha/challenge/verify/ \
  -H "Authorization: Bearer $CAPGUARD_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token":"cg_xxx","remoteip":"203.0.113.7"}'
# Response 200
{ "success": true, "score": 0.92, "action": "allow", "ts": 1782596400 }

Parameters

FieldTypeDescription
tokenstringToken from the client widget. Required.
remoteipstringEnd-user IP. Optional, improves scoring.

SDKs

JS, Python, Go, PHP — get an API key to access the SDK downloads.