post https://sandbox-api.credilinq.ai/v1/auth/generate-token
Purpose
This API helps to generate an Oauth2 access token. It uses the Bearer authentication scheme to access the CrediLinq APIs. Access tokens must be cached in your platform and used until expiration.
Prerequisite
- Make sure that you reach out to the CrediLinq Tech team to set up and get your Client ID and Secret Key.
Flow
Send a POST request with the following parameters to the authorization server:
client_idwith the client's IDclient_secretwith the client's secret
The authorization server will respond with a JSON object containing the following properties:
token_typewith the valueBearerexpires_inwith an integer representing the TTL (in seconds) of the access token (Default is 8 hours)access_tokena JWT signed with the authorization server's private key
The access_token should be used in the Authorization header together with the Bearer challenge to authenticate all the requests.