One Time Password SMS API

Secure your software

Introduction

Integrating with our OTP API is easy. When you use SMSGlobal’s REST API to integrate SMS capabilities into your application, you’ll save hundreds of hours compared to building OTP functionality from the ground up.

Plus, you’ll be partnering with a global leader in SMS with all of your application’s SMS needs covered by one provider offering expert support.


Overview of Features Scroll to Top ▲


How to get started Scroll to Top ▲

The following example demonstrates how to start the verification process to send a verification code to the end-user.

To send an OTP Scroll to Top ▲

This can be used for sending OTP.



To cancel an OTP request Scroll to Top ▲

The OTP request can be cancelled if it's not expired and verified yet. It can be done by either using requestId or destination number. The followings are examples of each method:



To verify an OTP code entered by your user Scroll to Top ▲

The OTP code entered by your user can be verified by either using requestId or destination number. The followings are examples of each method:


REST API Endpoints Scroll to Top ▲

Authentication

The REST API uses an authentication scheme based on this OAuth 2 specification . All requests to resources (excluding the schema pages) must be accompanied by a correct Authorization header as per this specification. The header looks like this:

 Authorization: MAC id="your API key", ts="1325376000", nonce="random-string", mac="base64-encoded-hash" 


  • OTP
    /v2/otp
    /v2/otp/requestid/{id}/cancel
    /v2/otp/requestid/{id}/validate
    /v2/otp/{msisdn}/cancel
    /v2/otp/{msisdn}/validate
Loading Form