curl -X GET "https://mail.example.com/api/v1/get/logs/api" -H "X-API-Key: $MAILCOW_API_KEY"

Category: Mail Servers & Postfix

curl -X GET "https://mail.example.com/api/v1/get/logs/api" -H "X-API-Key: $MAILCOW_API_KEY"

Fetch API access logs via the API

This returns the audit trail of API requests, including which key called which endpoint. Review it to spot unexpected API activity that could mean a leaked key. Rotate the key in the admin UI if you see calls you do not recognize.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.