For the complete documentation index, see llms.txt. This page is also available as Markdown.

Time based Authentication

TOTP Generation and validation APIs

API calls are region specific. Please make sure you are subscribed to a specific region and have a valid Renda API Key before making API calls.

Region Specific URLs: Ireland(Europe): https://api-eu.renda.io North Virginia(US): https://api-us.renda.io Mumbai(APAC): https://api-apac.renda.io

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

Name
Type
Description

x-api-key

string

Renda API Key

    {
        "type": "Success",
        "message": "Renda.io ping successful"
    }
]

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

Name
Type
Description

x-api-key

string

Renda API Key

Accept

string

*/*

Content-type

string

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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

Name
Type
Description

x-api-key

string

Renda API Key

Content-Type

string

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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

Name
Type
Description

x-api-key

string

Renda API Key

Content-Type

string

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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

Name
Type
Description

x-api-key

string

Renda API key

Content-Type

string

application/x-www-form-urlencoded

Request Body

Name
Type
Description

secret

string

Secret Key

token

string

OTP Token

tokenValidity

string

Token validity (Default 30 seconds)

Last updated