The Audit Service provides a public Java API for interacting with the Audit Component. The JavaDoc (generated from the Java source code) for the AuditService API can be found here.
The AuditService is also exposed via a REST API. This is documented in more detail in the Using the auditing ReST API.