Time based Authentication
TOTP Generation and validation APIs
Get Ping
GET https://api-<region>.renda.io/totp/ping
Region specific URLs:
Ireland(Europe):https://api-eu.renda.io/totp/ping
North Virginia(US): https://api-us.renda.io/totp/ping
Mumbai(APAC): https://api-apac.renda.io/totp/ping
Headers
x-api-key
string
Renda API Key
{
"type": "Success",
"message": "Renda.io ping successful"
}
]{
"message”:”Please check the following: 1) An *active* Renda.io
subscription 2) API being invoked must be *Subscribed* in Renda
developer portal 3) A valid *API Key* must be passed in ‘x-api-key’
request header parameter. Please refer to Renda documentation for
more details - https://documentation.renda.io"
}generateQRCode
POST https://api-<region>.renda.io/totp/generateQRCode
Generate QR Code API encodes any form data such as text, URL, phone numbers etc., into a QR code.
Headers
x-api-key
string
Renda API Key
Accept
string
*/*
Content-type
string
application/x-www-form-urlencoded
Request Body
data
string
Data to be encoded in the QR Code
onboardUser
POST https://api-<region>/renda.io/totp/onboardUser
Onboard user API generates a secret key based on userid(which can be email address, name, number etc.,) and application ID. This API is useful to build user onboarding/authentication module whereby users can be authenticated using time based one time password (TOTP) generated by any soft token generator. This API returns a secret key, OTP URL, QR Code image encoded with the OTP URL which can be scanned to setup any soft key generator and a current TOTP passcode
Headers
x-api-key
string
Renda API Key
Content-Type
string
application/x-www-form-urlencoded
Request Body
userID
string
User ID (Email address, Employee ID etc.,)
applicationID
string
Application ID (Name of the app)
tokenValidity
string
Token refresh interval - Default is 30 secs
tokenLength
string
Token Length - Default is 6 digits
getOTP
POST https://api-<region>.renda.io/totp/getOTP
This API fetches the current valid OTP for a specified secret key. Token validity and token length parameters can be passed if they customised to be more than 30 seconds in duration and 6 digits in length
Headers
x-api-key
string
Renda API Key
Content-Type
string
application/x-www-form-urlencoded
Request Body
secret
string
Secret Key
tokenValidity
string
Token validity (default to 30 secs)
tokenLength
string
Token length (defaults to 6 digits)
verifyOTP
POST https://api-<region>.renda.io/totp/verifyOTP
This API method verifies the provided one time password(OTP) against a specific Secret key. Token validity can be passed in the validity period needs to be extended beyond the default 30 seconds.
Headers
x-api-key
string
Renda API key
Content-Type
string
application/x-www-form-urlencoded
Request Body
secret
string
Secret Key
token
string
OTP Token
tokenValidity
string
Token validity (Default 30 seconds)
Last updated
Was this helpful?