OTP & 2FA

Reliable, instant OTP codes for all Moroccan mobile networks.

Implement two-factor authentication (2FA) or phone verification in minutes. Our /verify API handles code generation, delivery, TTL and server-side validation.

Last updated: July 8, 2026

Direct OTP SMS Simulator

100% Direct Routing

Maroc Telecom / Orange / Inwi

9:41

En attente de la demande OTP...

Intégration API Verify

POST /v1/verify/send200 OK
// Node.js - Envoyer un code de validation OTP
const res = await fetch("https://api.envoisms.ma/v1/verify/send", {
  method: "POST",
  headers: {
    "Authorization": "Bearer ENV_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    to: "+212612-345678",
    brand: "EnvoiSMS",
    code_length: 4,
    expiry: 300 // Valable 5 minutes
  })
});
const data = await res.json();
console.log("Session OTP initialisée:", data.session_id);

OTP delivery under 4 seconds

Optimized routing with IAM, Orange and Inwi eliminates intermediaries, ensuring near-instant OTP reception critical for authentication flows.

One-call /verify API

One POST to send the code, one POST to validate it. TTL management, brute-force protection and +212 number normalisation are all handled server-side.

Sécurisez vos transactions dès aujourd'hui

Créez votre compte gratuitement et obtenez 5 MAD de crédit de test instantanés.

Get started free