Question
Where are the API token logs located?
Answer
WHM's API token logs are located at /usr/local/cpanel/logs/api_tokens_log . The API tokens log file includes the API token name, host, and API command that was run:
[2020-09-05 08:30:03 +0200] info [whostmgrd] Host: ['127.0.0.1'] HTTP Status: ['200'], User: ['root'], Token Name: ['TOKEN_NAME'], Request: ['POST /json-api/resellerstats HTTP/1.1']