Get access token with MFA
Learn how to get access token with MFA
To get an access token with MFA:
- Log in with your username and password with grant type in Postman or script.You will get a
state_tokeninstead of anaccess_tokenas a response. - Run a second request sending 
state_tokenor TOTP code withstate_tokengrant type.You get anaccess_tokenas a response.- Request
 - 
                                
PUT https://auth.reltio.com/oauth/token - 
                                
Table 1. Parameters Name Required Description Headers AuthorizationYes Bearer {{token}} Body form-dataYes QR code verification details.  - Request
 - 
                                
username:{{your username}} password:{{password}} grant_type:passwordNote:{{token}}in the headers refer to aclient_id:client_secretthat has passwordgrant_typedefined. This client credential is used to identify your client application. No permissions are required under this client. For more details, see topic Creating client credentials. - Response
 - 200 Ok as the HTTP status code 
{ "expires_in": 599, "state_token": { "mfaType": "AUTHENTICATOR", "expires_in": "600", "status": "ENROLL", "token": "fa7e4518-ad20-4e15-b386-0343b241fe50" } } 
 - Obtain an access token with the 
state_tokenand submit an OTP code.Note: If you are enrolled in app-based MFA, you get the OTP on your mobile phone app. If you are enrolled in email-based MFA, you receive the OTP in your email.- Request
 - 
                                    
POST https://auth.reltio.com/oauth/token - Request
 - 
                                    
state_token:{{state_token from previous request}} totp:{{OTP code}} grant_type:state_token - Response
 - 
                                    
{ "access_token": "s.AAALQii1L...39DCbQBHmOdw", "token_type": "bearer", "refresh_token": "fa7e5817-0bf6-461c-97ab-c6b7a9e0f556", "expires_in": 3598, "scope": "clients_api configuration_api entities_api graphs_api groups_api interactions_api relations_api users_api" }