SMS verification API
SMS verification that proves your users are human
Send and verify codes in a few lines of code. When users verify, they earn humanity credits—so you get real 2FA and proof of humanity in one API.
A better way to verify
Like Twilio Verify, MeCaptcha Verify offers a turnkey API: send a code, verify it, done. In addition, every successful verification earns your users humanity credits in the MeCaptcha app—so you get 2FA and a clear, user-friendly story: verification as proof of humanity.
npm install @mecaptcha/verify-sdk
const client = new MeCaptchaClient('mec_live_...');
await client.sendCode('+15551234567');
await client.verifyCode('+15551234567', '123456');
What you get
Everything you need for SMS-based two-factor authentication, with one differentiator: humanity credits.
Turnkey SMS verification
Send and verify one-time codes via a simple API. Add two-factor authentication to your app without building SMS infrastructure.
Humanity credits
When users verify their number, they earn MeCaptcha humanity credits. Verification becomes proof of humanity, not just a one-time check.
Pre-built UI or headless
Use the React component with MeCaptcha branding, or the headless SDK to build your own flow. Same API either way.
Minimal integration
A few lines of code to send a code and verify it. No complex setup—get credentials, install the SDK, and go.
Mobile-ready & privacy-first
Designed for web and mobile. No tracking beyond what’s needed for verification.
Simple integration
Similar to Twilio Verify, you need minimal code: get credentials, send a token, check the result.
- Get your API key (contact us or use the demo key to try it).
- Install the SDK: npm install @mecaptcha/verify-sdk
- Send a code to a phone number with sendCode().
- Verify the code with verifyCode().
const client = new MeCaptchaClient('mec_live_...');
// Send code
await client.sendCode('+15551234567');
// User enters code; then verify
const result = await client.verifyCode('+15551234567', '123456');
// result.creditsAwarded, result.hasMeCaptcha, etc.Pre-built UI: @mecaptcha/verify-react — or use the headless SDK and design your own flow.
Why choose MeCaptcha Verify?
- Like Twilio Verify: turnkey SMS verification and 2FA with a simple API.
- Humanity credits: every verification can earn your users credits in the MeCaptcha app—verification as proof of humanity.
- Few lines of code: send a code, verify it. No complex setup.
- Pre-built or custom UI: drop in the React component or use the headless SDK.