Table of Contents
The Voomerr Send OTP API allows users to send an OTP (One-Time Password) to their email address. This accepts a user ID and email address and sends an OTP to the specified email address.
Endpoint #
The Voomerr Send OTP endpoint is POST https://admin.voomerr.com/api/send_otp.php
Request Parameters #
The following parameters are required to send an OTP to a user’s email address:
Parameter | Type | Required | Description |
---|---|---|---|
user_id | integer | Yes | The ID of the user to send the OTP to. |
string | Yes | The email address to send the OTP to. |
Example Request #
http
POST https://admin.voomerr.com/api/send_otp.php
{
"user_id": 123,
"email": "john.doe@example.com"
}
Response #
The response from the API will contain a JSON object with the following fields:
Field | Type | Description |
---|---|---|
success | boolean | Whether the request was successful or not. |
message | string | A message describing the result of the request. |
If the request is successful, the ‘success’ field will be ‘true’, and the ‘message’ field will contain a success message. If the request fails, the ‘success’ field will be ‘false’, and the ‘message’ field will contain an error message.
Example Response #
json
{
"success": true,
"message": "OTP sent successfully."
}