Adding API for different URLs depending of the action