Once you have your clientId and clientSecret, you can request an API token from the AKOOL OpenAPI. For more detailed documentation, please visit: AKOOL OpenAPI
POST https://openapi.akool.com/api/open/v3/getToken |
{ "clientId": "YOUR_CLIENT_ID", "clientSecret": "YOUR_CLIENT_SECRET" } |
curl --location 'https://openapi.akool.com/api/open/v3/getToken' \ --header 'Content-Type: application/json' \ --data '{ "clientId": "64db241f6d9e5c4bd136c187", "clientSecret": "openapi.akool.com" }' |
{ "code": 1000, "token": "xxxxxxxxxxxxxxxx" } |
code indicates the status (1000 = success).
token is your new API token.
Please note: The token is valid for more than one year. You should cache or store it securely once you obtain it.