Add authentication api endpoint