Before using ReshScore's Credit Scoring API, make sure you have the following:
To access the ReshScore API, follow these steps:
Your API key will be required for every request you make to the ReshScore API. Keep it secure and do not share it publicly.
ReshScore offers two ways to authenticate with the API:
1. API Key Authentication:
Authorization: Bearer YOUR_API_KEY
2. OAuth2 Authentication:
Authorization: Bearer ACCESS_TOKEN
Once you've obtained your API key, you're ready to make your first API call.
Here’s a basic example of how to make a GET request to retrieve a credit score for a specific user:
curl -X GET 'https://api.reshscore.com/v1/credit-score/{userId}' \
-H 'Authorization: Bearer YOUR_API_KEY'
The response will look like this:
{
"userId": "123456",
"creditScore": 750,
"creditStatus": "Good"
}
You can use libraries like axios in JavaScript or requests in Python to handle these API calls within your code.
ReshScore provides a sandbox environment where you can test your integrations before going live.
Example request in the sandbox environment:
curl -X GET 'https://sandbox-api.reshscore.com/v1/credit-score/{userId}' \
-H 'Authorization: Bearer YOUR_SANDBOX_API_KEY'
We recommend testing all your API calls in the sandbox before using the live environment.