API for audit queries.