Skip to main content

Retry Email OTP API

This document outlines the details of the Retry Email API.

API Description

This document outlines the details of the Retry Email OTP API.

Objective

The Retry Email OTP API resends a One-Time Password (OTP) to the user's email for verification.

API URL

https://ind-engine.thomas.hyperverge.co/v1/retryOTPEmail

API Endpoint

retryOTPEmail

Overview

The API is RESTful and uses standard HTTP verbs and status codes. The responses are in JSON format and you should upload all images and files as form-data through a POST request.

Authentication

You need a unique pair of application ID (appId) and application key (appKey) from HyperVerge to verify your identity for accessing the API.

API Request Details

Method - POST

Headers

ParameterMandatory or OptionalDescriptionAllowed Values
content-type MandatoryThis parameter defines the media type for the request payloadapplication/json
appId MandatoryThe application identifier shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value
appKey MandatoryThe application key shared by HyperVerge. You can find the details in the dashboard's credentials tab.This should be a unique value
transactionIdMandatoryA unique identifier for tracking a user journeyThis should be both unique and easily associated with the user's journey in your application(s)

Inputs

The following table provides the complete information on the parameters used in the request body for the API calls.

ParameterDescriptionMandatory or OptionalAllowed ValuesDefault Value
reqIdThe message result returned by Send Email OTP APIMandatoryNot ApplicableNot Applicable
otpLengthThe desired length of the OTP meant for the user's email address MandatoryOTP length must be either 4 or 6 digitsNot Applicable
widgetIdThe Widget ID for a custom email template. If this is not passed, the default email template with HyperVerge branding will be sent
Note: The widgetId should be same as the one passed in the Send OTP API
OptionalNot ApplicableThe widgetId from HyperVerge

Sample Request

The following code shows a standard cURL request for the API.

curl --location --request POST 'https://ind-engine.thomas.hyperverge.co/v1/retryOTPEmail' \
--header 'Content-Type: application/json' \
--header 'appId: <Enter_the_HyperVerge_appId>' \
--header 'appKey: <Enter_the_HyperVerge_appKey>' \
--header 'transactionId: <Enter_the_HyperVerge_transactionID>' \
--data '{
"reqId": "<Enter_the_Request_ID>",
"otpLength": "<Enter_the_chosen_otp_length>",
"widgetId": "<Enter_the_Widget_ID>"
}'

Success Response Sample

The following is a sample of a success response from the API.

{
"statusCode": 200,
"status": "success",
"result": {
"message": "retry sent successfully"
},
"metaData": {
"requestId": "<Request_ID>"
}
}

Success Response Details

ParameterTypeDescription
messageStringA message indicating the result of the operation
requestIdStringThe system-generated ID for the request

Error Response Samples

{
"status": "failure",
"statusCode": 200,
"error": {
"message": "wait 12 seconds to retry."
},
"metaData": {
"requestId": "<Request_ID>"
}
}

Error Response Details

A failure or error response from the module contains a failure status, with a relavant status code and error message. The following table lists all error responses.

Status CodeError MessageError Description
400Missing required request parametersSome mandatory request parameters are missing in the API request made or the parameter has already been passed
401Missing/Invalid credentialsThe request is either missing the mandatory appId and appKey combination or has invalid values
403Access DeniedPlease contact the HyperVerge team for resolution
429Rate limit exceededYou have exceeded the configured limit on the number of transactions permitted in a minute. Please contact the HyperVerge team for resolution
500Internal Server ErrorPlease check the request headers or contact the HyperVerge team for resolution
Was this helpful?
Ask AIBeta
Hi! How can I help?
Ask me anything about HyperVerge products, APIs, and SDKs.
Try asking: