This endpoint verifies the OTP sent to the user for authentication.
curl --request POST \ --url https://auth.otpless.app/auth/v1/verify/otp \ --header 'Content-Type: application/json' \ --header 'clientId: <api-key>' \ --header 'clientSecret: <api-key>' \ --data '{ "requestId": "unique_request_id", "otp": "OTP" }'
{ "requestId": "unique_request_id", "isOTPVerified": true, "message": "OTP verified successfully" }
The response is of type object.
object
Was this page helpful?