Keep credentials on the server
Create an application and API key in the dashboard. Call OTP Wire from your backend and never place privileged keys in browser JavaScript or mobile bundles.
Build around three clear actions: send a code, verify an attempt, and handle a resend. OTP Wire brings WhatsApp and email into one application-scoped API.
Create an application and API key in the dashboard. Call OTP Wire from your backend and never place privileged keys in browser JavaScript or mobile bundles.
Store the request ID with your local session. Verify the code before granting access and use the documented resend operation rather than inventing a parallel request flow.
Review OTP logs and configure webhooks for your application. Treat provider events and successful code verification as separate operational signals.
Create an application, configure a channel, and connect from your backend. Review the API reference for complete request and response details.
curl -X POST 'https://api.otpwire.com/api/sdk/v1/sendOTP' \
-H 'X-API-Key: YOUR_SERVER_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"channel": "email",
"recipient": "[email protected]",
"purpose": "login",
"number_of_digits": 6,
"otp_format": "numeric",
"expiry_seconds": 300,
"locale": "en"
}'Bring WhatsApp and email verification into your product. We’ll help you find the right starting point.