Authorization and Token management

Accessing Core Services APIs

To interact with any API within this core services collection (excluding the Auth endpoint), the following authentication mechanisms must be implemented:

  • Bearer Token: This token, which serves as the API key, is generated via your application on Adjutor.

  • x-access-token Header: This token is retrieved from the Auth endpoint. After providing valid credentials (email and password) in the request body, the response will include the token. This token must be included in the headers of subsequent API requests as x-access-token.

Steps to Obtain Authentication Tokens

  • Create an account on the Lendsqr admin console to initiate the process.

  • Add a team member to your organization using a unique email. This member will manage all API interactions through the admin console. Learn more

  • The designated team member can access the Adjutor platform with the credentials set up on the admin console. Once logged in, they can create an application and retrieve the API key, which acts as the Bearer Token.

  • Use the email and password of the team member to call the Auth endpoint. The response will include the x-access-token, which must be included in the header of all core service API requests.

Important Considerations

Once the team member's credentials have been used to authenticate API calls, those credentials will no longer be valid for accessing the admin console. Ensure proper management of credentials to maintain access control.

Last updated