Yes, you can. The Public API is accessible via request attributes at all times (i.e. even in custom portlets). When you compile/build your portlet you'll need to add the SiteVision Public API jar file to your classpath.More information is available on the Public API page.