I don't know why you're trying to use it outside of running a plugin, but that issue (which isn't really an issue) is likely due to the API being a compileOnly dependency, so the API isn't included at runtime. That's because the server provides that dependency.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.