To connect to LoanPro's API, you’ll need an HTTP client—an application on your computer that will send HTTP requests. If you want to send requests to the API without writing code, a REST client will work, since REST clients are HTTP clients with a graphical user interface and helpful tools. Some popular REST clients are Postman and Insomnia, and we recommend using either of them.
Alternately, you could use command-line utilities, such as cURL, or an HTTP library for your chosen programming language, if available. This tutorial will include code samples for a handful of languages, but we’ll also show the raw HTTP requests so that you can translate them to the language of your choice.
If you aren’t using one of our supported languages, we recommend taking some time to understand the structure of an HTTP request so you can understand what is going on in our HTTP samples. Some good resources for this include TutorialsPoint, Udacity, MDN Web Docs and Codecademy. We recommend referring to your HTTP client’s documentation on how to set it up, as many of them have tutorials on how to send a sample request.
LoanPro uses TLS 1.2 to encrypt communications. When selecting an HTTP client, make sure it’s compatible with TLS 1.2.
Once you have your client of choice set up, it’s time to get your API credentials.
If you haven't already, you can generate your API authentication information by navigating to Settings > Company > API > Overview within your LoanPro account.
To configure your API access, click 'Do it now.'
You’ll then be presented with a pop-up similar to the example shown above. Use the drop-down menu to select an agent user to associate with API access and actions.
The agent user you select will be associated with every action completed through API calls. This will be shown in system notes, reports, timestamps, etc. We highly recommend that you create a new agent user for this purpose so you can differentiate between actions that occurred though the API and through the UI.
Click 'Save' to confirm your selection.
A successful configuration will result in your new authentication information being shown within your account settings.