Authentication (Base Token)
Before officially integrating the system and calling various business APIs, we need to complete the basic authentication preparations.
Prerequisites
Please ensure that you have obtained the following credentials from the system administrator or developer console:
- API Key
- Secret Key
These two credentials are the unique identity markers for your application's integration. Please keep them safe and do not leak them into frontend public code or code repositories.
Obtaining the Base Token
All logins and core data operations within the system require the base token as a foundation. It serves as the key to establishing trust with the platform.
You need to use your prepared API Key and Secret Key to connect to the first API for obtaining the Base Token.
API Details
- Purpose: Exchange API credentials for a global
base token. - When to Call: Typically called by your backend server during application initialization or before the frontend initiates the authentication flow, and then passed to the frontend.
Once you have obtained the base token, include it in the headers or parameters of subsequent key requests (such as login), allowing you to smoothly complete the system's authentication and login processes.