Multi-Factor Authentication Examples


API Resource Example Call
Create MFA application with Public Channel or Sender ID
curl -X POST 
-H "Authorization: Bearer TOKEN" 
-H "Content-Type: application/json" 
-d'{
"name":"TEST_MFA_PROD_Sample",
"description":"TEST_MFA_PROD_Sample_DESC",
"auth_code_length":6,
"auth_token_type":"NUMERIC",
"auth_token_validity_duration":"600",
"message_from":"channel:gqKlekr-S22CJul_aE4XFQ"
}' 
"https://api.syniverse.com/mfa/v1/applications"
		
Associate a user
curl -X POST 
-H "Authorization: Bearer TOKEN" 
-H "Content-Type: application/json" 
-d'{
"display_name":"TEST_MFA_PROD_Sample",
"address":"+14085551212"
}' 
"https://api.syniverse.com/mfa/v1/applications/XkpeXN1wkJK4ay0wKcwvC1/users/Kola/associate"
		
Validate a user
curl -X POST 
-H "Authorization: Bearer TOKEN" 
-H "Content-Type: application/json" 
-d'{
"validation_code":"962985"
}' 
"https://api.syniverse.com/mfa/v1/applications/XkpeXN2wkJK4ay0wKcwvC1/users/kola/validate"
		
Login Start
curl -X POST 
-H "Authorization: Bearer TOKEN" 
-H "Content-Type: application/json" 
-d'
{
"display_name":"TEST_MFA_PROD_Sample"
}' 
"https://api.syniverse.com/mfa/v1/applications/XkpeXM1wkJK4ay0wKcwvC1/users/kola/login_start"