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
Request
- Base URLhttps://api.leapsurgebi.com (the document declares no server; this is the origin it was published from)
- AuthOAuth 2PasswordToken URL/auth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Keystring required
otpstring nullable
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 3 revisions of this API.