The API Reference contains low-level details on Matomo (formerly Piwik) APIs and codebase.
You will find here documentation on Matomo's HTTP APIs, JavaScript client, Java and PHP classes, methods and hooks.