HealthKareAI
User-App
Verifyotp

OTP Verification API

  • Endpoint: /auth/verifyOTP
  • Method: POST
  • Description: Verify OTP for user authentication.
  • Request Body:
    {
      "phone": "string",
      "otp": "string",
      "backend_secret": "string"
    }
  • Responses:
    • 200 OK
      {
        "message": "OTP verified",
        "token": "string"
      }
    • 401 Unauthorized
      { "message": "Unauthorized" }
  • Example:
    curl -X POST http://<your-server-address>/auth/verifyOTP \
    -H "Content-Type: application/json" \
    -d '{"phone": "1234567890", "otp": "123456", "backend_secret": "your_backend_secret"}'