Applies to integrated customers using the RecoveryConnect API
Authentication 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/v130/auth
Method: POST
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 |
| access_token | The Bearer token is to be used in all API requests | eyJ0eXAiOiJKV1QiLC….. |
| token_type | Always Bearer | Bearer |
| expires_in | Token validity in seconds | 3600 |
| refresh_token | Can be used to get a new token after expiry | bm1QbjJ6UnRpRElKb…….. |
Success Code: 200 OK – Request Successful
Example: URL: https://test-api.mbsisystems.com/api/v130/auth
Request Body:
Content type: JSON
{
"username": "sunillender",
"password": "Mbsi@123"
}
Response:
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjozNTQ1MzYsImVtYWlsIjoic3VuaWxzYWluYXRoMDA3QGdtYWlsLmNvbSIsImV4cGlyZXMiOjE3NTgwMjc5MzAsInRva2VuX3R5cGUiOiJpbnRlcm5hbCIsInJlZnJlc2hfdG9rZW4iOiJleUowZVhBaU9pSktWMVFpTENKaGJHY2lPaUpJVXpVeE1pSjkuZXlKMWMyVnlYMmxrSWpvek5UUTFNellzSW5abGNtbG1lU0k2SW01dFVHNHllbEowYVVSSlNteHBRVWg1V2pGaFFuWmFhbmxZVldoWWVVMXNJbjAuaTJ6aHp4bTlRRVAxMVQtMVk3eWJkb3RhUkwwWDFHcDhBWjlYSHBPMzRjVC1KYXU3QUpKTlVEdnBrQkQxMnlUY2F6Unh1SmpNa2dfZTVnU191T1V5cFEifQ.pyAWUSS2fspoAo23alDFefd-meMRNn0zPQgGXb-HmfJdnbfKKMCX3PL9LzttxOB53PWRnX9r6-EzBO0kV7RGog",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "bm1QbjJ6UnRpRElKbGlBSHlaMWFCdlpqeVhVaFh5TWw=.MHEQFNk2yB9njcgDBALKYVJZ2Wcm8H3swxdYa7coAfg="
}