cURL
curl --request POST \ --url https://api.authentica.sa/api/v2/verify-by-voice \ --header 'Content-Type: application/json' \ --header 'X-Authorization: <api-key>' \ --data ' { "user_id": "user123", "registered_audio": "SUQzBAAAAAAAIVRYWFgAAAA...", "query_audio": "SUQzBAAAAAAAIVRYWFgAAAA..." } '
200
match
{ "success": true, "data": { "user_id": "user123", "result": true } }
Verify whether the reference audio and the real-time audio match.
This endpoint compares two voice samples:
registered_audio
query_audio
API key for authentication. Get Your API Key
Unique identifier of your user
"user123"
Base64-encoded reference audio
"SUQzBAAAAAAAIVRYWFgAAAA..."
Base64-encoded real-time audio recorded by your application
Voice verification completed
true
Show child attributes