cURL
phone
curl --request POST \ --url https://api.authentica.sa/api/v2/verify-otp \ --header 'Content-Type: application/json' \ --header 'X-Authorization: <api-key>' \ --data ' { "phone": "+966551234567", "otp": "123456" } '
{ "status": true, "message": "OTP verified successfully" }
Verify the OTP entered by your customer for authentication.
This endpoint validates the OTP against the one sent via /send-otp endpoint.
/send-otp
API key for authentication. Get Your API Key
The OTP entered by the customer
"123456"
Phone number used to send the OTP. Required if sms or whatsapp was used.
"+966551234567"
Email used to send the OTP. Required if email was used.
"user@example.com"
OTP verified successfully
true
"OTP verified successfully"