Create Token

Description:

Generates an access token using your username and password. The token authenticates API requests.


Authentication Method:

  • Basic Auth (Base64 encoding) with:
    • username: Your API username.
    • password: Your API password.

Request Parameters:

  • project_code: This will be provided by Infocredit Group.

Example Request Call for Sandbox Environment

https://sandbox.v3.api4all.io/a4a/3.0/api/token/{{project_code}}

Example Request Call for Production Environment

https://v3.api4all.io/a4a/3.0/api/token/{{project_code}}

Example Response

{  
    "access_token": "d930c7e-773-ad5-a89-0e9634fa",  
    "client_id": "c9518c-666-4699-83e-1730143",  
    "client_secret": "0df24-8ec-4e498f3-a5c5d5390",  
    "expires_in": 7200,
    "refresh_token": "aa63-0f1-460-b94-8a4bd71",  
    "scope": "all",  
    "company": "Infocredit Groug",  
    "token_type": "bearer",  
    "username": "admin"  
}