📲 Mock OTP API Server

âš¡ Live Tester

📖 API Documentation

Base URL: https://testapi.mishclothes.in/

POST Request OTP

Generates a 4-digit OTP for the given phone number.

ParameterTypeDescription
actionStringMust be "request_otp"
phoneStringTarget phone number
Example Request (JSON):
{
  "action": "request_otp",
  "phone": "9876543210"
}

POST Verify OTP

Validates the code. If correct, returns an access token.

ParameterTypeDescription
actionStringMust be "verify_otp"
otpStringThe 4-digit code received
Example Response (Success):
{
  "status": "success",
  "message": "Login successful",
  "access_token": "a1b2c3d4...",
  "token_type": "Bearer"
}