Eliam Antibot Eliam Antibot Gratuit · Sans pistage

Documentation API Eliam Antibot

Intégrez le widget client et la vérification serveur siteverify en quelques lignes.

1. Intégration HTML (Widget)

Le script injecte automatiquement le champ caché eliam-antibot-response dans votre formulaire.

<form method="POST" action="/login">
  <div class="eliam-antibot" data-sitekey="ab_pk_VOTRE_CLE" data-action="login"></div>
  <button type="submit">Connexion</button>
</form>
<script src="https://antibot.eliam.tech/sdk/v1/widget.js" async></script>

2. Vérification serveur (/api/v1/siteverify)

Ajoutez le paramètre optionnel phone (E.164) pour activer le bouclier anti-SMS pumping avant l'envoi d'un OTP.

curl -X POST https://antibot.eliam.tech/api/v1/siteverify \
  -H "Content-Type: application/json" \
  -d '{
    "secret": "ab_sk_VOTRE_SECRET",
    "response": "'$_POST['eliam-antibot-response']'",
    "action": "otp_send",
    "phone": "+22890000000"
  }'

Exemple de réponse JSON

{
  "success": true,
  "challenge_ts": "2026-12-01T10:30:00+00:00",
  "hostname": "app.exemple.tg",
  "action": "otp_send",
  "human_score": 95,
  "risk_score": 5,
  "verdict": "allow",
  "sms_guard": {
    "checked": true,
    "allowed": true,
    "country_code": "TG",
    "ip_remaining": 4,
    "phone_remaining": 2
  },
  "error_codes": []
}