The webapi is a helper tool that helps to retrieve a variety of information on users, permissions, dates, assets, content, and to manage string formatting.
The following example shows how the webapi is mapped in the toolbox.xml file:
<tool>
<key>webapi</key>
<scope>request</scope>
<class>com.dotcms.rendering.velocity.viewtools.WebsiteWebAPI</class>
</tool>