How can we help?

Home
Integrations
Requesting an API Token

Requesting an API Token 

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

 

1. Get the Token

POST https://openapi.akool.com/api/open/v3/getToken

 

2. Request Body (JSON)

{
  "clientId": "YOUR_CLIENT_ID",
  "clientSecret": "YOUR_CLIENT_SECRET"
}

 

3. Example Request (cURL)

curl --location 'https://openapi.akool.com/api/open/v3/getToken' \
--header 'Content-Type: application/json' \
--data '{
   "clientId": "64db241f6d9e5c4bd136c187",
   "clientSecret": "openapi.akool.com"
}'

 

4. Response

{
"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.