====== ClaimRev API Quick Start Guide ====== ===== Authentication ===== **Grant Type:** Client Credentials **Client Authentication:** Send Client Credentials in Body **Client ID:** ClaimRev will provide **Client Secret:** ClaimRev will provide ===== API Server ===== ===== Testing ===== **Access Token URL:** https://stagingclaimrevcom.b2clogin.com/stagingclaimrevcom.onmicrosoft.com/B2C_1_sign-in-only/oauth2/v2.0/token **Scope:** https://stagingclaimrevcom.onmicrosoft.com/portal/api/.default ==== Production ==== **Access Token URL:** https://portalclaimrev.b2clogin.com/portalclaimrev.onmicrosoft.com/B2C_1_sign-in-service/oauth2/v2.0/token **Scope:** https://portalclaimrev.onmicrosoft.com/portal/api/.default **API Server:** https://api.claimrev.com ===== Exposed APIs ===== Visit **Swagger UI** to see available API’s. For security reasons, the “Try It Out” option isn’t available. Tests will have to be run using **Postman** with the supplied Client ID and Secret. **Swagger URL:** https://testapi.claimrev.com/index.html **Swagger Authentication:** - Contact ClaimRev for this information ===== Retrieve Access Keys ===== Log into https://testportal.claimrev.com/ using the username supplied in the enrollment form. The test environment does not email passwords at the time of this writing. Please use the **forgot password** link. Once logged in, use the menu to the left and look for the menu option "Client Connect". On this screen you can retrieve the Client ID and Secret. ===== Postman Connection Test ===== ==== Collection - ClaimRev Test API ==== We like to create a collection in Postman for our tests. It helps get things moving faster before we move fully into our application that we're building. Once a collection is created click on that collection and then go to the Authorization tab. Auth Type should be OAuth 2.0 {{:postman_authorization_1.png?400|}} Set the Configure New Token with the information previously provided. {{:postman_authorization_2.png?400|}} Once complete click "Get New Access Token". A new token should be generated and saved to your postman. === Get Default Account Test === 1. Create a new **GET** request and input this URL under the collection just created: https://testapi.claimrev.com/api/UserProfile/v1/GetDefaultAccount 2. In the **Authorization** tab, the Auth Type of OAuth 2.0. In the Current token select from "Available Tokens". This token should be created in the previous step. {{:postman_getdefaultaccount_1.png?400|}} 3. Click the **Send** button in Postman to send the request. 4. Your account number should come back to you.