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, PHP and Java classes, methods and hooks.