Hi, I recommend following this article which explains more about exposing a site API.
Good luck! Tal.