Public api authentication

Added public API with authentication.