MobileApp

Send Or Verify Otp

Function: send_or_verify_otp Type: API Endpoint (GET)

Purpose:
This function is used to send an OTP to the user's email address or to verify an OTP sent to the user. It is used for user authentication.

URL:
GET http://<baseURL>/api/MobileApp/otp_send_and_verify

Request Headers:

  • Key (Header, required):
    The email address or mobile number of the user to send the OTP to.
  • otp (Header, optional):
    The OTP sent to the user to verify.

Response:
A JSON response containing the result of the OTP verification or a message indicating that the OTP has been sent to the user's email address.

Error Handling:

  • Raises HTTP 404 if the user is not found.
  • Raises HTTP 400 if the OTP is invalid or has expired.
  • Raises HTTP 500 for any other exceptions encountered during execution.
get/api/MobileApp/otp_send_and_verify

Headers

Keystring required
otpstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/MobileApp/otp_send_and_verify:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.