OTP Send Api
OTP Send
Description :
This API endpoint is used to send the OTP to the user
Endpoint URL :Request Parameters
| Request Parameter | Data Type | Default Value | Required | Description | Change Date | Change Description |
|---|---|---|---|---|---|---|
| mobile_no | integer | Yes | mobile no of the user 10 digits | |||
| otp_type | string | Yes | type of otp All, Email, Mobile |
Request Example
Responses (JSON)
- Status Code 1: OTP Successfully sent
- Description: OTP sent successfully.
- 'status_code' (integer): 1
- 'message' (string): "OTP Successfully sent"
{"status_code": 2, "message": "mobile_no is required"}
- Status Code 2: Validation Error
- Description: Validation error in the input parameters.
- 'status_code' (integer): 2
- 'message' (string): "A specific validation error message."
Note
- The API endpoint should be accessed via a POST request.
- Ensure that the request is properly validated and sanitized to prevent security vulnerabilities.
- Implement proper error handling on the client side to display user-friendly error messages based on the 'status_code' and 'message' fields in the response.