Applies to integrated customers using the RecoveryConnect APIAuthentication Call
Use this endpoint to log in with your username and password and receive a Bearer token. This token is required in the header for accessing all other API requests.
URL: /api/v140/auth
Method: POST
With POST Body Parameters:
PARAMETER | DESCRIPTION | MANDATORY | EXAMPLE |
username | Username of the user account | Yes | abctestuser |
password | Password of the account | Yes | password@12345 |
Response Elements:
PARAMETER | DESCRIPTION | EXAMPLE |
token_type | always Bearer | Bearer |
expires_in | token validity in seconds | 3600 |
access_token | The Bearer token is to be used in all API requests | eyJ0eXAiOiJKV1QiLC….. |
refresh_token | can be used to get a new token after expiry | bm1QbjJ6UnRpRElKb…….. |
Success Code: 200 OK – Request Successful
Example:
URL: https://api.mbsisystems.com/api/v140/auth |
Request Body:
Content type: JSON
{
"username": "vinayagentprod",
"password": "xxxxxx"
}
Response:
{
"token_type": "Bearer",
"expires_in": 3600,
"access_token": "eyJraWQiOiI1X21zZWdKbGo5Z19tbWdQMjBtdThETm5NUXZwcTFpYmdjU2JHeUNpNEdBIiwiYWxnIjoiUlMyNTYifQ.eyJ2ZXIiOjEsImp0aSI6IkFULjM1azltZkZyQjhnMF9jajltRmhyVW0zb2xWUDQyX3hpeWFHeUdKeTdncHMub2FyNnNna2RqMXFldUY2NHUzNTciLCJpc3MiOiJodHRwczovL21ic2kub2t0YS5jb20vb2F1dGgyL2RlZmF1bHQiLCJhdWQiOiJhcGk6Ly9kZWZhdWx0IiwiaWF0IjoxNzcyNzE1OTQ4LCJleHAiOjE3NzI3MTk1NDgsImNpZCI6IjBvYTV3a3libGptVTI3cTdhMzU3IiwidWlkIjoiMDB1MW12dXF6Ym1SVkxteEMzNTgiLCJzY3AiOlsib3BlbmlkIiwib2ZmbGluZV9hY2Nlc3MiLCJwcm9maWxlIl0sImF1dGhfdGltZSI6MTc3MjcxNTk0OCwic3ViIjoidmluYXlhZ2VudHByb2QifQ.HwEmYIwOjIL71AD9OSxQaRnxL45sqEP3uYi_DcEkdfQNCBK0B5cHvRMA0T7TEJF_jNq8b4HB4OGefuP8u2_L5j_oMOIiOrnkiCu28y0JcttweLTqpl1TeND88wI0eCh5-9YywGZvTNf7syUBSqE1TuaqxFepMf8WRCyUifL7Ncmlhskh2l9ZGChpSL--05f3CZYdrlN7Qc9wj8_4_hDOcfgxjxBkw1FvP9I5raS5hDuY0b7ZMlPMez-XPsMWoGvZA3j1FzAb1Jjp4Snz_SaeivZ2np-fYmzrjO-P-JyBprJafKz73BweA9qOidMmf_QnN4vyCMDFfotduT4clwlblQ",
"refresh_token": "RSQoMK7Mh2DfPDbP7EsngYzubDFUb4FgSuKX8ZzRXEk"
}