No codes on your side
Codes are kept as a keyed hash and never returned by the API or included in webhooks.
One call sends a one-time code by SMS, another checks what your user typed. You never generate, store or see the code.
Pass the phone number and your app name. We generate the code and send it on an OTP queue.
Show your own input screen. Resend is allowed after a cool-down; the old code stops working.
valid is true exactly once. Wrong codes use attempts; too many locks the verification.
Codes are kept as a keyed hash and never returned by the API or included in webhooks.
Verification SMS use their own queue per route, so a marketing backlog never delays a login code.
Set code length and lifetime; resends wait for next_resend_at and are limited per verification.
Attempt locks, per-number hourly limits and per-number SMS limits slow down SMS pumping.
Use the default text with your app name, or an approved template with {code} and {minutes}.
Get a signed webhook when a user completes verification — the code itself is never included.
curl -X POST https://api.lemsg.com/v1/verifications \
-H "Authorization: Bearer $LEMSG_API_KEY" \
-H "Idempotency-Key: signup-7f3a9c" \
-H "Content-Type: application/json" \
-d '{"to": "+919812345678", "app_name": "Acme", "code_length": 6, "ttl_seconds": 300}'
# 201 Created
# { "verification_id": "vrf_8K2m...", "status": "pending",
# "attempts_remaining": 5, "next_resend_at": "...", ... }Each code send is billed as one ordinary OTP message; checks are free.
Use Verify when you would rather not generate, store and compare codes yourself. If you already have your own OTP logic, send the code with the Messages API instead.
No. Only a successful check marks a verification as verified. A verified number proves the user controlled that number at that moment; it says nothing about their identity.
Each SMS that carries a code is billed at your OTP price for that country, per segment. Creating, checking and cancelling verifications is not charged.
Yes. Send an Idempotency-Key with the check: a retry returns the first answer instead of using another attempt.
Send one message per call, get a message ID back right away, and follow every status change by API or signed webhooks.
Learn moreOne OTP to the number, then the list of bank accounts held under it: bank name, masked account number and account type. No paperwork, no document upload.
Learn moreUpload a list, schedule it in your customers’ time zone and set a budget. Campaigns pause before they overspend and respect local promotional hours.
Learn moreAlready running an SMPP client? Bind to smpp.lemsg.com and send with submit_sm. Billing, opt-outs and template rules are the same as for the REST API.
Learn moreCreate an account, top up and send — pay only for what you use.